added the files

This commit is contained in:
Justin 2025-05-09 19:15:51 -05:00
parent 8a351b03b4
commit 5974b9d325
5 changed files with 42 additions and 2 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@ main.d
title.d title.d
obj/* obj/*
Shot-Gun-Pete Shot-Gun-Pete
banner.txt
print.d

16
src/include/print.h Normal file
View File

@ -0,0 +1,16 @@
#include <iostream>
#include <string>
using namespace std;
class Print{
public:
Print (){
};
~Print(){
};
void printl(string text);
void println(string text);
};

View File

@ -1,4 +1,5 @@
#include <iostream> #include <iostream>
#include <unistd.h>
using namespace std; using namespace std;
class Title{ class Title{

9
src/print.cpp Normal file
View File

@ -0,0 +1,9 @@
#include "include/print.h"
void Print::printl(string text){
cout << text;
}
void Print::println(string text){
cout << text << endl;
}

View File

@ -1,9 +1,21 @@
#include "include/title.h" #include "include/title.h"
#include "include/print.h"
void Title::mainTitle(){ void Title::mainTitle(){
int s = 2000;
cout << "This is the title" << endl; Print print;
print.println("███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗");
usleep(s);
print.println("██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝");
usleep(s);
print.println("███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ ");
usleep(s);
print.println("╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ");
usleep(s);
print.println("███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗");
usleep(s);
print.println("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
} }