36 Commits

Author SHA1 Message Date
2f9e663523 Generalize drawing sprites 2024-11-22 16:31:17 +07:00
732f98d038 Add livesupport, get x flipping and run anim working 2024-11-19 22:53:38 +07:00
1c4b0d6bc7 Generalize sprites and soldiers so we can iterate over a list 2024-11-19 14:47:17 +07:00
bdfe86438f Sprite class so we can more easily generalize drawing them and eventually y-sorting 2024-11-18 23:06:59 +07:00
ebf769eeb7 Deltatime movement 2024-11-18 21:58:35 +07:00
fcb067f5bd Trying out CLOS classes, knight follows left click 2024-11-18 21:54:37 +07:00
0d97dd896f Render the archer, animation function 2024-11-15 21:46:35 +07:00
3b0ee06adc Move C code to directory 2024-11-15 11:50:37 +07:00
b8770d04e3 Compiling lisp game to C with ECL 2024-11-13 10:56:48 +07:00
90e927ced2 Draw the terrain properly, draw a tower and a knight 2024-11-12 08:42:31 +07:00
c7075d6251 Draw tiled ground texture with nested for loop 2024-11-11 18:53:18 +07:00
55f875cb44 Make game-state global, implement hash-table for textures, free them at the end 2024-11-11 17:23:23 +07:00
97fd389f9e Lisp version 2024-11-10 11:13:40 +07:00
5de48b7507 Window should close change 2024-11-10 11:13:32 +07:00
d260da4c25 WindowShouldClose() was moved to function in lib to call from main 2024-01-11 10:46:15 +07:00
4b63f91494 Hot reloading: Finally got it working with the stat syscall 2024-01-10 11:42:02 +07:00
93972ba1d4 Hot reloading: Current configuration seems to hot reload correctly 2024-01-10 09:13:24 +07:00
517df72ec3 Hot reloading: WIP Got something working 2024-01-09 22:46:30 +07:00
a5c6569162 Hot reloading: Makefile, inotify, epoll, and splitting .c/.h files 2024-01-09 20:32:12 +07:00
44dc3ccd48 Boid velocity and acceleration when clicking on the screen 2024-01-06 18:24:56 +07:00
50deef7c3d Boids simulation to test things out 2024-01-06 12:29:47 +07:00
05c86f8284 Knight made to move independently, relative screen dimensions 2024-01-06 10:42:38 +07:00
1ff06abdd4 Select knights by dragging rect over them 2024-01-06 09:09:37 +07:00
070f23a467 Multiple Knights with y-depth sorting using insertion sort, texture ids 2024-01-05 17:17:39 +07:00
ba44c72d09 IsAnimationFinished function rather than a bool 2024-01-05 12:42:31 +07:00
1dda2f9315 WIP: Multiple knights after refactoring data structures and creating loops 2024-01-05 12:10:44 +07:00
9dd7727c92 Drawing Debug functions moved to lib.h to clean things up 2024-01-03 09:03:03 +07:00
631940a6eb Unit movement by clicking on the ground, debug stuff 2024-01-01 21:01:46 +07:00
ceca65fb46 Add origin point to sprites, WASD controls camera, debug draw rects, todo list 2024-01-01 16:38:41 +07:00
380361431f Sprite anim looping, knight state management, attacking anim, direction flip 2024-01-01 13:01:35 +07:00
ff49e7d2b3 Separate sprites into .c/.h files 2024-01-01 09:58:51 +07:00
a0126529de Rename config.h to game_data.h 2023-12-31 23:02:19 +07:00
b3cd3e65f7 Got generalized animation system working. Sort of. 2023-12-31 16:31:17 +07:00
882e6bf7a0 Get some animations working, refactor init/update/draw, bring in sprite code 2023-12-30 23:14:31 +07:00
57a609228d Draw tiled map and a blue knight with basic movement keys 2023-12-29 23:47:32 +07:00
0f9ed29a01 First commit 2023-12-29 00:43:35 +07:00