Compare commits

..
10 Commits
Author SHA1 Message Date
Justin 639b43e5c7 docs: add introductory narrative for Shotgun Pete. 2025-12-29 18:47:21 -06:00
Justin c6d22f9d8f Turned off the gameloop. 2025-09-24 17:13:20 -05:00
Justin 6a69ea5685 added a exit 2025-05-15 20:35:13 -05:00
Justin 3aee2fa468 fixed typo issues and added some headers 2025-05-15 19:42:55 -05:00
Justin 0bfecbfb66 working on the player 2025-05-13 23:17:24 -05:00
Justin 7beb263dfc Starting the player 2025-05-11 21:48:04 -05:00
Justin 420998231b init 2025-05-11 21:06:17 -05:00
Justin fc4a95db3d Fixed the time of the typing. 2025-05-11 20:47:56 -05:00
Justin 331a0812bc Added more to the ignored file 2025-05-11 18:21:45 -05:00
Justin 888c0744d9 init 2025-05-11 18:16:46 -05:00
19 changed files with 47 additions and 6 deletions

No files matched your search

+7
View File
@@ -7,3 +7,10 @@ print.d
intro.d intro.d
sleep.d sleep.d
game.d game.d
chest.d
door.d
inventory.d
player.d
room.d
wall.d
item.d
View File
Whitespace-only changes.
File renamed without changes.
View File
Whitespace-only changes.
+1
View File
@@ -21,6 +21,7 @@ void Game::gameloop(){
} }
previous_time = chrono::steady_clock::now(); previous_time = chrono::steady_clock::now();
exit(1);
} }
} }
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+11
View File
@@ -0,0 +1,11 @@
class Inventory{
public:
Inventory(){
};
};
+6
View File
@@ -0,0 +1,6 @@
class Item{
};
+14
View File
@@ -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;
};
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+3 -5
View File
@@ -2,12 +2,10 @@
int main (){ int main (){
system("clear"); system("clear");
//Title title;
Title::mainTitle(); Title::mainTitle();
//Intro intro; Intro::mainIntro();
//Intro::mainIntro(); //Game game;
Game game; //game.gameloop();
game.gameloop();
cin.get(); cin.get();
return 0; return 0;
} }
+4
View File
@@ -0,0 +1,4 @@
#include "include/player.h"
+1 -1
View File
@@ -13,7 +13,7 @@ void Print::type(string text){
char* charArray = new char[a+1]; char* charArray = new char[a+1];
strcpy(charArray, text.c_str()); strcpy(charArray, text.c_str());
int i = 0; int i = 0;
int time = 250; int time = 150;
while(i < a+1){ while(i < a+1){
std::this_thread::sleep_for(std::chrono::milliseconds(time)); std::this_thread::sleep_for(std::chrono::milliseconds(time));
View File
Whitespace-only changes.
View File
Whitespace-only changes.