Add trajectory to grenades, various refactoring

This commit is contained in:
2021-09-25 18:39:53 +01:00
parent a0340eb024
commit 32367b5b2d
32 changed files with 339 additions and 253 deletions
+3 -2
View File
@@ -4,15 +4,16 @@ import Dodge.Data
import Picture
import Geometry.Data
defaultShell :: Projectile
defaultShell :: Prop
defaultShell = Shell
{ _pjPos = V2 0 0
, _pjZ = 20
, _pjStartPos = V2 0 0
, _pjVel = V2 0 0
, _pjAcc = V2 0 0
, _pjDir = 0
, _pjSpin = 0
, _pjDraw = const blank
, _prDraw = const (mempty, blank)
, _pjID = 0
, _pjTimer = 0
, _pjUpdate = const id