-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleSceneIntro.h
More file actions
67 lines (50 loc) · 1.04 KB
/
ModuleSceneIntro.h
File metadata and controls
67 lines (50 loc) · 1.04 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include "Module.h"
#include "p2DynArray.h"
#include "Globals.h"
#include "Primitive.h"
#define MAX_SNAKE 2
#define INITIAL_TIME 60
struct PhysBody3D;
struct PhysMotor3D;
class ModuleSceneIntro : public Module
{
public:
ModuleSceneIntro(Application* app, bool start_enabled = true);
~ModuleSceneIntro();
bool Start();
update_status Update(float dt);
bool CleanUp();
void OnCollision(PhysBody3D* body1, PhysBody3D* body2);
public:
/*
PhysBody3D* pb_snake[MAX_SNAKE];
Sphere s_snake[MAX_SNAKE];
PhysBody3D* pb_snake2[MAX_SNAKE];
Sphere s_snake2[MAX_SNAKE];
*/
PhysBody3D* pb_chassis;
Cube p_chassis;
PhysBody3D* pb_wheel;
Cylinder p_wheel;
PhysBody3D* pb_wheel2;
Cylinder p_wheel2;
PhysMotor3D* left_wheel;
PhysMotor3D* right_wheel;
Plane* ground;
PhysBody3D* physSensor;
Cube wall1;
Cube wall2;
Cube wall3;
Cube wall4;
Cube sensor[30];
Cube ramp[40];
Cube limits[100];
Cube flag[3];
uint timer = INITIAL_TIME;
uint frames = 0;
uint lap = 1;
uint secondsSinceInit;
bool starting;
int passedCheckpoints;
};