Commit Graph

1842 Commits

Author SHA1 Message Date
dd291096d5 refactor file thread 2025-07-06 15:06:00 +01:00
2e0549097e begin merging files which were previously in temp-squares directory into main 2025-07-06 14:56:54 +01:00
395d6002d8 done refactoring functional core (mostly); next, need to move folders in temp-squares directory into main 2025-07-06 14:45:20 +01:00
1c34bd715f finished with normal nmode for app-update refactoring 2025-07-06 14:26:11 +01:00
11052e801f port function to handlw window resizing event 2025-07-06 14:08:44 +01:00
d231edda6a modify ClickPoints.getClickPos function to detect click for square/pixel, not for triangle. (Checking if mouse is between two click points instead of if mouse is around one click point.) 2025-07-06 14:01:03 +01:00
4a87b0f16e port 'addCoordinates' function to app-update.sml 2025-07-06 13:52:38 +01:00
833005703b a bit of refactoring for quad tree's 'toTriangles' function 2025-07-06 13:26:33 +01:00
1ce3a36db4 remove unused parameter from quad tree 2025-07-06 13:23:14 +01:00
0bdf5064d8 port arrow movement (involving functional core) 2025-07-06 03:58:45 +01:00
20c02814e4 refactoring progress 2025-07-06 03:53:26 +01:00
a919e3d3d4 add function to convert from absolute pixel value to NDC 2025-07-06 03:35:36 +01:00
ed64b464c8 progress with refactoring 2025-07-06 03:21:18 +01:00
df5f326e36 begin refactoring AppUpdate structure 2025-07-06 02:49:38 +01:00
e8e090a19d add refactored message types to temp folder 2025-07-06 02:30:15 +01:00
441e5fdd69 add graph lines to refactored version 2025-07-06 02:15:16 +01:00
79be94bcbd begin refactoring to use square pixels instead of triangles, focusing on functional core first 2025-07-06 01:38:02 +01:00
513cbd3dba code a quad tree decomposition algorithm 2025-07-06 00:32:28 +01:00
4b6d917be9 fix a purely visual bug: do not transition to 'DROP_BELOW_PLATFORM state when player is touching ground wall 2025-06-10 13:01:05 +01:00
aa068ea48e remove some opaque signature ascriptions 2025-04-22 20:49:56 +01:00
e59a1c67d8 begin scaffolding for adding deletion tests 2025-03-23 07:47:38 +00:00
cbc1359de1 add tests for cursor movement 'gg', which means all cursor movements have tests now. Next: add tests for delete motions. 2025-03-22 20:58:39 +00:00
dc3c1340bf add tests for 'F' motion 2025-03-22 13:50:24 +00:00
8fa5677d4d add tests for 'f' motion 2025-03-22 13:41:50 +00:00
87272a2667 add tests for 'T' motion 2025-03-22 13:09:50 +00:00
9eae0c2d48 begin adding multi-char tests (for motions such as 't<char>') 2025-03-22 06:13:01 +00:00
884c5fa08d pull new update from lib/brolib-sml 2025-03-22 05:31:58 +00:00
649bcb66e1 a bit of refactoring to allow addition of more tests 2025-03-22 05:18:25 +00:00
da86e79115 make player's heatth decrement when attacked, and when player's health reaches 0, boot player back to title screen 2025-03-21 10:58:10 +00:00
f784244e81 make left-attack frames smoother, just as right-attack frames were made smoother in previous commit 2025-03-21 10:37:19 +00:00
a0aac81b6c make whip attack smoother when facing right (by doubling frames and manually coding interpolations) 2025-03-21 10:17:40 +00:00
a84490c86c use parametric polymorphism for value in gap_map.sml, instead of specifying value via functor. This is more flexible because a type which is defined after the functor can be used with the map. (The key in gap_map.sml is still specified by functor, though, which is necessary because the structure uses comparison functions which work with the key.) 2025-03-12 23:25:29 +00:00
0d34db359c accuracy improvement for Whip.leftFrames 2025-03-01 02:13:36 +00:00
3e9933bdd0 fix exception with attacking fallingEnemies, by regenerating fallingTree on each collision 2025-03-01 01:53:30 +00:00
e9e9d80a78 add leftFrames for whip attack 2025-03-01 01:48:15 +00:00
693630a655 add collision detection for whip attack 2025-03-01 01:31:18 +00:00
94dc17011e add a couple of frames to right-attack animation, making it appear smoother and less choppy 2025-03-01 01:11:16 +00:00
39f4614f13 animate whip (only visual; no collision detection) 2025-02-28 14:11:57 +00:00
54a4ed6d64 code box locations of right frames for whip attack 2025-02-28 13:18:42 +00:00
321200139b draw animation frames for whip attack 2025-02-28 12:03:23 +00:00
0385366fce use player jumping sprites when player drops below platform 2025-02-24 12:59:59 +00:00
b697eaf8e0 add sprites for when player jumps while facing left, and add code to handle this case 2025-02-24 12:43:08 +00:00
ee5b30da0e make characters bigger in level (still a multiple of 16 though so will scale nicely) 2025-02-24 11:31:43 +00:00
0353c47f27 add jumping/falling sprites when player is facing right (todo: add sprites mirrored to face left) 2025-02-23 13:47:41 +00:00
d056e08ce7 add ternary string set file, and code an insert function for it (plus datatype definitions, etc.) 2025-02-23 10:44:39 +00:00
4c853c1843 add animation for player walking leftwards 2025-02-23 07:43:23 +00:00
cc01ee7ec9 remove player-walk-right-10 and player-walk-right-11 from walk cycle animation (looks better without those frames) 2025-02-23 07:30:44 +00:00
9286c26231 add a couple of frames to walk animation, and change colour of walls back from white to black (changed to white temporarily so we can see walk animation isolated from any other objects) 2025-02-22 19:22:48 +00:00
bd49877cf7 add code for going through right-walk cycle in draw/vector code (for player) 2025-02-22 19:02:28 +00:00
4a41976009 add 'animTimer' to player type, to help decide which frame to show for player 2025-02-22 14:00:33 +00:00