mirror of
https://github.com/stevenhowes/GoRetro.git
synced 2026-05-26 15:53:31 +01:00
Moveable viewport. Absolute positioning (for UI etc) is possible. Added distance-based bounder for projectiles etc as 'screen' is no longer a suitable bounder. Removed debug msg.
This commit is contained in:
+12
-10
@@ -14,16 +14,18 @@ type component interface {
|
||||
}
|
||||
|
||||
type Element struct {
|
||||
Renderer *sdl.Renderer
|
||||
Position Vector
|
||||
Rotation float64
|
||||
Active bool
|
||||
Delete bool
|
||||
Collisions []Circle
|
||||
components []component
|
||||
parentElement *Element
|
||||
ZIndex int
|
||||
CollisionLayer int
|
||||
Renderer *sdl.Renderer
|
||||
Position Vector
|
||||
SpawnPosition Vector
|
||||
PositionAbsolute bool
|
||||
Rotation float64
|
||||
Active bool
|
||||
Delete bool
|
||||
Collisions []Circle
|
||||
components []component
|
||||
parentElement *Element
|
||||
ZIndex int
|
||||
CollisionLayer int
|
||||
}
|
||||
|
||||
var Elements []*Element
|
||||
|
||||
Reference in New Issue
Block a user