BleepingComputer.com: Help with making adventure game in java

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help with making adventure game in java DnD dungeon runner-style game

#1 User is offline   sausage 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 317
  • Joined: 01-November 08
  • Gender:Male
  • Location:Louisville Colorado

  Posted 01 November 2008 - 01:32 AM

So, I'm trying to do a dungeon runner type game with DnD invloved. I have the encounter stuff all set up perfectly but I can't seem to figure out in my mind how I can get the dungeon running working withouth 19 million lines. I am trying to do something like

####################################
# #
# ############################## #
# ############################## #
# # #
# # ##############################
# # #
# P ############**####################
#####################################

Where P is the player # is a wall and ** is the next area.

When I do if (movement = forward)
{
System.out.println("I don't want to spend forever retyping the dungeon");
I can never make it back to that same spot and move again constantly without an infinteciaml amount of lines of code. Is there anyway I could use some kind of Read.line method or something to get this working withouth 14 trillion lines? :thumbsup: :flowers: :trumpet: :inlove:

By the way, that thing up top is supposed to look like a maze but the forum hates me. :) :woot: :cool: :huh:
If I'm posting, I probably have something horribly wrong with my computer, there's no obvious explanation for it, that's just the way it is.

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 01 November 2008 - 06:13 AM

Yes, you can do it in precisely 47,296 lines.

Quote

but the forum hates me.

Or maybe learn how to use the forum? :thumbsup: Try using the code tags.

By the way, I have no idea what DnD or infinteciaml is.

And actually, I have no idea how much code it would take to do what you want because I have not seen your code.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users