Added basic player movement.
This commit is contained in:
16
src/world/entity/common.h
Normal file
16
src/world/entity/common.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <dawn/dawn.h>
|
||||
#include "../../display/spritebatch.h"
|
||||
#include "../map/tile.h"
|
||||
|
||||
#define ENTITY_COMMON_MOVE_SPEED 10
|
||||
|
||||
void entityCommonMove(entityid_t id, entity_t *entity, int32_t x, int32_t y, int32_t z);
|
||||
void entityCommonRender(entityid_t id, entity_t *entity);
|
Reference in New Issue
Block a user