Skip to content

Commit

Permalink
Merge pull request #171 from uqbar-project/use-wollok-game-web
Browse files Browse the repository at this point in the history
Usando wollok game web ++++
  • Loading branch information
PalumboN committed Jul 30, 2024
2 parents acbb19d + 5bc5948 commit a482d39
Show file tree
Hide file tree
Showing 12 changed files with 535 additions and 581 deletions.
2 changes: 1 addition & 1 deletion examples/init-examples/existing-folder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "existing-folder",
"version": "1.0.0",
"wollokVersion": "4.0.0",
"author": "ivanjawerbaum",
"author": "palumbon",
"license": "ISC"
}
10 changes: 6 additions & 4 deletions examples/run-examples/basic-example/mainGame.wpgm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

object pepita {
var energy = 100
var nombre = "Pepita"
Expand All @@ -21,10 +20,13 @@ object pepita {

program PepitaGame {
game.addVisualCharacter(pepita)
console.println("starting...")
game.start()
game.onTick(500, "end", {

// Stop on connection (from any client)
game.onTick(0, "end", {
console.println("finishing...")
game.stop()
})

console.println("starting...")
game.start()
}
Loading

0 comments on commit a482d39

Please sign in to comment.