forked from TheTimeBunny/TimeBom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeBom.cpp
More file actions
88 lines (80 loc) · 1.62 KB
/
TimeBom.cpp
File metadata and controls
88 lines (80 loc) · 1.62 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// TimeBom.cpp : Defines the entry point for the application.
//
#include "TimeBom.h"
class TB_ScenePreparation {
public:
int find_dir() {
std::cout << ""; // placeholder
}
};
class TB_Save {
public:
void save() {
std::cout << ""; //Placeholder
}
public:
std::string load() {
std::cout << ""; //placeholder
}
};
class TB_Render {
public:
int optimize_scene() {
// Decides where and how to draw, starts with poly's, then draws finer detail
std::cout << ""; // Placeholder... surprise!
}
public:
int draw_effects(std::string ef) { //Anti-alaising, RTX, etx;
std::cout << "";
}
};
class TB_Logic {
public:
void tick() {
std::cout << "Placeholder" << std::endl;
//this controls AI, as well as frame based events
}
void biai() {
std::cout << ""; //placeholde
}
class TB_AI {
public:
void tick() {
std::cout << ""; //hmm.. i wonder what this is. Placeholder, maybe?
};
};
};
void loop(int offset /* Not sure about this */, int run, int fps) {
Logic call;
// not sure what this is
int c = run;
int loop = 0;
// I'm assuming this is what you meant???
float rate = 1 / fps;
while (c == 1) {
call.tick();
std::this_thread::sleep_for(std::chrono::milliseconds(rate));
loop++;
if (loop > (fps - 1) {
c = 2; //stops code
}
}
}
// What does this do???
// *touches*
// *BOOM*
int pixf(int sx, int sy) {
int r = sx * sy;
return r;
}
// main function lol
int main()
{
std::cout << "Hello CList!" << std::endl;
int x = 1920; //temp values, v
int y = 1080; //temp values, should read from setting file
int size = pixf(x, y);
int fps = 60;
loop(1, 1, fps); //should be fast enough.
return 0;
};