Log In  

Cart #yesirakzo-0 | 2022-11-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#121167 2022-11-22 14:38

1

the zombies can spawn on top of you

P#121180 2022-11-22 17:46
1

Great graphics but needs work, @dedelamenace.

As @Tatery1 stated, the zombies can appear right on top of you. The hit box is way too strict missing the enemies even as they close in on you.

Here now, use this function if you like to determine if a shot hits an enemy.

function didhit(shotx,shoty,enemyx,enemyy)
  return abs(shotx-enemyx)<8 and abs(shoty-enemyy)<8
end

Will return TRUE if the shot has hit the enemy.

P#121184 2022-11-22 17:54

Thanks @dw817, this was my first school project so a lot of things can be improved. I'll try your function

P#121313 2022-11-24 13:54

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 15:37:22 | 0.060s | Q:24