News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: GBDK Maps bigger than 32x32  (Read 1359 times)

Guadozoku

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
GBDK Maps bigger than 32x32
« on: December 22, 2014, 01:37:33 am »
set_bkg_data(0,40,TileLabel);
set_bkg_tiles(0, 0, 50, 50, Testmap);

I'm using GBDk, and I made a map that's 50x50. I made scrolling routines and ran the program, but the map only goes to 32x32 then loops. Is there any way to have maps bigger than 32x32? I assume every GB game ever made has used them otherwise all levels would be really short. What can I do?

tryphon

  • Hero Member
  • *****
  • Posts: 722
    • View Profile
Re: GBDK Maps bigger than 32x32
« Reply #1 on: December 22, 2014, 02:54:05 am »
Don't know about GBDK, but if it works like much of the machine I know of, 32x32 must be the size of the hardware plane (in VRAM).

If you want a larger map, you have to code routines that update the hardware plane in the direction the player is moving. Maybe GBDK has built-in routines for that.