summaryrefslogtreecommitdiff
path: root/objects/Enemy.lua
AgeCommit message (Collapse)Author
2025-03-14refactor: seperate object placement initializersEltrac
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: pokob show different appearances in each health stateEltrac
2025-03-13feat: pokobs drop a broken heart when a bullet hits themEltrac
also add a hook (onHit) to define behavior after a enemy is hit
2025-03-13refactor: remove body objectEltrac
2025-03-12feat(audio): enemy death soundEltrac
2025-03-12refactor: use lifecycle manager to destroy all bodiesEltrac
2025-03-12refactor: cleaner codeEltrac
2025-03-12fix: stunned enemies still being able to moveEltrac
2025-03-12chore: better onContact hook when dealing collisionsEltrac
2025-03-12refactor: damage enemy on shot contact, not on detecting bullets itselfEltrac
2025-03-11chore: tidy up dependencies and clean codeEltrac
2025-03-11fix: body not destroyed after enemy diesEltrac
2025-03-11refactor: implement physics engineEltrac
replace original moving logic and collision detection with love.physics
2025-03-11refactor: maintain all objects in room objectEltrac
2025-03-11refactor: object updates itself with :update() functionEltrac
2025-03-11feat: add color filter to indicate enemy statusEltrac
2025-03-11feat: add sticky heartEltrac
2025-03-06style: remove Chinese commentEltrac
2025-03-06fix: delta becomes a boolean value in some caseEltrac
2025-03-06fix: enemies get stuck on touching obstaclesEltrac
As `utils.isBlocked()` function requires, dv = speed * dt * delta. But delta was calculated after dv and is not included in, hence the dv value was incorrect, which leads to misjudgement if an enemy is blocked
2025-03-04perf: localize all objects moduleEltrac
2025-03-04refactor: make Body object localEltrac
2025-03-04refactor: make data tables localEltrac
2025-03-03feat: librarian moves fast verticallyEltrac
2025-02-28feat: enemy walking animationEltrac
2025-02-28fix: incorrectly drawn spritesEltrac
refactored drawQuad function and set debug mode in config
2025-02-27feat: add lancer's spriteEltrac
2025-02-25feat: implement damage systemEltrac
now enemies won't killed just by any bullets
2025-02-25feat: shiny hearts speed up player and stun enemies within rangeEltrac
2025-02-22feat: enemy gets blocked by walls and obstaclesEltrac
2025-02-20refactor: use Body objectEltrac
- Body defines an object's size and shape - Body provides a universal function to detect collision
2025-02-20feat: place enemies at preset locationEltrac
2025-02-20refactor: cancel room parameter when creating new enemyEltrac
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-19feat: new types of enemy with various dropsEltrac
2025-02-19refactor: separate logic and objectEltrac
2025-02-19feat: enemies now move towards playerEltrac
2025-02-18feat: randomly generate enemies in each roomEltrac
just temporary