-
Notifications
You must be signed in to change notification settings - Fork 0
/
forest.h
45 lines (38 loc) · 949 Bytes
/
forest.h
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
#pragma once
#include <queue>
#include <list>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SDKDDKVer.h>
#include <Windows.h>
#include <stdio.h>
#include <conio.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")
using namespace sf;
class Forest {
public:
int durationIn, noteIn, velocityIn, onOff;
float x, y;
float dist = 3.f;
int tickDeltaT = 100;
bool drawingActive;
bool initialized = false;
float PI = 3.1415926535897932384f;
float trajDeg, trajRad, fatness, angleChange;
float conv = (PI/180.f);
int stage;
std::list<Sprite> shapesList;
Clock drawingClock, refreshClock;
Texture treeTex, rockTex, refreshTex;
Sprite tree, rock, refreshSprite;
Event event;
Color currColor;
void run(RenderWindow &window, int &width, int &height);
void pollInput();
void tick();
void update(RenderWindow &window);
void grabAndPopNextInput();
void addPressReleaseShapes();
void render(RenderWindow &window);
};