YeOldeDM / lets-godot-roguelike

A tutorials series on how to build a simple roguelike in the Godot Game Engine
MIT License
24 stars 5 forks source link

incorrect script for blocking to work #63

Closed verbalshadow closed 7 years ago

verbalshadow commented 7 years ago

In step 3 right above the step code block. Thing does not have a step function only player does.

Now Thing.step() can check for "not blocked cells" instead of just "floor" cells.

should be:

Now Player.step() can check for "not blocked cells" instead of just "floor" cells.

YeOldeDM commented 7 years ago

step() was supposed to be a method of Thing, but come to think of it, Things don't need to Step, just the Player, for now... I changed the text in the article to describe step() as coming from Player and not Thing.