Skip to content

Commit

Permalink
gop fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Nov 30, 2021
1 parent c88e0a2 commit 557ed29
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions Calf.spx
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@ var (
)

onStart => {
setXYpos -204,145
setXYpos -204, 145
for {
changeXpos mx
changeYpos my
mx = 0.0
my = 0.0
if touching("Maze") {
play mhit,false
setXYpos -204,145
play mhit, false
setXYpos -204, 145
}
if touching("Red") {
say "You win"
}

wait 0.03
}

}
onKey KeyUp, => {
my = 3
my = 3
}

onKey KeyDown, => {
my = - 3
my = -3
}

onKey KeyLeft, => {
mx = - 3
mx = -3
}

onKey KeyRight, => {
mx = 3
}
mx = 3
}
1 change: 1 addition & 0 deletions Maze.spx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions Red.spx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 4 additions & 6 deletions index.gmx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
var (
Calf Calf
Maze Maze
Red Red
mhit Sound
Calf Calf
Maze Maze
Red Red
mhit Sound
)



run "res", {Title: "MazePlay (by Go+)"}

0 comments on commit 557ed29

Please sign in to comment.