ziggystar [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=24038 Store entities in multiple or unified array? <p>When I'm starting a new game, I usually have arrays for different things. Like one array for enemies. One array for bullets, one array for friendly entities.</p> <p>Then I always wonder, when the number of arrays grows, whether I should store everything in a single array.</p> <p>Storing it in a single array means you have to check the type each time you scan the array. E.g. when a friendly bullet does collision check with enemy.</p> <p>On the other hand, if you need to check against multiple types of entities, you need to scan through multiple arrays.</p> <p>Is there any common approach to this problem? How do you handle this?</p> https://www.lexaloffle.com/bbs/?tid=53493 https://www.lexaloffle.com/bbs/?tid=53493 Fri, 21 Jul 2023 20:37:24 UTC picoclash <p> <table><tr><td> <a href="/bbs/?pid=120599#p"> <img src="/bbs/thumbs/pico8_picoclash-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=120599#p"> picoclash</a><br><br> by <a href="/bbs/?uid=24038"> ziggystar</a> <br><br><br> <a href="/bbs/?pid=120599#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Pico Clash v1</h1> <p>Pico Clash is a two player card-based real time strategy game.<br /> There is no AI implemented, so you have to find a second player to play the game.</p> <p>There is not much polish done, but the game is playable.</p> <p>The game is inspired by <a href="https://minionmaster.com/">Minion Masters</a> or Clash of Clans.</p> <h2>Controls</h2> <ul> <li>Move cursor with arrow keys.</li> <li>use <code>x</code> to cycle through cards</li> <li>use <code>o</code> to play card at cursor position, if you have enough mana</li> </ul> <p>The goal is to destroy the enemy tower.</p> <h2>Todos</h2> <ul> <li>nice start screen with explanation</li> <li>more cards</li> <li>more maps</li> <li>staging screen where each player can configure its deck</li> </ul> <p>I'm open for collaborations on this. Better GFX or discussion on improvements would be welcome.</p> https://www.lexaloffle.com/bbs/?tid=50204 https://www.lexaloffle.com/bbs/?tid=50204 Sun, 13 Nov 2022 09:15:30 UTC