Swap Colors for new Lib Version

TODO - fix minimap colors
TODO - colors created by RGBA8
This commit is contained in:
Andre Schweiger 2015-12-27 15:59:53 +01:00
parent 7254855adb
commit 1d8ac2e6e1
7 changed files with 186 additions and 244 deletions

View file

@ -20,10 +20,10 @@ u32 biasedMenuXY(u32 in){
/** Oh my god, this was so damn tedious to make. */
void renderTutorialPage(bool topScreen){
if(topScreen){
drawTextColor("How to Play",(400-11*12)/2,12,0xAFAF00FF);
drawTextColor("How to Play",(400-11*12)/2,12,0xFF00AFAF);
switch(pageNum){
case 0: // Moving the character
drawTextColor("Movement",(400-8*12)/2,40,0xBF7F00FF);
drawTextColor("Movement",(400-8*12)/2,40,0xFF007FBF);
drawText("Press to move up",92,90);
renderButtonIcon(biasedCirclePad(k_up.input), 164, 88, 1);
drawText("Press to move down",80,120);
@ -34,7 +34,7 @@ void renderTutorialPage(bool topScreen){
renderButtonIcon(biasedCirclePad(k_right.input), 146, 178, 1);
break;
case 1: // Attacking
drawTextColor("Attacking",(400-9*12)/2,40,0xBF7F00FF);
drawTextColor("Attacking",(400-9*12)/2,40,0xFF007FBF);
drawText("Press to Attack",98,80);
renderButtonIcon(k_attack.input & -k_attack.input, 168, 78, 1);
drawText("Attack with an item to use it",26,120);
@ -44,7 +44,7 @@ void renderTutorialPage(bool topScreen){
drawText("Use the pickaxe to mine rock/ore",8,200);
break;
case 2: // Inventory
drawTextColor("Inventory",(400-9*12)/2,40,0xBF7F00FF);
drawTextColor("Inventory",(400-9*12)/2,40,0xFF007FBF);
drawText("Press to open the menu",56,80);
renderButtonIcon(biasedMenuXY(k_menu.input), 126, 78, 1);
drawText("Press to scroll up",80,110);
@ -57,7 +57,7 @@ void renderTutorialPage(bool topScreen){
renderButtonIcon(k_decline.input & -k_decline.input, 120, 198, 1);
break;
case 3: // Furniture
drawTextColor("Furniture",(400-9*12)/2,40,0xBF7F00FF);
drawTextColor("Furniture",(400-9*12)/2,40,0xFF007FBF);
drawText("Use furniture for item crafting",(400-31*12)/2,74);
drawText("Press to open the menu",56,100);
renderButtonIcon(biasedMenuXY(k_menu.input), 126, 98, 1);
@ -68,7 +68,7 @@ void renderTutorialPage(bool topScreen){
drawText("pick up furniture",(400-17*12)/2,200);
break;
case 4: // Crafting
drawTextColor("Crafting",(400-8*12)/2,40,0xBF7F00FF);
drawTextColor("Crafting",(400-8*12)/2,40,0xFF007FBF);
drawText("Create new items and tools",(400-26*12)/2,74);
drawText("Go up to a furniture item and",(400-29*12)/2,104);
drawText("Press to open the menu",56,120);
@ -78,7 +78,7 @@ void renderTutorialPage(bool topScreen){
renderButtonIcon(k_accept.input & -k_accept.input, 210, 164, 1);
break;
case 5: // Farming
drawTextColor("Farming",(400-7*12)/2,40,0xBF7F00FF);
drawTextColor("Farming",(400-7*12)/2,40,0xFF007FBF);
drawText("Grow wheat to make bread",(400-24*12)/2,74);
drawText("Dig up grass to gather seeds",(400-28*12)/2,94);
drawText("Use the hoe to till ground",(400-26*12)/2,114);
@ -87,7 +87,7 @@ void renderTutorialPage(bool topScreen){
drawText("It takes 4 wheat to craft bread",(400-31*12)/2,174);
break;
case 6: // Mining
drawTextColor("Mining",(400-6*12)/2,40,0xBF7F00FF);
drawTextColor("Mining",(400-6*12)/2,40,0xFF007FBF);
drawText("Use a pickaxe tool for mining",(400-29*12)/2,74);
drawText("Mine rocks for stone",(400-20*12)/2,94);
drawText("Mine iron ore for iron",(400-22*12)/2,114);
@ -114,27 +114,27 @@ void renderTutorialPage(bool topScreen){
renderButtonIcon(k_attack.input & -k_attack.input, 80, 56, 2);
renderc(60,68,16,160,16,8,2);//Slash
render16b(12,20,16,80,0,0x69B569FF);// grass pit
render16b(12+16,20,32,80,0,0x69B569FF);
render16b(12,20+16,48,80,0,0x69B569FF);
render16b(12+16,20+16,64,80,0,0x69B569FF);
render16b(12,20,16,80,0,0xFF69B569);// grass pit
render16b(12+16,20,32,80,0,0xFF69B569);
render16b(12,20+16,48,80,0,0xFF69B569);
render16b(12+16,20+16,64,80,0,0xFF69B569);
render16(12+8,20+4,0,16,0);//Tree
renderc(12+9,20+14,16,160,16,8,0);//Slash
render(12+9+4,20+14,192,144,0);//Axe
render16(12+9,20+18,16,112,0);//Player-up
render16b(122,62,16,80,0,0xF7F77BFF);// sand pit
render16b(122+16,62,32,80,0,0xF7F77BFF);
render16b(122,62+16,48,80,0,0xF7F77BFF);
render16b(122+16,62+16,64,80,0,0xF7F77BFF);
render16b(130,70,0,96,0,0x383838FF);// hole
render16b(122,62,16,80,0,0xFF7BF7F7);// sand pit
render16b(122+16,62,32,80,0,0xFF7BF7F7);
render16b(122,62+16,48,80,0,0xFF7BF7F7);
render16b(122+16,62+16,64,80,0,0xFF7BF7F7);
render16b(130,70,0,96,0,0xFF383838);// hole
render16(116,70,48,112,0);//Player-right
renderb(136,76,16,152,0,0xAF9781FF);// Dirt item
renderb(136,76,16,152,0,0xFF8197AF);// Dirt item
renderc(128,70,40,160,8,16,0);//Slash
render(130,74,0,144,0);//Shovel
break;
case 2: // Inventory
renderFrame(4,4,17,11,0xAFFF);
renderFrame(4,4,17,11,0xFFAF);
renderItemStuffWithText(ITEM_APPLE,5,false,80,78);
renderItemStuffWithText(ITEM_SLIME,11,false,80,94);
renderItemStuffWithText(TOOL_SWORD,4,true,80,110);
@ -147,7 +147,7 @@ void renderTutorialPage(bool topScreen){
renderButtonIcon(biasedCirclePad(k_down.input), 44, 125, 1);
break;
case 3: // Furniture
sf2d_draw_rectangle(64, 48, 192, 32, 0x69B569FF);
sf2d_draw_rectangle(64, 48, 192, 32, 0xFF69B569);
renderc(32,24,64,128,96,16,0);//Furniture entities
renderFurniture(ITEM_WORKBENCH, 50,60);
@ -159,9 +159,9 @@ void renderTutorialPage(bool topScreen){
render16(92,44,128,128,0);//Workbench
break;
case 4: // Crafting
renderFrame(11,3,19,6,0x1010FFFF);
renderFrame(11,7,19,12,0x1010FFFF);
renderFrame(1,3,10,12,0x1010FFFF);
renderFrame(11,3,19,6,0xFFFF1010);
renderFrame(11,7,19,12,0xFFFF1010);
renderFrame(1,3,10,12,0xFFFF1010);
renderItemStuffWithText(TOOL_AXE,0,true,28,64);
renderItemIcon(TOOL_AXE, 0, 94, 32);
drawText("0", 206, 66);
@ -186,16 +186,16 @@ void renderTutorialPage(bool topScreen){
render(76,48,40,152,0); // Seeds
sf2d_draw_rectangle(216, 80, 32, 32, dirtColor[1]); // Dirt color for grass
render16b(108, 40, 0, 80, 0, 0x69B569FF); // Grass
render16b(108, 40, 0, 80, 0, 0xFF69B569); // Grass
render16(124, 40,144,0,0); // Farm Tile
render16(108,54,16,112,0); // Player (Up)
renderc(108,50,16,160,16,8,0); // Slash (Up)
render(112,48,72,144,0); // Gem Hoe
sf2d_draw_rectangle(112, 156, 32, 32, dirtColor[1]); // Dirt color for grass
render16b(56, 78, 0, 80, 0, 0x69B569FF); // Grass
render16b(56, 78, 0, 80, 0, 0xFF69B569); // Grass
sf2d_draw_rectangle(80, 156, 32, 32, dirtColor[1]); // Dirt color
render16b(40, 78, 0, 0, 0, 0xA88F8FFF); // Dirt Dots
render16b(40, 78, 0, 0, 0, 0xFF8F8FA8); // Dirt Dots
render(44, 82, 40,152,0); // Seeds
render16(24,78,48,112,0); // Player (Right)
@ -212,11 +212,11 @@ void renderTutorialPage(bool topScreen){
render(132,82,72,152,0); // Bread
break;
case 6: //Mining
render16b(23,32,80,0,0,0xDFC8C8FF); // iron ore
render16b(23,52,80,0,0,0xE5E8B9FF); // gold ore
render16b(23,72,80,0,0,0xDF98DEFF); // gem ore
renderb(41,38,88,152,0,0xDFC8C8FF); // Iron ore item
renderb(41,58,88,152,0,0xE5E8B9FF); // Gold ore item
render16b(23,32,80,0,0,0xFFC8C8DF); // iron ore
render16b(23,52,80,0,0,0xFFB9E8E5); // gold ore
render16b(23,72,80,0,0,0xFFDE98DF); // gem ore
renderb(41,38,88,152,0,0xFFC8C8DF); // Iron ore item
renderb(41,58,88,152,0,0xFFB9E8E5); // Gold ore item
render(41,78,112,152,0); // Gem item
drawText(">",104,74);
drawText(">",104,114);
@ -227,9 +227,9 @@ void renderTutorialPage(bool topScreen){
drawText(">",160,74);
drawText(">",160,114);
drawText(">",160,154);
renderb(88,36,96,152,0,0xDFC8C8FF); // Iron ingot item
renderb(88,56,96,152,0,0xE5E8B9FF); // Gold ingot item
renderb(88,76,152,144,0,0xE5E8B9FF); // Gem Pickaxe
renderb(88,36,96,152,0,0xFFC8C8DF); // Iron ingot item
renderb(88,56,96,152,0,0xFFB9E8E5); // Gold ingot item
renderb(88,76,152,144,0,0xFFB9E8E5); // Gem Pickaxe
drawText(">",200,74);
drawText(">",200,114);
render16(106,32,64,128,0); // Anvil