Using Tilesets in NDS HomeBrews?

TEPTIS

Member
OP
Newcomer
Joined
Oct 9, 2022
Messages
21
Trophies
0
Age
16
XP
106
Country
France
Hi, just wanna know if there is a way to use Tilesets to create maps and adding collisions to these maps that I can use to start creating a HomeBrew Game.
 

NotImpLife

Active Member
Newcomer
Joined
Mar 9, 2021
Messages
40
Trophies
0
Website
github.com
XP
482
Country
Romania
There surely are ways.

The devkitPro toolchain contains a utility called "grit" responsible for converting tilesets mainly in PNG format to a tile format usable by the DS.

About the maps, there are some technical observations you need to take into account. The DS features 3 video modes that work only with tiled graphics. Some of them allow map affine transformations (scaling/rotation). The maximum physical map size you can get is 512x512px for normal maps and 1024x1024px for affine maps. Having larger maps are a bit harder, they require additional dynamic allocations, but it's not impossible. The rest is only implementation details, you can create your own conventions and stick to them during your development. (e.g. make a matrix act as a collision mask where 0=free cell, 1=wall or something and check the tile's availability when player tried to step on it).

You can also look for a library that already does that for you and focus on the actual juiciness of your game (graphics, story, mechanics).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs