Allow for random composition of trees

This commit is contained in:
2022-06-09 11:24:13 +01:00
parent 1f05c74abc
commit 1789a3785d
17 changed files with 103 additions and 88 deletions
+21
View File
@@ -0,0 +1,21 @@
module Dodge.Default.Prop where
import Dodge.Data
import Geometry
defaultProp :: Prop
defaultProp = Projectile
{ _prPos = V2 0 0
, _pjStartPos = V2 0 0
, _pjVel = V2 0 0
, _prDraw = const mempty
, _pjID = 0
, _pjUpdate = const id
}
defaultShapeProp :: Prop
defaultShapeProp = ShapeProp
{ _prPos = 0
, _pjID = 0
, _pjRot = 0
, _pjUpdate = const id
, _prDraw = const mempty
, _prToggle = True
}