13 lines
437 B
C
13 lines
437 B
C
#include "sys/sys.h"
|
|
#include "game_map.h"
|
|
|
|
sys_i32 game_map_player_start_x;
|
|
sys_i32 game_map_player_start_y;
|
|
|
|
// called by map_game_map_create_entities
|
|
void map_game_map_player_spawn_create(sys_i32 x, sys_i32 y) {
|
|
// center, because the entity has top-left positioning
|
|
game_map_player_start_x = x * TILE_SZ_MICROPIXEL + PIXEL_SZ_MICROPIXEL * 8;
|
|
game_map_player_start_y = y * TILE_SZ_MICROPIXEL + PIXEL_SZ_MICROPIXEL * 16;
|
|
}
|