robotopia-x / todo

:warning: DEPRECATED - projects will be now tracked on organization level
https://github.com/orgs/robotopia-x/projects/2
The Unlicense
1 stars 0 forks source link

Build component based game engine #11

Closed paulsonnentag closed 7 years ago

paulsonnentag commented 7 years ago

Game Engine

Gameplay

timgrossmann commented 7 years ago

Error message when walking against the upper or lower edge of the game field.

Note: Only happens with the upper edge and lower edge, left right edge don't throw any errors.

screen shot 2016-12-05 at 15 06 34 screen shot 2016-12-05 at 15 09 43 screen shot 2016-12-05 at 15 12 54 screen shot 2016-12-05 at 15 12 59 screen shot 2016-12-05 at 15 10 28
paulsonnentag commented 7 years ago

The problem is probably on our side. I'll look into it later.

timgrossmann commented 7 years ago

Fixed in #17 in branch "resource-collect"

if (game.tiles[nextY] &&
  game.tiles[nextY][nextX] === 2) {
  return {}
}
paulsonnentag commented 7 years ago

There is another problem. I haven't implemented my effect wrapper for the game component correctly. In choo effects only trigger side effects and actions. They don't mutate state directly. I'll fix this shortly