-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Juan Cruz <[email protected]>
- Loading branch information
1 parent
8a14736
commit be0e84d
Showing
7 changed files
with
17 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import wollok.game.* | ||
|
||
import pepita.* | ||
import morcilla.* | ||
|
||
program PepitaGame { | ||
game.title("Pepita") | ||
program MorcillaGame { | ||
game.title("La Bizarra Aventura de MORCILLA") | ||
game.height(10) | ||
game.width(10) | ||
game.cellSize(100) | ||
|
||
game.addVisual(pepita) | ||
game.addVisual(morcilla) | ||
|
||
keyboard.w().onPressDo({ pepita.fly(1) }) | ||
keyboard.d().onPressDo({ morcilla.caminar(1) }) | ||
|
||
game.start() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
object morcilla { | ||
var property position = new MutablePosition(x=0, y=0) | ||
|
||
method image() = "morcilla.png" | ||
method position() = position | ||
|
||
method caminar(pasos) { | ||
position.goRight(pasos) | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
import pepita.* | ||
import morcilla.* | ||
|
||
describe "group of tests for pepita" { | ||
|
||
test "pepita has initial energy" { | ||
assert.equals(100, pepita.energy()) | ||
} | ||
|
||
} |