Barriers are queried, created when colliding with creatures

This commit is contained in:
2016-04-04 02:41:14 +10:00
parent 7205d6692c
commit 8749d1fd93
7 changed files with 84 additions and 9 deletions
+6 -1
View File
@@ -29,7 +29,12 @@ CreatureData::CreatureData(std::string _avatar, int _scriptRef):
avatar(_avatar),
scriptRef(_scriptRef)
{
//EMPTY
SetBounds({
CREATURE_BOUNDS_X,
CREATURE_BOUNDS_Y,
CREATURE_BOUNDS_WIDTH,
CREATURE_BOUNDS_HEIGHT
});
}
int CreatureData::Update(lua_State* L) {
+1
View File
@@ -21,6 +21,7 @@
*/
#pragma once
#include "creature_defines.hpp"
#include "entity.hpp"
#include "lua.hpp"