POLALA.COM
welcome to my space
X
Welcome to:polala.com
Web Design | Video Games | RVs | Religion | Management | Supplements and Vitamins | Software | Basketball | Related articles
Search:  
NAVIGATION - HOME
C++ Game Design - Eagle Eye Scrollable Map?
Published by: smith 2010-03-17

  • Hey all,

    I am hoping someone might have programmed something like this before. Basically it is the same as any rts, where the screen is only focused on one part of the map, but can be scrolled, and actions still take place offscreen.

    I'm still pretty new to c++, but I am wondering if you could use an 2D array to store data for the map, and then call data from that array based on the position of the screen relative to the map?

    The map I have in mind will be somewhat big, so I was hoping to create something that has no lag and doesn't hog memory/cpu time. Any ideas would be appreciated.
    1 Map 2 Park and Senior Center Information 3 Guide for Exploring ::
    File Format: PDF/Adobe Acrobat - View as HTMLscroll, twist, hot punch, draw file, and heat treat by completing some simple Using our eagle eyes, deer ears. and bear noses, we’ll explore nature’s
    http://www.co.whatcom.wa.us/parks/pdf/parks_winter2006.pdf
    HOME
    Software Download: Pacman-style::
    Allow user to define Clip Size in runtime or design time. Allow user define Vertical or Horizontal scroll bar in thumbnail view. Supports BMP, GIF, ICO,
    http://www.sharewareconnection.com/titles/pacman-style11.htm
    HOME

    Thank you,
    Cedwyn


  • Scratch what i said.
    B & C ComputerVisions myatari.com ataristp.txt Last update 01/26 ::
    Jan 26, 2000 PST315 STE GRAPHICS DEMO - 3-D SCROLL and SUNNY - a graphic demo. . (1 Meg, DS) PST330 GAME HINTS - Maps and hints for Cadaver,
    http://www.myatari.com/ataristp.txt
    HOME
    Kovels' Online Antiques And Collectibles Price Guide::
    Town Harbor, Ships, Benjamin Hill Horn, C.1760, 11 In. Etched Scroll Design . Fort Meigs Map, Eagle, Dan Hanks, September, 1813, 10 In.
    http://www.kovels.com/priceguide/kovels_powderhorn/
    HOME

    Units: [[id(type), #(relative to number onscreen), hp(health), x, y]]
    -Where X, Y are true pixel cords on the map.
    Pangalactic Federation Battleship, Star Trek: Armada 2 Downloads ::
    Jul 23, 2007 And paste into C:\Program Files\Activision\Star Trek Armada II\Textures\ Scroll down to the following lines: (Note: It is not very far)
    http://armada2.filefront.com/file/Pangalactic_Federation_Battleship;81210
    HOME
    Damoclash::
    Scroll down to read my addendum on this blatant act of censorship! . I know for a fact that Bojana Cvejic has been keeping an eagle's eye on the stuff I
    http://www.damoclash.nl/showPage.php?p=495
    HOME

    Buildings: [[id(type), #(relative to number onscreen), hp(health), x, y]]
    -Where X, Y are tile locations on the map.

    This will allow tiles hit detection to be altered when a building is created above the tile or if it is destroyed. And units movements along the nodes (nodes are in the center of every passable tile.

    Also if your doing the tiles as ISO (such as starcraft), then these ideas may not work.


  • ^with C++ your not going to be killing your CPU that much for simple array modifications ect. But for this type of thing I would make a multidimensional array for.

    Array: [[id(type), #(relative to number onscreen), hp(health), x, y]]

    Basically then when you have Type soldier attack type soldier (of the enemies multidimensional array) you can use basic math to find if they are on the screen if thats true then use simple math to simulate a bullet firing between the units sub from their hp in each array.

    Note that the types would have to be defined with properties such as Total HP and damage range (x1 to x2). Game design takes a lot of time so make sure your spending more time thinking than you are coding or you will end up wasting dev time.

    I hope this give a brief example and design logic to go from.

    /edit, additional information.

    Tiled world with free from movement. Tiles will give you a very clear estimate on hit regions and path finding while allowing for a more realistic unit movement style (remember RTS tiles are usually larger around 100x100pixels to 150x15pixels.


  • Thank you for your help, that is what I had in mind. I was thinking of using a tiled array system, where a single array cell counts as a tiny tile, but wasn't sure if a huge array of many small tiles would create any processing problems :)

    As for the coding, I'm thinking of making each cell in the array (if it has a unit on the tile) be a pointer to an unit object. I figure this is better for the system as I can delete pointers when a unit dies, as well as allow selecting multiple units. Ie. An array called 'selection' holds the pointer data for all units selected.

    If anyone has anymore thoughts or ideas, please share :)





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market

    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about C++ Game Design - Eagle Eye Scrollable Map? , Please add it free.
  • why is there such a battle between the atheist users and christians users
  • how many people here are atheist and how many believe in god
  • i assume everyone one here knows that your natural unbrainwashed state is to be an atheist
  • why do they let atheist kids go to school with christian kids
  • are the gosselins kid corner things wrote by the kids
  • would any christians here vote for an atheist presidential
  • why do predominant atheist societies expect their government to take care of them
  • why are people so rigid and judgmental on here
  • should i punish my son for losing his heelies somewhere in the neighborhood
  • why are people atheist
  • why does this question say there are four answers provided when there is actually only one
  • why do so many english speaking people end up here in the united states forum
  • how beautiful god made the religions for us why atheist can 039 t understand that

  • why do atheist call god 039 a invisible man that lives in the sky 039
  • christian doubters or atheist doubters what if any are your doubts and why won 039 t you share them
  • at what age should age girls be allowed to wear make up to school
  • is plugging a particular website on every answer you post against the community rules and a reportable offence
  • why is it that an atheist like me could possibly be against abortion
  • christians why are you forcing atheist politicians into being closet atheists
  • why do so many people ask loaded questions on here
  • do you think that we should be able to say something to people who spoil their kids
  • inspired by a previous question why wouldn 039 t you vote an atheist for president
  • how many peoples here are atheist
  • how beautiful god 039 s made the religions for us why atheist can 039 t understand that
  • what are some questions you might ask in a interview
  • why is there such a stigma associated with being an atheist or agnostic
  • how willing are you to come out of the closet as an atheist agnostic why and why not
  • About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008polala.com All Rights Reserved