Author Topic: Viewing a portion of a custom map, scrolling it etc.  (Read 549 times)

Offline Sunchaser

  • Game Owner
  • Level 23
  • *
  • Posts: 296
  • Reputation: +3/-0
  • Game Owner
    • View Profile
    • Medieval Europe
Viewing a portion of a custom map, scrolling it etc.
« on: April 16, 2010, 12:19:32 PM »
I would like to show to players a little section of a big map, centered on the player location. The player then can zoom it, scroll it, or click to a let's say a city to move there.

Is there any plugin/libray easy to integrate? maybe google maps?

Thanks

Offline jannesiera

  • Level 35
  • **
  • Posts: 1,026
  • Reputation: +6/-1
    • View Profile
    • BBGameDesign
Re: Viewing a portion of a custom map, scrolling it etc.
« Reply #1 on: April 16, 2010, 12:36:06 PM »
Nothing that I know of. Really nothing... You would probably better of doing it yourself (I highly suggest the HTML5 canvas element, especially if you want zooming). It will take some time to build though.

I think you could already get pretty far by pimpin' this to your liking: http://www.bbgamedesign.com/pbbg-community/basic-game-map
A few bookmarks of mine for making game maps: http://www.bbgamedesign.com/resources/building-game-maps-my-bookmarks

Offline raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: Viewing a portion of a custom map, scrolling it etc.
« Reply #2 on: April 16, 2010, 01:34:06 PM »
Like this?

I can link you to the jQuery plugin if you prefer that over Prototype.


I can send you pics of my cocks if you want reference.


Offline Sunchaser

  • Game Owner
  • Level 23
  • *
  • Posts: 296
  • Reputation: +3/-0
  • Game Owner
    • View Profile
    • Medieval Europe
Re: Viewing a portion of a custom map, scrolling it etc.
« Reply #3 on: April 17, 2010, 04:57:59 AM »
Raestlyn, that is exactly what i was searching for. Can you post the Jquery link please?


Offline raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: Viewing a portion of a custom map, scrolling it etc.
« Reply #4 on: April 17, 2010, 12:01:02 PM »
Sure :)

$.mapbox and here is another one, Dragscrollable. I would use the latter, as the first one has too much useless stuff (like zoom) imho.


I can send you pics of my cocks if you want reference.


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal