cppdungeon level maker
[deleted]

Dungeon making script for my upcoming C++ dungeon game.

You are viewing a single comment. View All
SPQR (479)

I'm not sure exactly what it does since it throws std::out_of_range at me if i input anything other than "break". I think it has something to do with the map. Maybe use something like

try {
//do something with std::map 
} catch (std::out_of_range) {
  printf("out_of_range thrown\n");
} 

Note that i'm sure there is a way to use your program properly, but the average user (me included) won't want to spend a ton of time trying to figure it out :P

[deleted]

@SPQR fixing this in a sec, yeah right now this program will seem useless

edit: fixed that, and other user based errors.
the issue was with string.find -> std::string::npos

SPQR (479)

@sanjaykdragon Well I tried it again and it does indeed function now lol. Still not sure what exactly the end result is intended to be, but I'll be keeping an eye on this :)

[deleted]

@SPQR its a level maker for my upcoming dungeon game