loading pictures and sprites by FAT
-
- Posts: 85
- Joined: Mon Sep 27, 2010 5:26 pm
loading pictures and sprites by FAT
Hi
I'm using PAlib (but also libnds).
And I want you to find out how to load pictures, bgs, sprites,... BY FAT?
Please can you help?
I'm using PAlib (but also libnds).
And I want you to find out how to load pictures, bgs, sprites,... BY FAT?
Please can you help?
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
-
- Posts: 85
- Joined: Mon Sep 27, 2010 5:26 pm
Re: loading pictures and sprites by FAT
Why not?
Tehn I don't will nit use for palib, okay?
But please can you say me how to open such files:
.png, .gif,...
BY FAT?
Tehn I don't will nit use for palib, okay?
But please can you say me how to open such files:
.png, .gif,...
BY FAT?
Re: loading pictures and sprites by FAT
use fopen and then do whatever you do right now to open them not from fat
-
- Posts: 85
- Joined: Mon Sep 27, 2010 5:26 pm
Re: loading pictures and sprites by FAT
That's what I know allready, but isn't there something like a buffer for those formats?use fopen and then do whatever you do right now to open them not from fat
I mean I can normaly only print a text wich is from a file...?
Re: loading pictures and sprites by FAT
You already know how to load them not from fat? I am skeptical.
Re: loading pictures and sprites by FAT
First you must have the .bmp file specification. The header, the palette and the pixels that point to the palette. After that, you must know if you are going to use tiled bg or bmp bg and if .bmp is 4 or 8 bpp. If bg is tiled, you must divide image into blocks of 8x8 pixels (tiles), each tile is pointed by a the map. After thin in load files from FAT, the question is, do you understand how to show graphics in NDS with libnds?
Re: loading pictures and sprites by FAT
Lazyprogrammer - I may be off base, but I would advise you against learning to program in c/c++ on the ds. Windows and Linux have more robust tools for development and debugging. The lack of a visual debugger makes it hard to learn to program on the ds. I think you may want to start out with an easier platform then come back to the ds when you have a little more experience. Regardless, best of luck.
Who is online
Users browsing this forum: No registered users and 4 guests