Author Topic: Tilemap Editor  (Read 23794 times)

0 Members and 1 Guest are viewing this topic.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Tilemap Editor
« Reply #45 on: July 21, 2010, 05:19:03 pm »
Actually, the grayscale tiles are only double the size, not quadruple.  In 4 level grayscale, you only need 16 bytes because there are 4 combinations you can make with the 2 layers of bits.  In 3 level, you can 3 of the combinations be colors and the last combination be a transparency or simply unused.

But I agree, this is just for generating a general idea of how the map is going to be layed out and I think the extra gray layer is an unnecessary complexity just for a preview of the map.
« Last Edit: July 21, 2010, 05:32:43 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tilemap Editor
« Reply #46 on: July 21, 2010, 05:22:30 pm »
Well I guess if it's just to get a small idea of how it will look like, monochrome would do. It might be nice to have a gray tile editor, though (although people could use Runer and manually replace the appropriate data in their program after having imported the maps from Nemo editor.)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Tilemap Editor
« Reply #47 on: July 27, 2010, 10:16:13 pm »
new release! i basically just added hex exporting.

Str4 will contain your tilemap, Str5 contains your tileset. there's nothing new except a few more self-explanatory menu's, so i won't bother reposting which keys do what. however, it's worth noting the different compressions available.
the first is where 1 byte is equivalent to one tile. the second is half-byte compression, where two tiles are fit into one byte. the next is titled "RLE" and uses my own run length encoding algorithm. the decompression algorithm can be found here. lastly, there's another RLE compression as explained by calcdude84se. the corresponding decompression algorithm for this type of RLE is found here.

and a quick checklist of features i should implement...

Tileset.
[] fix looping bug. use the max() command. add some bytes in the appvar.
[] load tiles from within the tileset to another tile to make slight variations.
[] set specific tiles as corresponding keys for the tilemap editor
[] allow editing of 16x16 tiles.

*note: allowing more than 15 tiles isn't on here because that's really easy to implement. i'm keeping it basic for now.

Tilemap.
[] placing tiles via pressing specific keys (such as 1-9, though it may be sin, cos, tan, ",", "(", and ")".)
[] tilemaps greater in size than the screen.
[] 16x16 tile placement.

edit: as for grayscale, i don't think it's necessary for getting a layout of the tilemap, so i'm going to keep it monochrome.
« Last Edit: July 27, 2010, 10:16:46 pm by nemo »


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tilemap Editor
« Reply #48 on: July 29, 2010, 03:17:55 am »
Wow awesome, you implemented RLE compression too. HOpefully this should come in handy in the future, if someone made a game with a lot of levels and wanted to keep it small. Nice to see this still being worked on :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)