Author Topic: Some limitations of platformers using pxl-test  (Read 26563 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Some limitations of platformers using pxl-test
« Reply #75 on: March 29, 2012, 04:16:25 am »
Another disadvantage is the storing of your level data.  Since you are not using tiles, your levels become a lot larger to store and display.  Plus, you also have to keep in mind the size of your enemies and player when designing them. 
Isn't it the opposite? ??? Since one tile takes 1 bit (basically 8 tiles takes 1 byte, which is 8 times smaller than standard tilemaps). See Illusiat series for example.

It's more limited, though. Only two kind of tile can be used in such tilemap, unless you have dynamic tilemapping like Shmibs showed once or to a lesser extent like in Illusiat 12/2004 and ROL series. Basically enemies have to be stored separately.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Some limitations of platformers using pxl-test
« Reply #76 on: March 29, 2012, 06:17:04 pm »
What do you mean, "dynamic tilemapping"?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Some limitations of platformers using pxl-test
« Reply #77 on: March 29, 2012, 09:26:11 pm »
This is from my MazeChase game and it features dynamic tilemapping:

Pretty much, it stores the tilemap as a 64x96 black and white picture. I pixel test a spot and then I pixel test the surrounding pixels. Depending on the surrounding, the tile changes. For example, pretend o is pixel off and x is pixel on. We are looking at the center:

o x o
0 x x
0 0 0

For the maze game, since the pixel above is black, I will use a tile with an opening upward and since the tile to the right is black, I use a tile that is also opening right. This way, each bit can be one of 6 tiles :) It makes it verrry easy to draw tilemaps and pipes and whatnot without the user having to cycle through tiles. Also, I noticed this method on my Advanced Wars 2 game (for the GBA). You can also apply this method to do multiple types of tiles as well (like mountains and trees that vary depending on the surrounding). For that, you will need more layers.

EDIT: As a note, when the program in the screenie is in map editor mode, all it is really doing is turning a pixel on or off on the map and then checking the surrounding pixels to see what changes. The method allows for easy editing and scrolling :)

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Some limitations of platformers using pxl-test
« Reply #78 on: March 29, 2012, 11:00:42 pm »
Oh, so really it has a picture with each tile as 1 pixel, and the map shows it as each pixel being a larger box?

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Some limitations of platformers using pxl-test
« Reply #79 on: March 30, 2012, 12:06:57 am »
Yeah, I used a similar method in Graviter, so that I could reduce the number of tile types and thus have more compression.
« Last Edit: March 30, 2012, 12:07:03 am by leafy »
In-progress: Graviter (...)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Some limitations of platformers using pxl-test
« Reply #80 on: March 30, 2012, 12:40:08 am »
What do you mean, "dynamic tilemapping"?
Google

J/k what I mean by dynamic tilemapping, to sum things up, is that each tile are drawn according to what's on each side of it in the map data. Shmibs did such tilemapper a few years ago and his even supported multiple kind of tiles. It requires a lot of tiles though. By the way Xeda's screenshot is a great example of what I mean. When drawing a tile, it checks all 8 sides surrounding it. Illusiat 12/ROL series use a dumbed down form of this, as it only checks the tile below where you're checking from (or above, if the hill flag is turned OFF)