fixes+changes:

- fixed windows build, using path, instead of path/filepath
- added switch + door, implemented relation (pair_system missing yet)
- fixed ldtk map loading, now using correct entitymap.png tileset
This commit is contained in:
2024-03-28 19:41:20 +01:00
parent f6d5385d35
commit dcf31e46ed
12 changed files with 541 additions and 60 deletions

View File

@@ -9,6 +9,7 @@ import (
// manipulates the other
type Bond struct {
ecs.Relation
Id, Ref string
}
// A door has a relation to a switch using the Bond component. The
@@ -19,6 +20,7 @@ type Door struct {
IsOpen bool
OpenSprite *ebiten.Image
CloseSprite *ebiten.Image
Id string
}
func (door *Door) Open() *ebiten.Image {
@@ -35,4 +37,5 @@ type Switch struct {
IsOpen bool
OpenSprite *ebiten.Image
CloseSprite *ebiten.Image
Ref string // the IId of the door
}