DSLua Community
Welcome, Guest. Please login or register.
May 18, 2012, 09:01:37 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Bugs & Suggestions  |  tile size « previous next »
Pages: [1]
Author Topic: tile size  (Read 2342 times)
franck569
Waxing Crescent
**
Posts: 10


« on: May 31, 2006, 02:46:49 PM »

hello,

what are the tile size supported by the NDS ? only 8x8 ?

I have test to change the tile size of the example.bmp ( 06 - map.lua )
The original size of tile of this bitmap is 16x16, so i have run this command :

DSLua-0.5-emulateur\scripts>..\bin\gfx2gba -m -p map_examplescrn.bmp.pal -t16 map_examplescrn.bmp
=======================
gfx2gba Converter v0.15
-----------------------
(C) 2oo1-2oo3 [TRiNiTY]
=======================

Reading: map_examplescrn.bmp      (320x240 pixel, 256 colors)
Number of tiles before optimization: 0300
Number of tiles after  optimization: 0022
Saving tiled raw bitmap data to: map_examplescrn.raw ... ok
Saving map data to: map_examplescrn.map ... ok

Saving masterpalette to..: map_examplescrn.bmp.pal ... ok

Total files read & converted.:   1
Colors used before converting:  14
Colors used after converting.:  14
Colors saved.................:   0

As you can see, no error for gfx2gba.

After i have modified this line ( line 24 ) :
BGBottomMap:LoadMap( "map_examplescrn.map", ( 320 / 8 ), ( 240 / 8 ) )

by :
BGBottomMap:LoadMap( "map_examplescrn.map", ( 320 / 16 ), ( 240 / 16 ) )

But the result on the screen was not very good :



So, if anybody can help me,

Thanks, Franck569.
Logged
waruwaru
Administrator
Waxing Crescent
*****
Posts: 78


« Reply #1 on: May 31, 2006, 03:29:02 PM »

The tiles have to be 8x8 for now.

Waruwaru
Logged
franck569
Waxing Crescent
**
Posts: 10


« Reply #2 on: June 02, 2006, 11:27:36 AM »

ok thanks.

this limit is this of PAlib ?
Logged
Zhen
Waxing Crescent
**
Posts: 45


WWW
« Reply #3 on: June 02, 2006, 01:33:51 PM »

It's a limit of the Nintendo DS. If you want another size you need to do by software.

Zhen.
Logged
franck569
Waxing Crescent
**
Posts: 10


« Reply #4 on: June 02, 2006, 02:48:42 PM »

hum, are you sure ? GBA can display 16x16 no ?

Thanks, Franck569.
Logged
daltonlaffs
First Quarter
***
Posts: 189


Freaking Insane


WWW
« Reply #5 on: June 03, 2006, 07:14:38 AM »

... did you try it with Dualis 20?  Shocked  Roll Eyes  Tongue
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
Zhen
Waxing Crescent
**
Posts: 45


WWW
« Reply #6 on: June 04, 2006, 11:16:28 AM »

hum, are you sure ? GBA can display 16x16 no ?

Thanks, Franck569.

Yes, I am quite sure, Nintendo DS and GBa have similar 2D hardware, and both only have 8x8 pixels tile maps. Maybe you confound sprite sizes, that can be 16x16, with tile sizes.

Zhen.
Logged
franck569
Waxing Crescent
**
Posts: 10


« Reply #7 on: June 06, 2006, 04:50:01 PM »

no, look at mapwin he export tiled map for GBA with 16x16 tile
Logged
Pages: [1]
« previous next »
    Jump to: