Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to make 2d map?

$
0
0

Your task

You will create a computerised design system that will generate the city topological design that follows the rule. Your system should be able to generate as many as possible design.

Image 1. Task Illustration

The above image only for illustration, you should use your own image (or using free licence image)

The design rule - - - -

The city map into 150 x 150 cells

Since it has large cells while the viewport only show portion of it,mthe viewport could scroll over the map.

The map design is should be randomly regenerated with well design that follow the rule.

Your map should contain o 1 big building (size 10x5)

Image 3. Large Building (10x5 cell) illustration only.

  • 4 medium size building (size 5x3)
  • At least 10 small size building (2x2)
  • At least 10 house (1x2)
  • Road at least 1 cell width
  • Continously 2-lane road (no dead end)
  • Road that has only 1 turn should be in curve

Image 2. Curve road illustration only

You are free to design the image of building and house.Unused cell could be use for green lawn or park or tree or ponds or river. You are free for creative idea.

Your system should have 1 button to redesign. Each time the button is clicked, the wholemap is redesign randomly according to the rule. -You don’t need to draw vehicle on road. Its not the case yet.

i do my best to make that happen, but i dont know the algorithm of case that, please someone help me :)


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>