-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
32 lines (22 loc) · 1.1 KB
/
Main.cpp
File metadata and controls
32 lines (22 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <string.h>
#include "world.h"
#include "MemLeaks.h"
//Free exits brakpoint.
//Make a good scanf of the actions.
//Separate in functions.
//Add entity.
int main(){
ReportMemoryLeaks();
world* my_world;
my_world = new world[1];
printf("**WELCOME TO ZORK**\n\n");
printf("Before starting: Comands must be inserted like <action> <item>, if the comand is not recognized nothing will happen.\n\nAlmost all the objects are hidden by some simple object that you will have to move, open, press some button, insert some pasword, etc\n Possible actions: go, open, close, move, pick, drop, stats, equip, unquip, look, help, press, hit, attack, buy, sell.\n\n");
printf("(For testing combat mode without solving the puzzles you can teleport them using <teleport> + A or B or C or D, once you beat all the monsters you can go back to the initial room (<teleport> + E) to be teleported and face the final boss. I recommend taking some resources first)\n\n");
my_world->CreateWorld();
my_world->Check_input();
my_world->Destroy_World();
//delete[] my_world;
getchar();
return 0;
}