Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4583804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:15:57+00:00 2026-05-21T21:15:57+00:00

I was wondering what would be the most efficient way to make a map

  • 0

I was wondering what would be the most efficient way to make a map in 2D for a java game?

I know this does depend on the way the game will be seen and made so I have included info about this.

View: From Top of Player

Game Type: 2D Shooter

The game cam will focus on the player.

I am going to create my own “map maker”, but was wondering if it should be stored in xml or something. Not exactly sure how to go about this. Are there any good books on this? I was reading ‘killer java games’, but it did not cover this particular topic very well for what I was trying to do.

Now to show you I have been thinking…

I was thinking that the best way would be .xml

Here is an example:

e = entrance / exit

b = block

. = open space

<?xml version="1.0" encoding="UTF-8"?>
<info>
    <name>Crack House</name>
    <date>9:49PM 5/8/2011</date>
    <level>Easy</level>
    <rows>10</rows>
    <colums>7</colums>
</info>
<map>
    <row1>bbbebbb</row1>
    <row2>b.....b</row2>
    <row3>b..bbbb</row3>
    <row4>b.bb..b</row4>
    <row5>b.....b</row5>
    <row6>b..b..b</row6>
    <row7>b..b..b</row7>
    <row8>b..bbbb</row8>
    <row9>b.....b</row9>
    <row10>bbbbbbb</row10>
</map>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:15:57+00:00Added an answer on May 21, 2026 at 9:15 pm

    It depends on what kind of efficiency is most important to you:

    • efficient loading of maps (time taken),
    • efficient storage of maps (space utilization),
    • efficient use of developer time.

    It also depends on your developer skills, and other characteristics of the problem that you have not outlined.

    But the bottom line is that your best strategy is probably to just implement it the simple way to start with, and worry about efficiency later … if it turns out to be a REAL problem.


    One piece of advice. Try to design / structure your software so that you can change the way that the maps are stored without too much effort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wondering what would be the most efficient way to do the following. Game play.
I was simply wondering what would be the simplest and most efficient way of
I am wondering what the best / most efficient / common way is to
I'm wondering what is the most efficient way to obtain autocomplete results from multiple
I was wondering if you could tell me what the most efficient way to
I was wondering, what is the most efficient way of combining results into a
I was wondering what the most efficient way of reading a directory of files
I am wondering how you would approach this problem I have two Taxrates that
I was wondering if InnoDB would be the best way to format the table?
Hey, I'm looking for the most efficient way to maintain an object relative auto-incrementing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.