-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsushi.hpp
More file actions
44 lines (39 loc) · 950 Bytes
/
sushi.hpp
File metadata and controls
44 lines (39 loc) · 950 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "ecs.hpp"
class PhysicsComponent;
class GraphicsComponent;
class JumpingComponent;
class ColliderComponent;
class HealthComponent;
class InputComponent;
class GrabComponent;
class Sword;
class Sushi : public Entity {
public:
int jump_height;
int x_offset, y_offset;
void addAnimations();
void init();
void update();
void draw();
Sushi(int x, int y);
~Sushi();
private:
PhysicsComponent* pc;
GraphicsComponent* gc;
JumpingComponent* jc;
ColliderComponent* cc;
HealthComponent* hc;
InputComponent* ic;
GrabComponent* ggc;
Sword* sword;
SDL_RendererFlip flip;
const int LATERAL_SPEED = 30;
const int PROJECTILE_SPEED = 30;
const int JUMP_HEIGHT = 50;
const int WIDTH = 64;
const int HEIGHT = 64;
const int X_OFFSET = 0;
const int Y_OFFSET = 0;
bool is_grabbing_wall = false;
};