From dfb65f04b8579c9c4e24086452474adcae9b87b7 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Thu, 10 Sep 2015 11:51:00 -0400 Subject: Stuff --- doc/QuestList.htm | 40 ++++++++++++++++++++++++++++++++++++++++ include/entities.h | 29 +++++++++++++++++++++++++++++ src/entities.cpp | 21 +++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 doc/QuestList.htm create mode 100644 include/entities.h create mode 100644 src/entities.cpp diff --git a/doc/QuestList.htm b/doc/QuestList.htm new file mode 100644 index 0000000..a4bf677 --- /dev/null +++ b/doc/QuestList.htm @@ -0,0 +1,40 @@ + + + + Quest + + + +

Quests

+
+
Hello there!
+
In this quest you must find the starting village of ASS
+
A starting weapon for the class of your choice
+ + diff --git a/include/entities.h b/include/entities.h new file mode 100644 index 0000000..cb10bcf --- /dev/null +++ b/include/entities.h @@ -0,0 +1,29 @@ +#ifndef ENTITIES_H +#define ENTITIES_H + +#include + + +class Entities{ +public: + float width; + float height; + float speed; + int type; + vec2 loc; + vec2 loci; + vec2 vel; + vec2 velg; + + void spawn(float, float); + + +}; + +class Player : public Entities{ +public: + Player(); + ~Player(); +}; + +#endif //ENTITIES_H \ No newline at end of file diff --git a/src/entities.cpp b/src/entities.cpp new file mode 100644 index 0000000..1cf2a32 --- /dev/null +++ b/src/entities.cpp @@ -0,0 +1,21 @@ +#include + +void Entities::spawn(float x, float y){ + loc.x = x; + loc.y = y; + loci.x = loc.x; + loci.y = loc.y; + vel.x = 0; + vel.y = 0; + velg.x = 0; + velg.y = 0; +} + +Player::Player(){ + width = HLINE * 6; + height = HLINE * 16; + speed = 1; + type = 0; +} + +Player::~Player(){} \ No newline at end of file -- cgit v1.2.3