Mikimation [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=60979 The World Under <p> <table><tr><td> <a href="/bbs/?pid=115100#p"> <img src="/bbs/thumbs/pico8_worldunder-8.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=115100#p"> worldunder</a><br><br> by <a href="/bbs/?uid=60979"> Mikimation</a> <br><br><br> <a href="/bbs/?pid=115100#p"> [Click to Play]</a> </td></tr></table> </p> <h1>The World Under</h1> <p><em>a game by Mikimation aka Miki Hakim</em></p> <p>Controls:</p> <img style="margin-bottom:16px" border=0 src="/media/60979/worldunder2 p8_1.gif" alt="" /> <p>Left\Right - Walk<br /> Up - Interact<br /> Down - Defend<br /> Z - Attack<br /> X - Jump<br /> Down + X - Roll Dodge</p> <img style="margin-bottom:16px" border=0 src="/media/60979/worldunder2 p8_2.gif" alt="" /> <h2>Dev notes</h2> <p>I am an animator by profession. I've had a big project this year in After Effects that made me required me to learn some programming. Around that time I discovered Pico 8 and fell in love with the platform and a lot of the games made by the community. I decided I want to fulfill a dream I've had for 20 years now and make a game, like the games I used to grow up on in the 90s.<br /> I've started doing some tutorials, and what started as a small project developed into making a full-on game.<br /> I have learned a lot through the process. With each mechanic I wanted to put on the game I needed to learn more about programming in Lua and math.</p> <img style="margin-bottom:16px" border=0 src="/media/60979/worldunder37_8.gif" alt="" /> <p>After I set up the engine, I found out what game design really is. Working with Pico 8's relatively small map, I've understood how I should lead the player in the area, and use the space to its maximum potential.<br /> I also had to learn technincs used by early games, such as pallete swapping, used in the sword animation, fade to black screen, and different level colors.<br /> Creating systems was really fun. Like the enemy system, and building modular enemies with modular ai. With these systems I could create a big amount of enemies while using a rather little sprites in the process.<br /> To be able to put alot of contents in Pico 8's code limitations, I've developed all kinds of compression methods that really let me squiz in alot, though I've had to let go of alot of ideas that I wanted to put in.<br /> The game is not perfect, but it's my first game, and I know you gotta stop at some point and move on to the next project. I did manage to create a full game, and I'm really proud of how The World Under came to be.</p> <img style="margin-bottom:16px" border=0 src="/media/60979/worldunder37_10.gif" alt="" /> <h3>about the code</h3> <p>For an efficient way to place enemies on the map, I've made a script that scans the entire map, and look for tiles that will spawn enemies(first tab after the comment &quot;map scan for enemy tiles&quot;.</p> <p>controls are all shared by the enemies and the player, in order to save code tokens. It surprised me how well it worked out.</p> <p>Actors management. the function create_enemies on the 4th tab is the properties of each actor(powerups, enemies, NPCs, etc...). Each actor has a type, and according to it's type, it gets it's custume properties, such as sprites, width, height, ai etc...</p> <p>The Ai of the enemies is also modular, as each block of the ai can be called with it's name, in the AI table.</p> <p>sprite_builder() is the function that builds each enemy from different sprties and handles it's animation properties. Took me some time to get it to work well, and I was able to do with some really amazing enemies.</p> <p>In conclusion This game was really fun to made and I hope it will be fun for you to play</p> <img style="margin-bottom:16px" border=0 src="/media/60979/worldunder p8_0.gif" alt="" /> https://www.lexaloffle.com/bbs/?tid=48726 https://www.lexaloffle.com/bbs/?tid=48726 Mon, 01 Aug 2022 12:27:03 UTC I'm looking for music for my game <img style="margin-bottom:16px" border=0 src="/media/60979/4_worldunder30_1.gif" alt="" /> <p>The game I'm working on &quot;The World Under&quot; is 95% done!<br /> I'd love to collab with a musician and have music for my boss fights. Can be music that was already made aswell</p> https://www.lexaloffle.com/bbs/?tid=48645 https://www.lexaloffle.com/bbs/?tid=48645 Mon, 25 Jul 2022 09:10:57 UTC Check if player inside sector of circle (Radial line of sight) <p>I'm trying to make a radial sight function for the enemies in my game</p> <p>I want them to know if the player has entered a radius around them, and be able to control the angle of their sight according to their direction<br /> So basically it's checking if the player has entered a sector of the radius around them, and also being able to control the percentage of the sector and its direction.</p> <p>I thought about splitting the radius around them into directions, as seen in the image. I'm not sure if that's right.</p> <img style="margin-bottom:16px" border=0 src="/media/60979/2_radial sight copy.jpg" alt="" /> <p>I'm terrible at math so I couldn't figure this one out, I'd appreciate the help</p> <p>this is the closest solution that I found, but I couldn't make it work<br /> <a href="https://www.geeksforgeeks.org/check-whether-point-exists-circle-sector-not/">https://www.geeksforgeeks.org/check-whether-point-exists-circle-sector-not/</a></p> https://www.lexaloffle.com/bbs/?tid=46972 https://www.lexaloffle.com/bbs/?tid=46972 Mon, 14 Mar 2022 10:34:43 UTC Help with tentacle <p>I'm trying to make a tentacle using sin().<br /> I want the base (the top circle) to be static, and the wiggle of the tentacle to get stronger until it reaches the tip (the bottom circle).<br /> So far I have only achieved a pendulum<br /> I'm not that good with math so I'm not sure about how to do it<br /> here's my code</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() length=20 x=64 y=40 end function _draw() cls() for i=0,length do circfill(x+sin(time())*i,y+i*4,length-i,14) 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=45855 https://www.lexaloffle.com/bbs/?tid=45855 Sat, 25 Dec 2021 10:11:23 UTC How to check if there are no flags? <p>I'm working on a platformer game. I'm having an issue with enemy AI.<br /> I want that the enemy will turn the opposite way once it reaches a cliff, much like a collision with a wall.<br /> I want to make a collision check that will check if the floor of the tile after the enemy doesn't have any flags.<br /> How do I do that if 0 means the first flag?</p> https://www.lexaloffle.com/bbs/?tid=45774 https://www.lexaloffle.com/bbs/?tid=45774 Mon, 20 Dec 2021 17:10:19 UTC