Triggers have a basic response to character collision

I've hacked the trigger system to create a really basic teleport pad,
using the dirt tile as an indicator. This behaviour is not coded into the
engine, but is in fact scripted in lua.

This commit is messy, due to lack of sleep.
This commit is contained in:
Kayne Ruse
2015-03-04 06:16:12 +11:00
parent 74ed93ddc7
commit 41d6314beb
6 changed files with 64 additions and 27 deletions
+4
View File
@@ -21,6 +21,10 @@
*/
#include "entity.hpp"
void Entity::Update() {
origin += motion;
}
int Entity::SetRoomIndex(int i) {
return roomIndex = i;
}