summaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2025-03-16feat(ui): game over screenEltrac
2025-03-16feat(audio): play spring bouncy sound when purple heart hitsEltrac
2025-03-16feat(audio): play fart sound when shooting brown heartEltrac
2025-03-16feat: gift heart now gives a random heart to playerEltrac
2025-03-16refactor: clearer initialization codeEltrac
2025-03-14feat(audio): play sound when going through a doorEltrac
2025-03-14feat(audio): add party music to some roomEltrac
2025-03-13feat: player now can click right to punch mobsEltrac
2025-03-13feat(audio): "gets hit" soundEltrac
2025-03-13refactor: read object list as a utility functionEltrac
2025-03-13feat(audio): play cheerful music in initial roomEltrac
2025-03-13feat(audio): play warning sound when health is lowEltrac
2025-03-13chore: intense fight musicEltrac
2025-03-13fix: occasional error where destroyed body gets destroyed againEltrac
2025-03-13fea(audio): level complete soundEltrac
2025-03-13feat(audio): add background music for some roomsEltrac
2025-03-13fix: loots blocking the wayEltrac
set loots as sensor to allow contact listen but avoid physical collision
2025-03-13fix: shots do not die in contact with wallsEltrac
2025-03-13refactor: a general function to draw rectanglesEltrac
2025-03-13refactor: move room switch trigger to door contactEltrac
due to the requirement for adding doors and door bodies before initializing body lifecycle manager, move lifecycle manager to game initialization and create more bodies with this manager
2025-03-12feat(audio): special sound for shiny heartsEltrac
2025-03-12feat(audio): enemy death soundEltrac
2025-03-12feat(audio): play projectile sound when player shootsEltrac
2025-03-12refactor: use lifecycle manager to destroy all bodiesEltrac
2025-03-12fix: game crash when creating new body during world updateEltrac
use a body lifecycle manager to create after world update is done
2025-03-12chore: remove debugging printsEltrac
2025-03-12chore: better onContact hook when dealing collisionsEltrac
2025-03-11refactor: add walls as world bodyEltrac
2025-03-11refactor: maintain all objects in room objectEltrac
2025-03-09chore: remove testing printsEltrac
2025-03-09refactor: better map generationEltrac
2025-03-09Revert "feat: remove door back when entering a new map"Eltrac
This reverts commit c4b1a488b3c995dff5597f1dc4e725232682c231.
2025-03-09feat: remove door back when entering a new mapEltrac
also ensure randomness when connecting two rooms
2025-03-07fix: some rooms are not accessible due to door misplacementEltrac
2025-03-04refactor: calling rendererEltrac
2025-03-04perf: localize all objects moduleEltrac
2025-03-04refactor: rewrite map generationEltrac
2025-03-04refactor: simplify room generation functionEltrac
2025-02-28style: remove Chinese commentsEltrac
2025-02-28chore: remove debug printsEltrac
2025-02-28feat: enemy walking animationEltrac
2025-02-25feat: shiny hearts speed up player and stun enemies within rangeEltrac
2025-02-23fix: some rooms spawns with no enemiesEltrac
Due to incorrect reference to room date directly, killing enemies in one room means killing enemies in other rooms of the same kind. The problem is now fixed by copying room data instead of referencing it.
2025-02-22refactor: reuse isBlocked() functionEltrac
2025-02-21fix: incorrect collison detection /w player and obstaclesEltrac
2025-02-20feat: place obstacles in roomsEltrac
2025-02-20refactor: use Body objectEltrac
- Body defines an object's size and shape - Body provides a universal function to detect collision
2025-02-19refactor: organize project structureEltrac
- change the way modules are imported, defining module directly in globals - move enemy data and heart data into individual files and /data directory
2025-02-19refactor: make renderer a utilityEltrac
also organize library imports
2025-02-19fix: screen darkens when player is shieldedEltrac