Skip to content

Commit

Permalink
un commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MNVallone committed Oct 2, 2024
1 parent 6524cf0 commit 11a3b4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions main.wpgm
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import pepita.*

program PepitaGame {
game.title("Pepita")
game.height(10)
game.width(10)
game.cellSize(100)
game.height(18)
game.width(25)
game.cellSize(50)

game.addVisual(pepita)

keyboard.w().onPressDo({ pepita.fly(1) })



game.start()
}
2 changes: 1 addition & 1 deletion pepita.wlk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object pepita {
var energy = 100
const position = new MutablePosition(x=0, y=0)
const position = new MutablePosition(x=2, y=2)

method image() = "golondrina.png"
method position() = position
Expand Down

0 comments on commit 11a3b4a

Please sign in to comment.