-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicLevel.hpp
More file actions
26 lines (20 loc) · 771 Bytes
/
BasicLevel.hpp
File metadata and controls
26 lines (20 loc) · 771 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
#pragma once
#include "Level.hpp"
#include "Portal.hpp"
struct BasicLevel : public Level {
BasicLevel(GameMode *gm,
Scene::Object::ProgramInfo const &texture_program_info,
Scene::Object::ProgramInfo const &depth_program_info);
virtual ~BasicLevel() {};
Scene::Object::ProgramInfo texture_program_info;
Scene::Object::ProgramInfo depth_program_info;
virtual void update(float elapsed) override;
virtual bool collision(Scene::Object *o1, Scene::Object *o2) override;
virtual void fall_off(Scene::Object *o) override;
virtual void render_pass() override;
Scene::Object *create_food(std::string veg_name);
void spawn_food();
uint32_t fruit_hit = 0;
float fruit_timer = 0.f;
float messagetime;
};