-
e6b6df22fd
Write some script-fu code for exporting an animated tileset
main
cdo
2025-01-09 20:12:43 +00:00
-
7f292c3d56
Add gimp script-fu code for cropping tree sprites
cdo
2025-01-09 20:12:09 +00:00
-
0cbc541bce
Seperate map and asset directories
cdo
2025-01-07 14:35:46 +00:00
-
a82586f327
Remove command-line argument handling
cdo
2025-01-07 14:22:40 +00:00
-
de073d7d7a
Use CMake option for asset dir instead of command-line flag
cdo
2025-01-07 13:47:50 +00:00
-
0b9fd92d63
Change project name in README
cdo
2025-01-07 13:15:24 +00:00
-
2077ecde63
Implement hot reloading
cdo
2025-01-05 19:41:44 +00:00
-
1531817dc4
Add tiled map, tilesheet configs etc
cdo
2025-01-04 17:01:08 +00:00
-
d1fb902e8a
Use offset specified in tiled for y-sorting objects
cdo
2025-01-04 16:50:18 +00:00
-
5eff48b449
Use object bounding box for y sorting
cdo
2025-01-04 16:11:07 +00:00
-
48ae6b7873
Load object bounding box from objectsprites XML
cdo
2025-01-04 16:10:14 +00:00
-
3f8ac4f890
Add a bounding box to dynentity_t
cdo
2025-01-04 13:34:56 +00:00
-
080de0da3c
Use doubles instead of ints for y sorting
cdo
2025-01-04 13:22:06 +00:00
-
765e2c32c8
Implement drawlist updating for decreasing y
cdo
2025-01-04 13:03:19 +00:00
-
f3c9d6ac30
Implement drawlist updating for increasing y
cdo
2025-01-04 12:26:32 +00:00
-
9325563991
Draw entities using drawlist
cdo
2025-01-04 10:32:26 +00:00
-
56dbf9dbb4
Construct drawlist at end of game_init()
cdo
2025-01-04 09:26:42 +00:00
-
8763c437b3
Add tag and prev, next pointers to entity structs
cdo
2025-01-04 06:13:33 +00:00
-
6c248b0707
Track and display maxima in performance monitor
cdo
2025-01-04 10:31:30 +00:00
-
51cd623af9
Rearrange and rename helper functions
cdo
2025-01-04 04:59:40 +00:00
-
6bd85d9ebf
Rename entity_t and obj_t to dynentity_t and objentity_t
cdo
2025-01-04 04:51:27 +00:00
-
77725a5ce4
Round coordinates in collision detection
cdo
2025-01-04 02:12:55 +00:00
-
6d01f8cc3f
Tweak performance message to include frame interval
cdo
2025-01-04 02:12:22 +00:00
-
a8e2c8d89a
Rename game_evthandle() to game_evt()
cdo
2025-01-02 18:52:15 +00:00
-
8dbdea6ac4
Fix some memory leaks
cdo
2025-01-02 17:53:40 +00:00
-
2c8d01df49
Fix UB in tileat()
cdo
2025-01-02 17:16:05 +00:00
-
61c0e17fd8
Remove ASAN from sanitizers config
cdo
2025-01-02 17:13:39 +00:00
-
3952d93bb0
Add CMake option to enable/disable performance monitoring
cdo
2025-01-02 17:10:00 +00:00
-
c1dd9cd33a
Remove frame blinker
cdo
2025-01-02 16:55:06 +00:00
-
65a4b08f34
Use vsync instead of delay-based synchronization
cdo
2025-01-02 16:47:00 +00:00
-
427cdef867
Add frame blinker back in
cdo
2025-01-02 16:37:43 +00:00
-
cda484c9ab
Wait for remaining time in interval rather than busy looping
cdo
2025-01-02 16:15:18 +00:00
-
178d6a23d3
Reduce performance analysis frequency
cdo
2025-01-02 15:49:58 +00:00
-
e7e1b40dd9
Take ceiling of endx and endy in mapdraw()
cdo
2025-01-02 15:41:02 +00:00
-
bbaf58869a
Measure game code performance in engine
cdo
2025-01-02 15:35:57 +00:00
-
d9981d8d61
Rename app/ directory to game/
cdo
2025-01-02 14:21:12 +00:00
-
2dd55b5533
Restructure game to use engine
cdo
2025-01-02 14:18:37 +00:00
-
b14d2f292a
Create basic engine
cdo
2025-01-02 01:16:37 +00:00
-
c02068f1ba
Move player entity into static
cdo
2025-01-02 00:18:25 +00:00
-
f196440112
Remove unused tests directory
cdo
2025-01-02 00:16:17 +00:00
-
dc53a2d8de
Snap view and entity positions to grid when not in motion
cdo
2025-01-01 21:31:29 +00:00
-
e8eba7e90c
Add blinking box to indicate frames
cdo
2025-01-01 21:06:08 +00:00
-
e48e566dd2
Round coordinates when drawing
cdo
2025-01-01 17:24:53 +00:00
-
cbb4b7884c
Add support for map objects
cdo
2025-01-01 16:50:51 +00:00
-
12751a49f8
Store asset dir path in static var
cdo
2025-01-01 13:37:53 +00:00
-
dab37ddeff
Update impassable tiles
cdo
2024-12-31 20:07:37 +00:00
-
8397666cb2
Write script to extract frames from a spritesheet
cdo
2024-12-31 20:06:10 +00:00
-
0aab456433
Load and draw additional layers
cdo
2024-12-31 13:55:34 +00:00
-
8de374bcfb
Extract map logic into functions
cdo
2024-12-31 13:15:57 +00:00
-
b39189b6d1
Create entity_t struct and define entityupdate() and entitydraw()
cdo
2024-12-31 13:01:48 +00:00
-
e7a19b7d91
Fix camera when at edge of map
cdo
2024-12-29 18:49:04 +00:00
-
31f7895bf3
Support new map and tileset
cdo
2024-12-28 19:56:07 +00:00
-
c24cd75360
Implement terrain collisions
cdo
2024-12-28 18:57:29 +00:00
-
f17530af4a
Use walking animation
cdo
2024-12-28 17:22:48 +00:00
-
c5daa136c1
Use directional sprites for player
cdo
2024-12-28 14:27:13 +00:00
-
10bb223bdd
Move view to keep player on-screen
cdo
2024-12-28 12:43:27 +00:00
-
e5752a5fe7
Draw player centered on position
cdo
2024-12-28 12:37:10 +00:00
-
6ca053f126
Use game coordinates for view and player positions
cdo
2024-12-28 12:34:09 +00:00
-
fad49a7d15
Handle player motion (arrow keys)
cdo
2024-12-28 11:35:06 +00:00
-
39e8002caf
Render player with animated sprite
cdo
2024-12-27 17:13:33 +00:00
-
fa7315d6b3
Implement basic map drawing from tileset
cdo
2024-12-27 16:13:21 +00:00
-
4151ca5717
Add some block comments
cdo
2024-12-27 12:44:37 +00:00
-
eaf8df0fb1
Handle map path being too long
cdo
2024-12-26 20:05:18 +00:00
-
296975caa1
Add assets/ directory to .gitignore
cdo
2024-12-26 20:01:01 +00:00
-
9234c6d421
Update README
cdo
2024-12-26 20:00:55 +00:00
-
c0fc016b85
Implement TMX map loading
cdo
2024-12-26 20:00:42 +00:00
-
57a9b20449
Create basic SDL2 application
cdo
2024-12-26 15:34:22 +00:00
-
12bbdce162
Add license file (AGPL-3.0)
cdo
2024-12-25 18:16:41 +00:00
-
7f3519bdf6
Create README
cdo
2024-12-25 18:09:04 +00:00
-
ad798ec0be
Create .gitignore
cdo
2024-12-25 18:09:01 +00:00
-
69b958d393
Set up linter
cdo
2024-12-25 18:08:55 +00:00
-
5c49bb98ce
Set up auto-formatter
cdo
2024-12-25 18:08:53 +00:00
-
21cf170b5a
Create project skeleton
cdo
2024-12-25 18:08:50 +00:00