From 85e0aedff0f7b6a81be60b9ac92e9879ecc447ab Mon Sep 17 00:00:00 2001 From: Trevor Boddy Date: Wed, 17 Aug 2022 01:20:57 -0400 Subject: [PATCH] add in start screen and come up with name --- bible.txt | 3 ++ res/font.png | Bin 3665 -> 3819 bytes res/resources.res | 4 +++ res/start/bg1.png | Bin 0 -> 4594 bytes res/start/logo1.png | Bin 0 -> 5911 bytes src/background.h | 3 +- src/global.h | 5 +++- src/main.c | 10 ++++--- src/start.h | 71 ++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 89 insertions(+), 7 deletions(-) create mode 100644 res/start/bg1.png create mode 100644 res/start/logo1.png create mode 100644 src/start.h diff --git a/bible.txt b/bible.txt index 18c8203..d8fd7fa 100644 --- a/bible.txt +++ b/bible.txt @@ -1,3 +1,6 @@ +CRYTPIC CAVES? + + ######### # THEME # ######### diff --git a/res/font.png b/res/font.png index 294553c5b4ac9ebfeda52288096f57c0461095c5..b9f7c7c1da0e956c1d26986cbf9ed8f5fd858fd1 100644 GIT binary patch delta 1795 zcmV+e2mJWa9P1sBPz}>%$giro_4MlkD{NAcT^9lfEwOfu0tz=&FflqXH##silMMqS z3O7_RF*-0eIxsbpIs4wk zlh*^^lK})I2s|%xWM(>SX|t9D(*h(jGC4RfGcsc>VK_N3Ei^PZI4w9hF*Yq^FgY|b zVP#=sGi5T9jRzMAH&ie&IxsgnFq0t$FO%E{e}7ti!1MqB1}I5HK~z|Ut(eJ@<){vZ zKa9)d*_ii#%)_E1%}t|TNMdkiRrTT$VPgpmOurC@x#SFxA+z!yQu)C)y$tYryV0!8OoV#_H%|z!8__21#mW>pS-jye|4X8TwNF7qwrC9!7upr1sTc()Jp|w zN`LC`qjWU^pr((DU;OXIC-74BKl-OUWbNju+B|wT$ zfkc(G-z~-(_d2UZGn}Zf^Th`j_wEBA-G4y4?|b!66$lIGngv3-1Rxw00Rp1W(dWh` z53X+U1GMKM=>VQ~jaKQUgz%sr^^gk>Q6>HDtuBH`J<;fJzAA67&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Al)n6UC`=?yPZM8`=h0rs=9yv1B4ul&p4Vl R=>Px#07*qoM6N;tV1joaNF)FN diff --git a/res/resources.res b/res/resources.res index dd5dd7b..27788af 100644 --- a/res/resources.res +++ b/res/resources.res @@ -1,4 +1,8 @@ IMAGE font "font.png" BEST NONE + +IMAGE startBg1 "start/bg1.png" FAST +IMAGE startLogo1 "start/logo1.png" FAST + IMAGE frame "chrome/frame.png" FAST IMAGE wall1 "bg/wall1.png" FAST diff --git a/res/start/bg1.png b/res/start/bg1.png new file mode 100644 index 0000000000000000000000000000000000000000..974f2b9e6cd34e848c64a44fe67f4f20226082be GIT binary patch literal 4594 zcmb_f2{@E%`+sN?r!193F%6ZLSq)}}QFgNAFr8E?vtgLc%rNNCl$52NL?nuAl`SH) z;>gyKU9wd|Qubu&|7!6+*Y}*r#uY420ylH%}URQ zwesh(;Gsc=SrZbzQkt(iHFe1CvhB+LIX%U?-0_U!af0iW53&9Rz|1+*r2|A~SJ`OT>|JaF6>$Wyq{}KNP;{~ zhb@vju7e#LD^`Yp-;2iFz;at;An*Q@$uqhXtPw`*LY} z#$yQyaJ+8JbSkIlrZN~*0(nDWk$2X`GnR=PXHb`)s)7b1aZmc8>L*=LZpcAKJua@7 zVq!eD%FD2WQV)$yUR`=b;?P*m8;IM{6gU+czNq4-MXK_hfigMR>o-x~1 zhdPkcBO>cCxlLhjsHt|R%&kfa6qwRAl@~%aq%9*?Ub6TS9&#jSKsKt#12{JXEFL%7 zZ&z5cc;FHemf0)bFdzwDi#m>_*2*mgn8ktNB3Xc*jQO(8Z4HQTxv+9A5U-XGlDRk> z`&3B+h^26Li*(!q4U_^GHH+2r#dvP7)Z9%*37H-It&of#z zaAIG|Ni)18f+tz?cu~G&Q>UW7_@I*bEn1rEyw*?-``E-WScfW(f;R@MKQ?t)A7Fu2 zI9jqk#6lWw8c}Xf*S0?vp}xEPV4~`zD&b75DRMojoRlcL#w@_tAYQ3rM@x#T`-#>B zr+SrTM%RCzbd$a(Rc$U)yU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ZB4@E{<(410XMmro5CrmWgAA_#Xp431n!6oYA5g@Z7q{`a$TD_70ag2 zQ6(qjR1~L@_sS=|+<#AcN~>S_ie#G+Z&e@rObpVJrn*N+F6`>nYqu?tHsmr#F17Qc zjoLRHcEKFf*|mj2rG|Etv5^?xhw1A$)hYq2t>B^Egb-~?bRV!te$#Sel^aY!>3nIN zc#Z$mI6?bJWz<3CE;sI6H|LyoY|i5eT^pWr1ycfe)>Uo|MpeBz$g}1aEYF^CDfvm< z7xS data); VDP_setPalette(PAL2, wall1.palette -> data); VDP_setPalette(PAL3, font.palette -> data); @@ -26,7 +26,8 @@ static void loadInternals(){ VDP_setTextPalette(3); } -static void loadGame(){ +void loadGame(){ + started = TRUE; loadBg(); loadChrome(); loadFg(); @@ -47,9 +48,10 @@ static void updateGame(){ int main(){ loadInternals(); - loadGame(); + // loadGame(); + loadStart(); while(1){ - updateGame(); + started ? updateGame() : updateStart(); SPR_update(); SYS_doVBlankProcess(); } diff --git a/src/start.h b/src/start.h new file mode 100644 index 0000000..4497daa --- /dev/null +++ b/src/start.h @@ -0,0 +1,71 @@ +// start + +bool selectingStartMenu, aboutShowing; +u8 currentStartMenu; + +#define START_W 32 +#define START_H 28 + +#define START_I 32 + + +// events + +static void loadGameFromStart(){ + selectingStartMenu = FALSE; + aboutShowing = FALSE; + VDP_clearTileMapRect(BG_A, 0, 0, START_W, START_H); + VDP_clearTileMapRect(BG_B, 0, 0, START_W, START_H); + loadGame(); +} + +static void selectStartMenu(){ + selectingStartMenu = TRUE; + switch(currentStartMenu){ + case 0: loadGameFromStart(); break; + } +} + + +// draw + +static void drawStartBg(){ + VDP_fillTileMapRect(BG_B, TILE_ATTR_FULL(PAL2, 0, 0, 0, START_I), 0, 0, START_W, START_H); +} + +#define LOGO_X 8 +#define LOGO_Y 6 + +static void drawStartLogo(){ + VDP_drawImageEx(BG_B, &startLogo1, TILE_ATTR_FULL(PAL1, 0, 0, 0, START_I + 32), LOGO_X, LOGO_Y, 0, DMA); +} + +#define MENU_X 13 +#define MENU_Y 14 +#define ARROW_X 13 + +static void drawStartMenu(){ + // VDP_drawText(">", ARROW_X, MENU_Y); + VDP_drawText("start?", MENU_X, MENU_Y); + VDP_drawText("HOW-TO", MENU_X, MENU_Y + 2); + VDP_drawText("ABOUT!", MENU_X, MENU_Y + 4); +} + + +// loop + +void loadStart(){ + VDP_setScreenWidth256(); + currentStartMenu = 0; + VDP_loadTileSet(startBg1.tileset, START_I, DMA); + drawStartBg(); + drawStartLogo(); + drawStartMenu(); + VDP_drawText("VER 0.1", 1, 26); + + // loadGameFromStart(); +} + +void updateStart(){ + if((ctrl.a || ctrl.start) && !aboutShowing && !selectingStartMenu) selectStartMenu(); +} \ No newline at end of file