Using 2d background or 3d? i might be able to help youAlmost got torches working!
I just have to figure out how to make them shine upwards...
typedef struct{
int blocks[WORLD_WIDTH+1][WORLD_HEIGHT+1];
int data[WORLD_WIDTH+1][WORLD_HEIGHT+1]; //Plus1??? So If something happens the DS does not read outside of the array
int brightness[WORLD_WIDTH+1][WORLD_HEIGHT+1];
int lightemit[WORLD_WIDTH+1][WORLD_HEIGHT+1];
int ChoosedBlock;
bool DELmode;
int CamY;
int CamX;
int version; //To keep track of the world version number
}worldObject;
Yep, I did and here is a pic of me showing it in action:Thanks, and did you ever get the title screen example graphics? Also, so are you renaming the topic to MineDS basically when you finish rewriting the "fundamentals" of the game.
For me, it's just that I've been playing the real minecraft way too much.I know. I wonder where Coolas/Ray went. They haven't replied or editted anything recently. Probably just no time.
CoolAs: Are you still wanting to code for Mine DS?
Ray: Not really. I think I couldnt port all the things to Mine DS and atm I have no time. Maybe later if all is ported.
Really?Yeah. I'm gonna try and start coding in a bit. Maybe I can continue working on it.
Hrm, I don't think I made my self clear enough.
Here is a part of world.h
typedef struct{
int blocks[WORLD_WIDTH+1][WORLD_HEIGHT+1];
int data[WORLD_WIDTH+1][WORLD_HEIGHT+1]; //Plus1??? So If something happens the DS does not read outside of the array
int brightness[WORLD_WIDTH+1][WORLD_HEIGHT+1];
int lightemit[WORLD_WIDTH+1][WORLD_HEIGHT+1];
int ChoosedBlock;
bool DELmode;
int CamY;
int CamX;
int version; //To keep track of the world version number
}worldObject;
I am using a brightness array, I was just having trouble with the compution of the actual light values.
I got it working fine on a whole chunk basis, but that's kinda slow for when I just add a single torch. (Not too slow for loading a map however!)
I was having trouble writeing the updateBrightnessAround(x,y) function...
Anyways, I eventually wrote that function and got it working well...
I'm quite happy with torches now,and am going to fix the slow down as I approach the end of the map bug...Just fixed it!
EDIT: I don't know if I can rename the topic, Ray isn't really working on this anymore and I'll probably have to make a new thread.
For me, it's just that I've been playing the real minecraft way too much.I know. I wonder where Coolas/Ray went. They haven't replied or editted anything recently. Probably just no time.