Re: Newb at game making Sprite and game map developing
Posted: Sat Jul 30, 2016 10:04 pm
Aweome you rock!!!!! I will look at that shortly.
I use the piskel online bitmap editor. It has all kinds of features for copying and pasting changing pixel colors and saves them as .png.
Ok I'm still having trouble displaying my sever sprite.i went ahead and changed my bitmap using paint to save it with white tiles and exchanged the room bitmap with the updated bitmap. I think its a color issue but i still have the color all mixed up and don't know which to change.
heres the code i added a logo screen but unsure how to add it.
I use the piskel online bitmap editor. It has all kinds of features for copying and pasting changing pixel colors and saves them as .png.
Ok I'm still having trouble displaying my sever sprite.i went ahead and changed my bitmap using paint to save it with white tiles and exchanged the room bitmap with the updated bitmap. I think its a color issue but i still have the color all mixed up and don't know which to change.
heres the code i added a logo screen but unsure how to add it.
- Code: Select all
#include <SPI.h>
#include <Gamebuino.h>
Gamebuino gb;
const byte logo[] = {88,48,
0xfe,0xef,0x7f,0xff,0xff,0xff,0xff,0xff,0xef,0xdf,0xf0
,0xf6,0xdf,0xbf,0xff,0xff,0xff,0xff,0xff,0xdf,0xff,0x70
,0xf7,0xbb,0xbf,0xff,0xff,0xff,0xff,0xff,0xdd,0xef,0xf0
,0xef,0x77,0x71,0x51,0xdd,0x74,0x57,0xfc,0xee,0xf7,0x70
,0xfe,0xfe,0xfb,0x57,0xc9,0x26,0xd7,0xfb,0xf7,0x7f,0xb0
,0x7d,0xbe,0xfb,0x13,0xd5,0xde,0xc7,0x89,0xf6,0xf7,0x70
,0xb3,0xdd,0xfb,0x57,0xdd,0xde,0xd7,0xab,0xfb,0xeb,0xf0
,0xcf,0xf7,0xfb,0x51,0xdd,0xde,0xd7,0x8b,0xfc,0xbd,0xe0
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x10
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0
,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0
,0xff,0x8f,0x03,0x88,0xe1,0xc1,0xc3,0xbf,0x0f,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bb,0x5b,0xfe,0xbf,0xff,0x59,0x60
,0xeb,0xaf,0xfe,0xf6,0x8c,0xe7,0xfe,0xbf,0xff,0xeb,0xa0
,0x5d,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x5d,0x70
,0x79,0xef,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x79,0xe0
,0xa6,0x9f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xa6,0x90
,0xa6,0x9a,0x69,0xff,0xff,0xe9,0xa6,0x9a,0x69,0xa6,0x90
,0x59,0x65,0x96,0xff,0xff,0xd6,0x59,0x65,0x96,0x59,0x60
,0xeb,0xae,0xba,0xff,0xff,0xfa,0xeb,0xae,0xba,0xeb,0xa0
,0x5d,0x75,0xd7,0x55,0x55,0x57,0x5d,0x75,0xd7,0x5d,0x70
,0x79,0xe7,0x9e,0xaa,0xaa,0x9e,0x79,0xe7,0x9e,0x79,0xe0
,0xa6,0x9a,0x69,0xff,0xff,0xe9,0xa6,0x9a,0x69,0xa6,0x90
,0xa6,0x9a,0x69,0xaa,0xaa,0xa9,0xa6,0x9a,0x69,0xa6,0x90
,0x59,0x65,0x97,0x55,0x55,0x56,0x59,0x65,0x96,0x59,0x60
,0xeb,0xae,0xba,0x7f,0xff,0xfa,0xeb,0xae,0xba,0xeb,0xa0
,0x5d,0x75,0xd7,0xaa,0xaa,0x97,0x5d,0x75,0xd7,0x5d,0x70
,0x79,0xe7,0x9e,0x55,0x55,0x5e,0x79,0xe7,0x9e,0x79,0xe0
,0xa6,0x9a,0x69,0x7f,0xff,0xe9,0xa6,0x9a,0x69,0xa6,0x90,};
const byte PROGMEM room_1[] = {88,48,
0x59,0x65,0x96,0x59,0x60,0x00,0x59,0x65,0x96,0x59,0x60
,0xa6,0x9a,0x69,0xa6,0x90,0x00,0xa6,0x9a,0x69,0xa6,0x90
,0x14,0x51,0x45,0x14,0x50,0x00,0x14,0x51,0x45,0x14,0x50
,0xa2,0x8a,0x28,0xa2,0x80,0x00,0xa2,0x8a,0x28,0xa2,0x80
,0x86,0x18,0x61,0x86,0x10,0x00,0x86,0x18,0x61,0x86,0x10
,0x59,0x65,0x96,0x59,0x60,0x00,0x59,0x65,0x96,0x59,0x60
,0x59,0x65,0x80,0x58,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0xa6,0x9a,0x40,0xa4,0x00,0x00,0x00,0x00,0x00,0xa6,0x90
,0x14,0x51,0x40,0x14,0x00,0x00,0x00,0x00,0x00,0x14,0x50
,0xa2,0x8a,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0xa2,0x80
,0x86,0x18,0x40,0x84,0x00,0x00,0x00,0x00,0x00,0x86,0x10
,0x59,0x65,0x80,0x58,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0x59,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0xa6,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa6,0x90
,0x14,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x50
,0xa2,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa2,0x80
,0x86,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x86,0x10
,0x59,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0xa4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa6,0x90
,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x50
,0xa0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa2,0x80
,0x84,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x86,0x10
,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
,0x59,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0xa6,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa6,0x90
,0x14,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x50
,0xa2,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa2,0x80
,0x86,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x86,0x10
,0x59,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0x59,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0xa6,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa6,0x90
,0x14,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x50
,0xa2,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa2,0x80
,0x86,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x86,0x10
,0x59,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x60
,0x59,0x65,0x96,0x59,0x65,0x96,0x59,0x65,0x96,0x59,0x60
,0xa6,0x9a,0x69,0xa6,0x9a,0x69,0xa6,0x9a,0x69,0xa6,0x90
,0x14,0x51,0x45,0x14,0x51,0x45,0x14,0x51,0x45,0x14,0x50
,0xa2,0x8a,0x28,0xa2,0x8a,0x28,0xa2,0x8a,0x28,0xa2,0x80
,0x86,0x18,0x61,0x86,0x18,0x61,0x86,0x18,0x61,0x86,0x10
,0x59,0x65,0x96,0x59,0x65,0x96,0x59,0x65,0x96,0x59,0x60,};
const byte sever_front[] PROGMEM = {6,6,
B111111,
B010010,
B011110,
B101101,
B011110,
B110011,};
void setup() {
// put your setup code here, to run once:
gb.begin();
gb.titleScreen(F("Myth of esmerelda"));
}
void loop() {
// put your main code here, to run repeatedly:
if(gb.update()){
gb.display.setColor(INVERT);{
gb.display.drawBitmap(0,0,room_1);
}
gb.display.setColor(BLACK);{
gb.display.drawBitmap(1,1,sever_front);
}
gb.display.setColor(WHITE);{
}
}
}