blob: 01eb7aa21ed8e251e8320f23933d82fd01bee39c (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | #include <cassert>
#include <crepe/api/Rigidbody.h>
#include "ZapperScript.h"
using namespace crepe;
using namespace std;
ZapperScript::ZapperScript(const ZapperObject & zapper) : zapper(zapper) {}
void ZapperScript::init() {
	zapper.sprite.beam.mask = {
		.w = 350,
		.h = 117,
		.x = 0,
		.y = 0,
	};
}
void ZapperScript::frame_update(duration_t delta_time) { zapper.sprite.beam.mask.x += 4; }
 |