aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/QuestList.htm40
-rw-r--r--include/entities.h29
-rw-r--r--src/entities.cpp21
3 files changed, 90 insertions, 0 deletions
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 @@
+<!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
index 0000000..cb10bcf
--- /dev/null
+++ b/include/entities.h
@@ -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
index 0000000..1cf2a32
--- /dev/null
+++ b/src/entities.cpp
@@ -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