WolfWings [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=23879 ...could we get a full-size 32-bit peek/poke? <p>There's a lot of situations where being able to save a full 16:16-precision value out or load it back in later is helpful, and the 'hardware' already has the routine in the form of the dget/dset functions that just happen to be restricted to the 0x5e?? range. Maybe dpeek/dpoke?</p> https://www.lexaloffle.com/bbs/?tid=29306 https://www.lexaloffle.com/bbs/?tid=29306 Thu, 11 May 2017 18:43:18 UTC Large-world Map Engine w/ Editor <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40919.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v3.0</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40801.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v3.0 Alpha</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p>So this started on <a href="/bbs/?tid=29178">this thread</a> by <a href="/bbs/?uid=9816&amp;amp;mode=posts">weeble</a> but I ended up rather... running away with the code idea and overhauling it drastically.</p> <p>While I've resumed working w/ Weeble on this in his original thread, I'm keeping this thread updated as well as I make changes.</p> <p>V2.0 details<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> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40742.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v2.5-caching</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40463.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v2.5</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40406.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v2.4</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40387#p"> <img src="/bbs/thumbs/pico40386.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40387#p"> DynaGen V2.3</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40387#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40308.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v2.2</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40147.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v2.1</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=40130#p"> <img src="/bbs/thumbs/pico40129.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40130#p"> DynaGen v2.0</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=40130#p"> [Click to Play]</a> </td></tr></table> </p> <p>Also with V2.1 I've moved the various data tables needed outside of the sprite sheet, copied up from page 3 which is the one tiles are rendered into in-game, so all of the first two sprite pages are available for graphics as is the first two rows and change of page #2.</p> <p>With V2.2 I've added the initial code for clipping regions, to avoid redrawing the entire screen every frame. This is a <strong><em>MASSIVE</em></strong> speedup, pushing CPU usage outside of screen-transition periods down to 5% CPU at 60fps in most cases. I'm working on a '16x16 bitfield' based solution that will instead re-render the screen in regions as small as 8x8 pixels per frame, allowing for multiple moving objects that way.</p> <p>I've also cut the CPU used for baking the tile graphics in half from ~2.5 frames at 60fps to ~1.3 frames at 60fps with this release, while the token count and overall codesize has actually gone down.</p> <p>Finally, the game picks a random room in the entire 16x16 grid to start you in, so you get different areas of the maze each time you restart the cart. So hit Ctrl+R a few times to see all the various biomes.</p> <p>As a caveat I have removed the 'biome viewer' in this version for now, as I'm redesigning the interface to be a general-purpose editor for the maze itself, including setting biomes on the maze and editing individual biomes directly.</p> <p>As of V2.3 I've integrated newer 'cavern generation' code that weeble came up with, to avoid blocking paths and allowing for much denser 'crazyness' to occur, as well as my 'context sensitive dithering' code which makes the transition tiles look much more alive and distinct now.</p> <p>I'm working on some additional cavern smoothing functions to retain the 'crowded' feel without having quite so many dead side-passages at times, and adding a caching layer for the more expensive parts of the room-generation, to allow much of it to be generated in the background as you walk around a room to get to the next exit.</p> <p>V2.4 adds a fourth unique room design for some biomes, one with much deeper, winding passages and a crowded feel.</p> <p>V2.5 adds a MASSIVE speedup to the bake_tiles function by calculating the 'masked' tiles a full 32-bit row of 8 pixels at a time. So one fourth as many calculations in exchange for a bit of bit-shifting to load/save the values, but overall it's a HUGE win, including on token-count! Only 2814 tokens current! :D As a note, the masking colors are now 2/3, 4, 5, and 6/7, with values 0, 1, and all those above 7 MUST be avoided in the masks now.</p> <p>As an interim release, V2.5-caching includes a further sped up tile-rendering codebase which is also moving some data from peek/poke memory to lua memory, taking up roughly 128k of the 1MB available with pre-rendering graphics tiles organized for faster rendering. This transition is freeing up enough speed that I am preparing to remove the 'biome' approach and allow direct per-maze-room assignment of walls, floors, and borders (including palettes) to simplify world painting. The trade-off is worlds will take ~768 bytes of sprite/map memory to store instead of ~512 bytes as they are now.</div></div></div></p> <p>With V3.0 I've completely removed the concept of 'biomes' from the codebase; the walls, floors, borders, and their respective palette choice can be assigned fully independently per-room now. I've not yet modified the map to show off this feature, though as a side-effect screen-transitions are even faster now as the engine only generates those tiles which are absolutely required.</p> <p>Also new is a full fledged built-in editor allowing you to modify the maze design with a realtime view of the room in question when customizing the palette/textures for each component. Note that editing the actual palettes used by the tiles is done by editing the lower-left corner (sprite tiles 240 and 241) with the upper row being palettes 0-15 and the lower row being palettes 16-31.</p> <p>To access the editor go into the in-cartridge menu (P by default) and select the appropriate menu item; likewise to exit the editor choose to either discard or save changes in the menu.</p> <p>I'm still working to improve the rendering system, but felt releasing this version with a fully functional editor built-in is a valid point where games could easily be made with this engine.</p> https://www.lexaloffle.com/bbs/?tid=29264 https://www.lexaloffle.com/bbs/?tid=29264 Tue, 02 May 2017 15:01:42 UTC Missile Swarm <p> <table><tr><td> <a href="/bbs/?pid=39086#p"> <img src="/bbs/thumbs/pico39497.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39086#p"> Missile Swarm 1.5</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=39086#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=39086#p"> <img src="/bbs/thumbs/pico39486.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39086#p"> Missile Swarm 1.4</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=39086#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=39086#p"> <img src="/bbs/thumbs/pico39464.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39086#p"> Missile Swarm 1.3</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=39086#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=39086#p"> <img src="/bbs/thumbs/pico39148.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39086#p"> Missile Swarm 1.2</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=39086#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=39086#p"> <img src="/bbs/thumbs/pico39146.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39086#p"> Missile Swarm 1.1</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=39086#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=39086#p"> <img src="/bbs/thumbs/pico39083.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39086#p"> Missile Swarm 1.0</a><br><br> by <a href="/bbs/?uid=23879"> WolfWings</a> <br><br><br> <a href="/bbs/?pid=39086#p"> [Click to Play]</a> </td></tr></table> </p> <p>I have further ideas to add to this game and plenty of space/resources left to do so, but it is 'feature complete' to release as a Cartridge instead of a WIP at this point. Remaining ideas:</p> <ul> <li>More options; missile swarm sizes, enemy types to enable/disable, etc</li> <li>Attraction/Arcade Demo mode during the &quot;title card&quot;</li> <li>Improve the 'how to play' panel further</li> <li>More varieties of enemies</li> </ul> <p>This is a 60FPS cart, vaguely based on the '16 gifs' SCHMUP in overall structure but written in a very different style using sub-pixel accuracy (including movement and projectiles) and circle-based collision detection instead of rectangles. The 'drunk missiles' are still using the same basic 'linear movement + circular spiral' pathing, but there's a lot more variety going on with spiral size, etc.</p> <p>Gameplay is fairly trivial, hold down Z to fire, shoot down missiles and avoid running into them. Like many SCHMUP's only the 'core' of your fighter can be hit. The color shifts from blue -&gt; green -&gt; yellow -&gt; red -&gt; dead, and your projectiles match your current health status color.</p> <p>X button starts a new game if dead, to avoid having to bring up the Pause menu every time, and if anyone has any further suggestions I'm open to hear them!</p> <p>V1.1 adds:</p> <ul> <li>Persistent high-score</li> <li>Basic 'manual' panel</li> <li>Initial 'options' screen allowing you to disable the starfield if you find it too distracting</li> <li>Much improved collision detection</li> </ul> <p>V1.2 is mostly bug fixes</p> <ul> <li>Converted from 'integer sub-pixel' to using the 16:16 fixed-point math PICO-8 already supports</li> <li>Fixed the 'hold down for an easier game' exploit by blocking movement inputs instead of only capping position</li> </ul> <p>V1.3 adds music and sound</p> <ul> <li>Better 'death' explosion</li> <li>A simple projectile firing sound tuned to not be annoying to have running near-constantly</li> <li>A per-hit 'splat' as your shield weakens</li> <li>A longer and randomly generated 'explosion' noise when you die</li> </ul> <p>V1.4 is mostly polish and overhaul</p> <ul> <li>Difficulty is raised as a result of more even screen coverage by missile swarms</li> <li>Credits panel added to 'attract' mode</li> <li>Code has been organized better</li> </ul> <p>V1.5 is final polish and the last release in the &quot;1.x&quot; line</p> <ul> <li>Minimized the music, it was overly verbose and could be reduced to half as many patterns used</li> <li>A few minor individual-pixel touchups on the title graphic</li> </ul> https://www.lexaloffle.com/bbs/?tid=29113 https://www.lexaloffle.com/bbs/?tid=29113 Tue, 04 Apr 2017 17:23:16 UTC