Andre4s [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=13934 Knight in the Castle <p> <table><tr><td> <a href="/bbs/?pid=26989#p"> <img src="/bbs/thumbs/pico26987.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=26989#p"> Knight in the Castle 0.1</a><br><br> by <a href="/bbs/?uid=13934"> Andre4s</a> <br><br><br> <a href="/bbs/?pid=26989#p"> [Click to Play]</a> </td></tr></table> <br /> You are a knight in a castle where some trigger happy ghosts live. You need to find your way out of the castle. The game have 4 levels. Collect keys to open doors to get to the next level. You can also collect coins, 5 coins and you will remain on the same level when you die. Else you will end up in the previous level. </p> https://www.lexaloffle.com/bbs/?tid=4068 https://www.lexaloffle.com/bbs/?tid=4068 Tue, 16 Aug 2016 10:39:00 UTC Animation test <p> <table><tr><td> <a href="/bbs/?pid=26684#p"> <img src="/bbs/thumbs/pico26683.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=26684#p"> Animation test 0</a><br><br> by <a href="/bbs/?uid=13934"> Andre4s</a> <br><br><br> <a href="/bbs/?pid=26684#p"> [Click to Play]</a> </td></tr></table> </p> <p>Here I have played around a bit with animations. I have combined both sprite animations and particle animations to make it look good. The sprite animations are done with a &quot;config&quot; structure so that I can use the same functions for drawing the animations later. Actors and particles are seperated in there own tables. I think this is best if you want to do collision detection later. </p> <p>Now I want to improve the code and what some suggestions. I have not used Lua and I am sure you can see that on the code. Currently it use 870 tokens. This must be improved I guess? I guess every token counts in the end when you are creating a complete game. But I think there is a lot of stuff that can be improved. </p> <p>I do also have some questions. For example I update and delete disabled actors like this, is this safe? or can this result in that some actors are updated multiple times peer loop etc?</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> for a in all(actors) do if(a.enabled) then a.update(a) else del(actors, a) 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=4033 https://www.lexaloffle.com/bbs/?tid=4033 Tue, 09 Aug 2016 05:10:04 UTC Eremit <p> <table><tr><td> <a href="/bbs/?pid=24663#p"> <img src="/bbs/thumbs/pico26727.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=24663#p"> Eremit 1.1</a><br><br> by <a href="/bbs/?uid=13934"> Andre4s</a> <br><br><br> <a href="/bbs/?pid=24663#p"> [Click to Play]</a> </td></tr></table> <br /> Changes:</p> <ul> <li>Some cleanups<br /> <table><tr><td> <a href="/bbs/?pid=24663#p"> <img src="/bbs/thumbs/pico24743.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=24663#p"> Eremit 1.0</a><br><br> by <a href="/bbs/?uid=13934"> Andre4s</a> <br><br><br> <a href="/bbs/?pid=24663#p"> [Click to Play]</a> </td></tr></table> <br /> <table><tr><td> <a href="/bbs/?pid=24663#p"> <img src="/bbs/thumbs/pico24660.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=24663#p"> Eremit 0.1</a><br><br> by <a href="/bbs/?uid=13934"> Andre4s</a> <br><br><br> <a href="/bbs/?pid=24663#p"> [Click to Play]</a> </td></tr></table> <br /> How to play the game:<br /> You win when there is only one marble left on the board. You remove marbles by jumping over them to a empty slot of the board. If you select a marble and there is only one valid move to make from this selection this move will be executed automatically. if there are multiple valid destinations you have to specify where to move the selected marble. </li> </ul> <p>Good luck! </p> https://www.lexaloffle.com/bbs/?tid=3775 https://www.lexaloffle.com/bbs/?tid=3775 Tue, 05 Jul 2016 19:21:23 UTC