diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-04 23:05:42 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-04 23:05:42 +0200 |
| commit | 5224fdc80913597287a5f67efec5d0be3254ce59 (patch) | |
| tree | 7b6c4cac23223926ffb620a2c9a6a43caab6b613 /README.md | |
| parent | a5fef758107888853c14a592696b45768ef56df8 (diff) | |
Fmt
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -5,27 +5,8 @@ ## TODO - atm, stops moving if someone settles at destination - -```go -func (g \*Game) updatePlacingWall(cursor Point) { - if inpututil.IsMouseButtonJustReleased(ebiten.MouseButtonLeft) { - if cursor.In(soil.Bounds()) { - position := cursor.Sub(soil.Position).Div(100).Mul(100).Add(Point{50, 50}) - g.Blocks = append(g.Blocks, Block{NewTile(Point{100, 100}, position, color.RGBA{0x00, 0x00, 0x00, 0xff}), WallBlock}) - } - } -} -``` - -```go - if inpututil.IsMouseButtonJustReleased(ebiten.MouseButtonLeft) && cursor.In(wallButton.CollisionBounds()) { - if g.CurrentAction == PlacingWall { - g.CurrentAction = Selecting - } else { - g.CurrentAction = PlacingWall - } - } -``` +- save globally resources +- an entity may spawn other enities with a cost ## Dependencies |
