Thread: 2d non tile based

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743

    2d non tile based

    Does anyone have any experience with a non-tile based map in a 2d game?

    Kind of like Liero (which can be found at www.dosgames.com).

    Some friends and I are making a game like Liero, and we have some ideas on how to do the map, but we have always done tile based maps before, and any input on how to do a 2d non-tile based map would be helpful.
    My Website

    "Circular logic is good because it is."

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    i don't have much exp in such a thing but have you tried flipcode? they have a lot of tuts on obscure stuff...though i don't know if they have what your looking for...

    http://www.flipcode.com
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    bobish
    Guest
    well with the dirt you could do one of two things: 1 have it tile based but made to look like its not, or two have the dirt be a bunch of randomly ploted pixles all of dirt like colors. The rocks could be bitmaps that are blited randomly onto the srean or be placed at predetermined cordinates.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Do layers, have a background texture, and a level texture (or whatever system you come up with).

    You just need to be able to do a check on the players destination to see what color value it contains, if its anything other than black(or whatever you have for clear), then you dont let them move there.


    More of an explination will give better examples

  5. #5
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128

    Just a suggestion

    Make everything vertex-based ( I don't know whether this is the correct expression, read what follows).

    Treat everything as if you're creating a 3D game (e.g Quake) but ignore the Y axis (or Z, depends on your coordinate system). Make a 2D vertex editor (or just use some free Modeller like Blender) that you use to make maps, and then do texture mapping is done in any 3D game (texture mapping is applied to transformed polygons, i.e 2D polygons). For collision detection tests, you can use 2D versions of the original 3D ones :
    AABB tests : AABR (Axis aligned bounding rectangles)
    OBB tests : OBR
    Sphere tests : Circle
    Plane tests : Line tests
    .
    .
    .
    Muhammad Haggag

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need testers for editor
    By VirtualAce in forum Game Programming
    Replies: 43
    Last Post: 07-10-2006, 08:00 AM
  2. 2D Tile Based Game
    By cboard_member in forum Game Programming
    Replies: 6
    Last Post: 07-29-2005, 01:04 AM
  3. Tile based game in opengl
    By Unregistered in forum Game Programming
    Replies: 1
    Last Post: 07-16-2002, 02:45 PM
  4. Tile Based Games
    By Unregistered in forum Game Programming
    Replies: 2
    Last Post: 04-03-2002, 08:55 PM
  5. tile based gaming
    By Unregistered in forum Game Programming
    Replies: 3
    Last Post: 10-27-2001, 12:17 PM