-
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.
Bordes implementados | Gravedad arreglada
- Loading branch information
1 parent
ac66370
commit 6e47ac7
Showing
6 changed files
with
88 additions
and
30 deletions.
There are no files selected for viewing
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
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,18 @@ | ||
import invisible_objects.* | ||
object settings { | ||
|
||
method init (){ | ||
game.title("FireBoyWaterGirlGame") | ||
game.boardGround("nivel_1.png") | ||
game.height(29) | ||
game.width(39) | ||
game.cellSize(36) // 1404x1044 / 39x29 = 36px | ||
} | ||
|
||
method generarMarco(){ | ||
(0..38).forEach { x => game.addVisual(new Border(posX = x, posY = 0))} | ||
(0..38).forEach { x => game.addVisual(new Border(posX = x, posY = 28))} | ||
(0..28).forEach{ y => game.addVisual(new Border(posX = 0, posY = y))} | ||
(0..28).forEach{ y => game.addVisual(new Border(posX = 38, posY = y))} | ||
} | ||
} |
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
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,17 @@ | ||
class Border { | ||
|
||
var posX | ||
var posY | ||
|
||
method esAtravesable() = false | ||
|
||
method position(positionX, positionY) { | ||
posX = positionX | ||
posY = positionY | ||
} | ||
|
||
var property position = new MutablePosition (x=posX, y=posY) | ||
|
||
|
||
} | ||
|
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