Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (537)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How to make a Strategic Map?  (Read 773 times)
0 Members and 1 Guest are viewing this topic.
Offline relachs

Junior Newbie





« Posted 2006-02-06 05:50:05 »

Hi there, i am german so excuse my bad english  Roll Eyes

I want to make a strategic map for a strategic game  Roll Eyes Tongue  like this or more cheap: http://www.wargamer.com/reviews/shogun/STRATEGIC_MAP.jpg

so, if i click on it, it should call a method with the Nation-Object of the nation i just clicked if you understand  Embarrassed

and there should be an option to highlight the area of the nation you clicked. like you click on a nation and the background changes to red, but only for that nation <.<

ok, i think you got it, i hope Tongue
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #1 - Posted 2006-02-07 03:55:49 »

There are lots of posiblities.  one that comes to mind is to have a 2d array of bytes the same dimensions as the map image.  The byte at each array position will be set to the id # for that "nation" or "territory".  you can also use the byte array to implement some kind of flood fill to colour selected nations.  There was a good flood-fill algorithm posted here recently - try searching in the Shared Code area.

Offline relachs

Junior Newbie





« Reply #2 - Posted 2006-02-07 11:43:40 »

thanks for your reply. i will search around for some other others before i decide how i am going to solve this...
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (16 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (18 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (42 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!