summaryrefslogtreecommitdiff
path: root/objects/Player.lua
AgeCommit message (Collapse)Author
2025-03-16refactor: clearer initialization codeEltrac
2025-03-16fix: next bullet index issues when lose or gain heartEltrac
2025-03-16feat(controller): easier bullet managementEltrac
old approach: press number keys to put specific heart to the end of the line new approach: press Q or E to move the next bullet index
2025-03-14feat: purple heart can now bounceEltrac
2025-03-14refactor: clearer structure of config globalEltrac
2025-03-14feat: player gets knocked back getting hit by enemyEltrac
2025-03-14feat: dynamic punch damageEltrac
punch damage varies with the number of hearts
2025-03-14chore: remove unused logicEltrac
2025-03-13fix: knockback does not work due to velocity overwritingEltrac
2025-03-13feat: player now can click right to punch mobsEltrac
2025-03-13feat(audio): "gets hit" soundEltrac
2025-03-13feat(audio): play warning sound when health is lowEltrac
2025-03-13refactor: remove body objectEltrac
2025-03-13chore: remove unused methodEltrac
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): play projectile sound when player shootsEltrac
2025-03-12fix: bullet collide with player itselfEltrac
2025-03-12chore: better onContact hook when dealing collisionsEltrac
2025-03-12refactor: clearer player-related module divisionEltrac
- Remove logic.player module, move the into objects.player. - Controller module does not deal with specific player movement. Instead, it calculates essential data and pass that to player methods
2025-03-11refactor: implement physics engineEltrac
replace original moving logic and collision detection with love.physics
2025-03-11refactor: move speed up function to Player object moduleEltrac
2025-03-11feat: add sticky heartEltrac
2025-03-04perf: localize all objects moduleEltrac
2025-03-04refactor: make Body object localEltrac
2025-03-04fix: big heart after effects shooting at wrong directionsEltrac
2025-02-28fix: player moving animationEltrac
2025-02-28fix: incorrectly drawn spritesEltrac
refactored drawQuad function and set debug mode in config
2025-02-27refactor: make player an objectEltrac
in order to separate player-related game logic and player state management