Log In  

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

P#121167 2022-11-22 14:38


the zombies can spawn on top of you

P#121180 2022-11-22 17:46

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

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 2023-10-02 20:17:21 | 0.056s | Q:23