aboutsummaryrefslogtreecommitdiff
path: root/src/entity.h
blob: 368425289a5bc41cafe58d8b9cfa28f4ef4fb059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <stdint.h>
#include <stdbool.h>

typedef struct {
	uint16_t pos_x;
	uint16_t pos_y;
	uint8_t radius;
	uint8_t rotation; //45 degrees steps 0 == right 2 == down 4 == left 6 == up
	int8_t direction_x; //direction where its looking at in case no input;
	int8_t accelY;
	int16_t speed;	// default L/R MODifier
	int16_t air_speed; // air L/R MODifier
	bool in_air;
} hh_s_entity_player;

typedef struct {
	uint16_t pos_x;
	uint16_t pos_y;
	uint8_t radius;
	uint8_t direction_x; //direction where its walking towards;
	int8_t accelY;
	int16_t speed;	// default L/R MODifier
	int16_t air_speed;
	bool in_air;
} hh_s_entity_enemy;