| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
also add a hook (onHit) to define behavior after a enemy is hit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
replace original moving logic and collision detection with love.physics
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
refactored drawQuad function and set debug mode in config
|
|
|
|
now enemies won't killed just by any bullets
|
|
|
|
|
|
- Body defines an object's size and shape
- Body provides a universal function to detect collision
|
|
|
|
|
|
- change the way modules are imported, defining module directly in globals
- move enemy data and heart data into individual files and /data directory
|
|
|
|
|
|
|
|
just temporary
|