wwwhizz [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=17423 Super Minigame Brenda (LD41) <p> <table><tr><td> <a href="/bbs/?pid=51887#p"> <img src="/bbs/thumbs/pico51886.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=51887#p"> Super Minigame Brenda 0.1</a><br><br> by <a href="/bbs/?uid=17423"> wwwhizz</a> <br><br><br> <a href="/bbs/?pid=51887#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is my compo submission for LD41. </p> <p>The 2 incompatible genres are platformer and minigames. Everytime you jump on an enemy you get to play heads or tails. The idea was to have to play a different minigame every time (e.g. like Wario Ware).</p> <p>Unfortunately I ran out of time, due to some nasty bugs and not having the whole 48 hours available. I shouldn't have spent this much time on the level generation algorithm either.</p> <p>What's missing: </p> <ul> <li>fancy backgrounds, </li> <li>bleepy music, </li> <li>cool sfx, </li> <li>many more minigames, </li> <li>an actual goal, </li> <li>timer</li> <li>checkpoints</li> <li>score</li> </ul> https://www.lexaloffle.com/bbs/?tid=31161 https://www.lexaloffle.com/bbs/?tid=31161 Sun, 22 Apr 2018 16:23:43 UTC Function to change color of a pixel of a sprite <p>Thought you guys might like it. I needed it to programmatically randomize the look of sprites in my map.</p> <p>With peek you can read a 32-bit value, while a pixel color is 16 bits. One address therefore holds two pixels. A bit of arithmatic does the trick.</p> <p>Long version:</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> -- set sprite pixel -- s: sprite number -- x: x position of pixel in sprite [0..7] -- y: y position of pixel in sprite [0..7] -- c: new color function ssp(s,x,y,c) addr=flr(s/16)*8*64+(s%16*4)+64*y+flr(x/2) -- current decimal address curr=peek(addr) -- current 2-pixel value if(x%2==0) then -- need to change pixel on the right lcol=flr(curr/16) rcol=c else -- need to change pixel on the left lcol=c rcol=curr%16 end ncol=16*lcol + rcol -- new decimal memory value poke(addr,ncol) 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>Shortened version:</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 ssp(s,x,y,c) a=flr(s/16)*512+(s%16*4)+64*y+flr(x/2) -- 2-pixel address v=peek(a) if(x%2==0) then poke(a,16*flr(v/16) + c) else poke(a,16*c+v%16) end end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=31151 https://www.lexaloffle.com/bbs/?tid=31151 Sat, 21 Apr 2018 11:09:21 UTC All You Can Eat <p> <table><tr><td> <a href="/bbs/?pid=46964#p"> <img src="/bbs/thumbs/pico46965.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46964#p"> All You Can Eat 1.1</a><br><br> by <a href="/bbs/?uid=17423"> wwwhizz</a> <br><br><br> <a href="/bbs/?pid=46964#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is my entry for LD40. The Ludum Dare theme was &quot;The more you have, the worse it is&quot;. Certainly true for food.</p> <p>In this game you play a glutton, someone who eats a lot. You get fatter and fatter and moving gets harder. How much can you eat over seven courses?</p> https://www.lexaloffle.com/bbs/?tid=30365 https://www.lexaloffle.com/bbs/?tid=30365 Sun, 03 Dec 2017 16:27:57 UTC Power Earth Saver <h3>TIP: Play in full screen!<strong></strong></h3> <p> <table><tr><td> <a href="/bbs/?pid=42921#p"> <img src="/bbs/thumbs/pico43241.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=42921#p"> Power Earth Saver 1.5</a><br><br> by <a href="/bbs/?uid=17423"> wwwhizz</a> <br><br><br> <a href="/bbs/?pid=42921#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is my contribution to the Ludum Dare 39 compo. The theme of this LD was Running out of Power.</p> <h2>Story</h2> <p>The year is 3017<br /> Earth is under attack again...<br /> You are the last space pilot.<br /> Unfortunately, your ship has only one generator left..<br /> Choose wisely where you direct its power!</p> <h2>How to play</h2> <ul> <li>Use &lt;left&gt; and &lt;right&gt; arrow keys to move </li> <li>Use &lt;up&gt; and &lt;down&gt; to select where you direct your power: recharge your cannon, rockets or shield</li> <li>Use &lt;z&gt; to fire your cannon</li> <li>Use &lt;x&gt; to fire your rockets</li> <li>Catch powerups to replenish some power, do more damage, recover faster</li> <li>Note that your cannon is more powerful when fully charged</li> <li>The color of the bullets indicate how much damage they do, same for the enemy's bullets.</li> </ul> <p>Update 1.4: bug fix, enemies aiming bullets are now deleted when off-screen<br /> Update 1.5: bug fix, shield powerup never came due to wrong number of powerups in line 241 (changed 4 to 5)</p> https://www.lexaloffle.com/bbs/?tid=29732 https://www.lexaloffle.com/bbs/?tid=29732 Sun, 30 Jul 2017 13:35:59 UTC