Discuss the massively-multiplayer home defense game.
You are not logged in.
This skidded code is presented to you by DaVinci.
WARNING: Following code is skidded. It includes a lot of shitty code. This is by all means to encourage you all to make yourself so it looks better than what mine is.
#include <iostream>
#include <fstream>
#include <string>
^^^^^^ Those are includes we need.
we are using namespace std.
string housemapstring (inHouseMap);
string newmapdetector;
string thenewrisingone;
newmapdetector = "998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#0#0#0#0#0#0#0#0#0#999#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#";
// The house adv. dupe
size_t founddx = housemapstring.find(newmapdetector);
ifstream dataFilex("Vinci/yourhouse.txt");
getline(dataFilex,thenewrisingone);
dataFilex.close();
if (founddx != string::npos) {
inHouseMap = thenewrisingone.c_str();
}
^^^^^
Put this part to :sethousemap. above everything.
Now you are packed with the skid method of file reading!
It's time that you make a file existent as "Vinci/yourhouse.txt" OR OR OR change it to wtf you want.
This is how I made my starting houses.
noob programmer haking on open-source game.
Offline
bump.
noob programmer haking on open-source game.
Offline
to what end?
Offline
bump.
shameless
"Safety" is relative
Current life: None; I'm quite dead.
Offline
You'll have to do this to EditHouseGrid on game source files.
noob programmer haking on open-source game.
Offline