Infini123 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=50086 Pet the Dragon, an exploration game <p> <table><tr><td> <a href="/bbs/?pid=94143#p"> <img src="/bbs/thumbs/pico8_zeredatiko-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=94143#p"> Pet the Dragon</a><br><br> by <a href="/bbs/?uid=50086"> Infini123</a> <br><br><br> <a href="/bbs/?pid=94143#p"> [Click to Play]</a> </td></tr></table> <br /> An adventure game set in a not-so-distant future where Earth's pollution has reached critical levels and monsters are seen all over populated areas. You play as one of these monsters!</p> <p>Programming by Infini<br /> Sprites and level design by Alela the Dragon<br /> Concept by Infini and Alela the Dragon<br /> Writing by Infini</p> <p>You can view and commission Alela's art at<br /> <a href="https://17hpolan84.wixsite.com/alelathedragon">https://17hpolan84.wixsite.com/alelathedragon</a></p> https://www.lexaloffle.com/bbs/?tid=43563 https://www.lexaloffle.com/bbs/?tid=43563 Sun, 27 Jun 2021 15:44:47 UTC Cashmere, a bullet hell shmup <p> <table><tr><td> <a href="/bbs/?pid=87821#p"> <img src="/bbs/thumbs/pico8_gawejotro-6.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=87821#p"> Cashmere</a><br><br> by <a href="/bbs/?uid=50086"> Infini123</a> <br><br><br> <a href="/bbs/?pid=87821#p"> [Click to Play]</a> </td></tr></table> <br /> I think the game is in a good place to publish it as a WIP and get some feedback. My code is most likely very naive and inefficient, constructive criticism is welcome. </p> <p>2021-03-05:<br /> -Dialogue should not be accidentally skipped anymore<br /> 2021-02-25:<br /> -More lenient hitboxes<br /> -Phase 4<br /> -Postgame dialogue, but transition from game to dialogue is a bit jarring and can be accidentally skipped. I'll make it smoother eventually.<br /> -Changed some patterns, notably phase 1 which was too easy<br /> 2021-02-18:<br /> -Added phase 3<br /> -Swapped shooting and focusing buttons. It's more natural to shoot with X.<br /> -Sound effects are now working as intended.<br /> -Minor stuff was changed around.</p> https://www.lexaloffle.com/bbs/?tid=41631 https://www.lexaloffle.com/bbs/?tid=41631 Wed, 17 Feb 2021 23:44:56 UTC [solved]Game stops acknowledging inputs? <p>Maybe this is me being stupid, but no matter how I look at it I feel like my code should be working.<br /> Button presses are working in the title screen and dialogue sections, but for some reason it stops working in the main gameplay. The code looks sound to me and everything else behaves as it should, debugging has shown me that the functions are indeed being called. But inputs just don't work. Here is where the offending code could be:<br /> <div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>function init_battle() t=0 --keeps track of time for bullet timing pl_shot ={} boss_shot={} actor={} player = { x=60, y=100, life=3, speed=2, focus=0, life =3, box ={ xa=0, xb=2, ya=0, yb=2 } } boss = { x=60, y= 40, life=100, spell=1, box = { xa=0, xb=3, ya=0, yb=3 } } music(22) _update=update_battle() _draw=draw_battle() end function update_battle() player_movement() end function player_movement() if (btn(0))then player.x-=player.speed end if (btn(1)) then player.x+=player.speed end if (btn(2)) then player.y-=player.speed end if (btn(3)) then player.y+=player.speed end end function draw_battle() cls() map(0,0) spr(1,player.x,player.y) draw_hud() end function draw_hud() spr(14,100,0) for i =108,124,8 do spr(15,i,0) end for i = 8,112,8 do spr(30,100,i) end spr(25,100,120) rectfill(108,8,128,125,13) end</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p></div></div></div></p> https://www.lexaloffle.com/bbs/?tid=41435 https://www.lexaloffle.com/bbs/?tid=41435 Sat, 06 Feb 2021 23:54:17 UTC