You Are Here:

Community: Developer Discussion Boards

#1 Old game with a map - 2004-05-11, 01:03

Join Date: May 2004
Posts: 1
alojix
Offline
Registered User
Hi

I want to make a game, like RISK, and i want to jump between diferent areas/countries.

I have a big png image, with the map, and a array, containing the the coordenates of each country in the map.

How can i construct the code, using the available classes, so the map can be shown in 2 diferent ways:

- The hole map
- a zone of the map (Rectangle) where is center is the coordenate of a country, and when using some keys, the map can be moved to the new contry?


Thanks
I saw some tutorials, but they focuse on a diferent prespective of this one, isnt it?
Last edited by alojix : 2004-05-11 at 01:16.
Reply With Quote

#2 Old 2004-05-28, 16:27

Join Date: Jan 2004
Posts: 7
realdarkwave
Offline
Registered User
If I understood, you should save each country in a different PNG and then cobine them to show the whole map and use them separated to show single countries...

ciao,
dw
Reply With Quote

#3 Old 2004-05-30, 15:47

Join Date: May 2004
Posts: 61
sclarkca
Offline
Regular Contributor
yes, in the game development, the map arthemetic is a very important problem, the ordinary solution is that you can save the map zones into an array, then you can appear them optionally by operate the array!
Reply With Quote

#4 Old No scaling - 2004-05-31, 16:01

Join Date: Mar 2003
Posts: 26
rikard_wigforss@hotmail.com
Offline
Registered User
There is now way to scale your map so you need at least one world map small and one large. Then it should be quite easy to center the screen on a country (on the large map) with clipping.

I would consider a solution of no centering but show a continent on each screen (can be though to fit Asia though...)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ