From a3db993224c994fdff6f50fedcc266c5e0b94aa8 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 10 Sep 2015 11:31:30 -0400 Subject: added entities --- doc/World.htm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 doc/World.htm (limited to 'doc/World.htm') diff --git a/doc/World.htm b/doc/World.htm new file mode 100644 index 0000000..d17c551 --- /dev/null +++ b/doc/World.htm @@ -0,0 +1,40 @@ + + + + World + + + +

World

+
+

Description

+

World.h contains functions to create and draw worlds, and provide basic object detection.

+
+

The standard form of world generation in World.h is an array of randomly sized vertical lines. +The width of each line is defined as a single HLINE, a macro defined in common.h. ...

+

class World

+
private:
+ struct line_t {
+ float start;
+ } *line;
+ unsigned int lineCount;
+public:
+ World(float width);
+ void draw(void);
+ void detect(vec2 *v,const float width);
+
+ + + -- cgit v1.2.3