(20120307) 20:00

This commit is contained in:
2012-03-07 20:00:00 +01:00
parent 1856770ea1
commit 23c81ceb32
3 changed files with 71 additions and 1 deletions

11
Draw.c
View File

@@ -34,6 +34,7 @@ SDL_Surface *_screen=NULL;
int _width;
int _height;
long long _t_frame=17000;
long long min_t_frame=16000;
/////////////////////////////
// Draw_Init
@@ -173,6 +174,8 @@ void Draw_Loop(int (*proc)(),void (*draw)()){
time2=Time_GetTime();
t_frame+=time2-time;
time=time2;
// FIX: Limit
if(t_frame>50000){
t_frame=50000;
}
@@ -191,9 +194,15 @@ void Draw_Loop(int (*proc)(),void (*draw)()){
}
// Draw
time2=Time_GetTime();
draw();
time2=Time_GetTime()-time2;
if(time2<min_t_frame){
Time_Pause(min_t_frame-time2);
}
Time_Pause(0);
//Time_Pause(0);
t_frame+=Time_GetTime()-time;
}
}

61
NOTES.txt Normal file
View File

@@ -0,0 +1,61 @@
TODO
----
- Entities:
- Teleporters
- Doors
- Buttons
- Music
- Non-SFXR sounds
DONE
----
- Util
- Circle collision
- Draw
- Screen init
- Image loading
- Image drawing
- Font loading
- Text Drawing
- Draw loop
- Input
- Keyboard
- Mouse
- Audio
- Sound loading
- Sound playing
- Anim
- Animation loading
- Animation playing
- Entity
- Process
- Overlap
- Collision
- GameLib
- Game loop
- Entity processing
- Sound playing spatially
- Lighting
- Game Map
- Loading
- Game Entities:
- Player
- Barrel
- Spikes
- Lava
- ArrowShooters
- Arrows
- Columns
- Rock
- Floor
- Save points
- Light points
- Title Screen
- Game End Screen
- Game saving and loading
- Level and savepoint

BIN
game.save

Binary file not shown.