From: Andy Belle-Isle Date: Thu, 10 Sep 2015 15:51:00 +0000 (-0400) Subject: Stuff X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=dfb65f04b8579c9c4e24086452474adcae9b87b7;p=clyne%2Fgamedev.git Stuff --- 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