I'm creating a text-based rpg and I'm having some trouble... What I would like to do is implement a room type that would store description and among other things, have a navigation system (I.E. GO NORTH). Since I'm using c++, I've gone ahead and created a rooms class.. but that's roughly all I've done. If anyone here could lend me their expertise in such matters, I would greatly appreciate it.
Sorry if my post seems a bit unclear.
darksmokepunch 0 Newbie Poster
Recommended Answers
Jump to PostMake a class for a "player" and a "game" to go along with "room" (obviously you need many other classes but this gives a foundation). Have "game" instantiate an array of rooms and a player object.
Try to go a bit further and come up with some code and …
Jump to Postthings like 'game', 'player', 'room', etc don't sound particularly abstract to me :-)
Usually when I think about concepts, the initial question is "what does the program do - i.e. rather than considering the program as a bunch of uninteresting static objects, think about the interactions between them, especially …
All 6 Replies
Taywin 312 Posting Virtuoso
darksmokepunch 0 Newbie Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
nbaztec 45 Posting Pro in Training
Bench 212 Posting Pro
darksmokepunch 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.