Compare commits
10
Commits
72a07395c7
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
639b43e5c7 | ||
|
|
c6d22f9d8f | ||
|
|
6a69ea5685 | ||
|
|
3aee2fa468 | ||
|
|
0bfecbfb66 | ||
|
|
7beb263dfc | ||
|
|
420998231b | ||
|
|
fc4a95db3d | ||
|
|
331a0812bc | ||
|
|
888c0744d9 |
No files matched your search
@@ -7,3 +7,10 @@ print.d
|
||||
intro.d
|
||||
sleep.d
|
||||
game.d
|
||||
chest.d
|
||||
door.d
|
||||
inventory.d
|
||||
player.d
|
||||
room.d
|
||||
wall.d
|
||||
item.d
|
||||
Whitespace-only changes.
File renamed without changes.
Whitespace-only changes.
@@ -21,6 +21,7 @@ void Game::gameloop(){
|
||||
}
|
||||
|
||||
previous_time = chrono::steady_clock::now();
|
||||
exit(1);
|
||||
|
||||
}
|
||||
}
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
|
||||
class Inventory{
|
||||
public:
|
||||
|
||||
Inventory(){
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
class Item{
|
||||
|
||||
|
||||
};
|
||||
@@ -0,0 +1,14 @@
|
||||
#include "inventory.h"
|
||||
#include "item.h"
|
||||
|
||||
|
||||
class Player{
|
||||
public:
|
||||
void move();
|
||||
void add_inventory(Item);
|
||||
bool check_inventory(Item);
|
||||
bool remove_inventory(Item);
|
||||
|
||||
private:
|
||||
Inventory inventory;
|
||||
};
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
+3
-5
@@ -2,12 +2,10 @@
|
||||
|
||||
int main (){
|
||||
system("clear");
|
||||
//Title title;
|
||||
Title::mainTitle();
|
||||
//Intro intro;
|
||||
//Intro::mainIntro();
|
||||
Game game;
|
||||
game.gameloop();
|
||||
Intro::mainIntro();
|
||||
//Game game;
|
||||
//game.gameloop();
|
||||
cin.get();
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
#include "include/player.h"
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ void Print::type(string text){
|
||||
char* charArray = new char[a+1];
|
||||
strcpy(charArray, text.c_str());
|
||||
int i = 0;
|
||||
int time = 250;
|
||||
int time = 150;
|
||||
|
||||
while(i < a+1){
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(time));
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user