Search found 2 matches

by biertje
Wed Dec 02, 2009 8:18 pm
Forum: DS/DSi Development
Topic: Tilemap (Updated.)
Replies: 3
Views: 4367

Re: Tilemap (Updated.)

open your makefile and see if there is a grit rule for *.png files. it should look something like this:

#---------------------------------------------------------------------------------
%.s %.h : %.png %.grit ...
by biertje
Tue Dec 01, 2009 8:11 pm
Forum: DS/DSi Development
Topic: Tilemap (Updated.)
Replies: 3
Views: 4367

Tilemap (Updated.)

hey,

I searched for my question, and now i have more. This is my code (main.c):


#include <nds.h>
#include "back.h"

int main(void) {

with background 0 active
videoSetMode(MODE_0_2D | DISPLAY_BG0_ACTIVE);

vramSetBankA(VRAM_A_MAIN_BG);

BGCTRL[0] = BG_TILE_BASE(0) | BG_MAP_BASE(4) | BG ...