change speed that projectile moves at (should be faster than player)

This commit is contained in:
2025-01-13 12:46:10 +00:00
parent 2a940a9392
commit 2c643a1500
2 changed files with 4 additions and 2 deletions

View File

@@ -29,4 +29,6 @@ struct
val enemySize = 35 val enemySize = 35
val enemySizeReal: Real32.real = 35.0 val enemySizeReal: Real32.real = 35.0
val moveEnemyBy = 5 val moveEnemyBy = 5
val moveProjectileBy = 15
end end

View File

@@ -298,8 +298,8 @@ struct
let let
val x = val x =
case facing of case facing of
FACING_LEFT => x - Constants.movePlayerBy FACING_LEFT => x - Constants.moveProjectileBy
| FACING_RIGHT => x + Constants.movePlayerBy | FACING_RIGHT => x + Constants.moveProjectileBy
val newTile = {x = x, y = y, facing = facing} val newTile = {x = x, y = y, facing = facing}
val acc = newTile :: acc val acc = newTile :: acc