time (in milliseconds) for how long the object already exists in the game
The game instance.
OptionalimageOptionalmaxoptional duration in milliseconds for how long the object should still exist in the game
OptionaltileChecks for collision with other bullets.
Check for collision with walls, handle them.
Previous position {x, y}.
Marks the object as deleted.
Draws the bullet on the canvas.
The 2D context.
Called when the bullet explodes.
Is the object marked as deleted?
Leave a trace of smoke.
Update the position of the object on the map
a coordinate tuple (x, y)
Timestepping: translation, aging, collision.
Represents a bullet fired by a tank.