-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from uqbar-project/updated-visuals
Invisible objects and objects with text
- Loading branch information
Showing
7 changed files
with
19,436 additions
and
45 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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
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,12 +1,27 @@ | ||
import wollok.game.* | ||
|
||
object myVisual{ | ||
object positionableVisual { | ||
var property position = game.at(1.2, 1.8) | ||
|
||
method image() = "noImage.png" | ||
} | ||
|
||
object completeVisual { | ||
|
||
method position() = game.at(0, 0) | ||
|
||
method image() = "anImage.png" | ||
|
||
method text() = "Sample text" | ||
|
||
method textColor() = "FF0000FF" | ||
} | ||
|
||
// object incompleteVisual { | ||
// method image() = "anImage.png" | ||
// } | ||
|
||
program mockGame { | ||
game.addVisual(myVisual) | ||
// game.addVisual(incompleteVisual) | ||
game.addVisual(positionableVisual) | ||
game.addVisual(completeVisual) | ||
game.start() | ||
} |