Added basic player movement.

This commit is contained in:
2021-04-23 08:17:42 +10:00
parent f7c1380f06
commit e323cf2721
23 changed files with 428 additions and 14 deletions

16
src/world/entity/common.h Normal file
View 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);