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 39433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:51:51+00:00 2026-05-10T14:51:51+00:00

I am designing a game to be played in the browser. Game is a

  • 0

I am designing a game to be played in the browser.

Game is a space theme and I need to generate a map of the ‘Galaxy’.

The basic idea of the map is here:

game map http://www.oglehq.com/map.png

The map is a grid, with each grid sector can contain a planet/system and each of these has links to a number of adjacent grids.

To generate the maps I figured that I would have a collection of images representing the grid elements. So in the case of the sample above, each of the squares is a separate graphic.

To create a new map I would ‘weave’ the images together. The map element images would have the planets and their links already on them, and I, therefore, need to stitch the map together in such a way that each image is positioned with its appropriate counterparts => so the image in the bottom corner must have images to the left and diagonal left that link up with it correctly.

How would you go about creating the code to know where to place the images? Is there a better way than using images?

At the moment performance and/or load should not be a consideration (if I need to generate maps to have preconfigured rather than do it in real-time, I don’t mind).

If it makes a difference I will be using HTML, CSS, and JavaScript and backed by a Ruby on Rails app.

  • 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. 2026-05-10T14:51:51+00:00Added an answer on May 10, 2026 at 2:51 pm

    There are two very nice browser-based vector / javascript-manipulable graphics packages which, together, are virtually universal: SVG and VML. They generally produce high-quality vector-based images with low bandwidth.

    SVG is supported by firefox, opera, safari, and chrome – technically only part of the specification is supported, but for practical purposes you should be able to do what you need. w3schools has a good reference for learning/using svg.

    VML is Microsoft’s answer to SVG, and (surprise) is natively supported by IE, although SVG is not. Msdn has the best reference for vml.

    Although it’s more work, you could write two similar/somewhat integrated code bases for these two technologies. The real benefit is that users won’t have to install anything to play your game online – it’ll just work, for 99.9% of all users.

    By the way, you say that you’re asking for an algorithm, and I’m offering technologies (if that’s the right term for SVG/VML). If you could clarify the input/output specification and perhaps what part presents the challenge (e.g. which naive implementation won’t work, and why), that would clarify the question and maybe provide more focused answers.

    Addendum The canvas tag is becoming more widely supported, with the notable exception of IE. This might be a cleaner way to embed graphic elements in html.

    Useful canvas stuff: Opera’s canvas tutorial | Mozilla’s canvas tutorial | canvas-in-IE partial implementation

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

Sidebar

Related Questions

For a learn-as-I-code game that I'm designing, I have a pretty rudimentary map: http://www.dixieandtheninjas.net/dynasties/images/dynasties_map_2.jpg
Here is where I am at presently. I am designing a card game with
I need help in designing a Chess game. I've already started but haven't got
I need to split my job with my partner for designing game stages, and
I am designing a GUI to emulate a Nurikabe game (description here ). I
I'm designing game site where many (hopefully thousands) players will simultenaously play certain card
I'm designing a game for windows 8 using HTML5 , but my game can't
I am designing a Game and have a large background. The background it a
I'm designing a game where players are programmed bots competing in a programming contest.
I am designing a game engine that makes use of the DirectX 11 API,

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.