uqbar-project / wollok-language

Wollok language definition
GNU General Public License v3.0
7 stars 8 forks source link

Wollok Game addVisual requires only positionable but fail if it has no image or image as an empty string "" #195

Closed isaiaslafon closed 3 weeks ago

isaiaslafon commented 3 weeks ago

https://github.com/uqbar-project/wollok-language/blob/master/src/wollok/game.wlk Line 37 Only require by method documentation a positionable, but if it does not have image methos does not run, if it has image mtehor and return an empty string show "image not found" png at top left of the board but it breaks. image break bug No character movement and position not repected (0,0) image solved with a proper png

PalumboN commented 3 weeks ago

but if it does not have image methos does not run

What's the error? It should be an invisible object: https://www.wollok.org/documentation/wollok_game/#objetos-invisibles

The rest is the expected behaviour (empty string is a border case, but it's ok if the image "" does not exist)

isaiaslafon commented 3 weeks ago

It was my mistake, when I try it had a bad path so explodes. Sorry!