Commit 72682a67 authored by owlo's avatar owlo

player position

parent 323b7b04
No preview for this file type
......@@ -571,10 +571,11 @@ func main() {
w.WriteHeader(http.StatusOK)
room := flour.Dough(17, 17)
room = flour.Oven(room, "X", 17, 17)
room[122].Label = "player"
space := ""
for x := range room {
done := false
if room[x].X == 7 && room[x].Y == 7 {
if room[x].Label == "player" {
space += "@"
done = true
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment