- commit
- 9f57e1ad60fc62cad49d86ee1a4ec092c6d928fb
- parent
- 3b8bf1780f96211df1bff3c27159046a647ede2b
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-09-26 06:24
refactor: constructor keys
Diffstat
| M | game.go | 12 | ++++++------ |
1 files changed, 6 insertions, 6 deletions
diff --git a/game.go b/game.go
@@ -157,12 +157,12 @@ func (game *Game) generateMap() {
157 157 lines = append(lines, makeRect(p2.X, p1.Y, p2.X, p2.Y))
158 158
159 159 monster := Monster{
160 -1 game,
161 -1 make(chan bool),
162 -1 game.createId(),
163 -1 'm',
164 -1 rect.RandomPoint(),
165 -1 2,
-1 160 Game: game,
-1 161 quit: make(chan bool),
-1 162 Id: game.createId(),
-1 163 Rune: 'm',
-1 164 Pos: rect.RandomPoint(),
-1 165 Speed: 2,
166 166 }
167 167 game.Monsters[&monster] = true
168 168 go monster.run()