]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Stuff
authorAndy Belle-Isle <abelleisle@roadrunner.com>
Thu, 10 Sep 2015 15:51:00 +0000 (11:51 -0400)
committerAndy Belle-Isle <abelleisle@roadrunner.com>
Thu, 10 Sep 2015 15:51:00 +0000 (11:51 -0400)
doc/QuestList.htm [new file with mode: 0644]
include/entities.h [new file with mode: 0644]
src/entities.cpp [new file with mode: 0644]

diff --git a/doc/QuestList.htm b/doc/QuestList.htm
new file mode 100644 (file)
index 0000000..a4bf677
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <title>Quest</title>
+       <style>
+       .title{
+               background:#833;
+               color:white;
+               font-family:Consolas;
+               font-size:16px;
+               margin:auto 20px;
+               padding:12px;
+       }
+       .code{
+               background:#555;
+               color:white;
+               font-family:Consolas;
+               font-size:12px;
+               margin:auto 20px;
+               padding:20px;
+       }
+       .reward{
+               background:#383;
+               color:white;
+               font-family:Consolas;
+               font-size:16px;
+               margin:auto 20px;
+               padding:15px;
+
+       }
+       </style>
+</head>
+<body>
+       <h1>Quests</h1>
+       <hr>
+       <div class="title">Hello there!</div>
+       <div class="code">In this quest you must find the starting village of ASS</div>
+       <div class="reward">A starting weapon for the class of your choice</div>
+</body>
+</html>
diff --git a/include/entities.h b/include/entities.h
new file mode 100644 (file)
index 0000000..cb10bcf
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef ENTITIES_H
+#define ENTITIES_H
+
+#include <common.h>
+
+
+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 (file)
index 0000000..1cf2a32
--- /dev/null
@@ -0,0 +1,21 @@
+#include <entities.h>
+
+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