aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerScript.h
blob: d8eb098b5d695018f75514e6ec75480e0aa3f040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <crepe/api/Event.h>
#include <crepe/api/Script.h>

class PlayerScript : public crepe::Script {
public:
	void init();
	void fixed_update(crepe::duration_t dt);

private:
	bool on_collision(const crepe::CollisionEvent & ev);

private:
	int prev_anim = 0;
};