TheTomster [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=14839 Snow Tower <p> <table><tr><td> <a href="/bbs/?pid=71370#p"> <img src="/bbs/thumbs/pico8_snow_tower-10.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=71370#p"> Snow Tower 0.9</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=71370#p"> [Click to Play]</a> </td></tr></table> </p> <p>A bite-sized arcade precision platformer for the Advent Calendar!</p> <p>In a tower, deep in the Adirondack Mountains... Old Mage Zythandar studies <a href="https://www.lexaloffle.com/bbs/?tid=29668">slimes, barrier magicks, and undead creatures</a>. As if the ghost attacks weren't bad enough, the Flame Orbs keep attracting Mothbugs!</p> <p>Late one night in late December... Zythandar looks out from his study and watches the space candies glittering in the sky above. Watching the candies <a href="https://www.lexaloffle.com/bbs/?tid=36074">sparkle and pop</a> and listening to annoying Christmas music... inspiration strikes him!</p> <p>I'll conjure a creature, of cold ice and snow.<br /> This gentleman of ice, I'll send deep below.<br /> To the depths of my tower, in the basement he'll be.<br /> Forever climbing, and freezing Mothbugs for me!</p> <h3>Controls:</h3> <p>Left / Right: Move</p> <p>Z / C / (O): Jump<br /> Up: Also Jump</p> <p>X / V / (X): Throw Snowball<br /> Down + (X): Throw Snowball Fast</p> <h3>About the PICO-8 Advent Calendar</h3> <p>This winter another group of PICO-8 elves has worked hard to release a shiny new toy approximately every day until the 25th of December. Check out the PICO-8 Advent Calendar 2019 every day for a new surprise! <a href="https://www.lexaloffle.com/bbs/?tid=36076">https://www.lexaloffle.com/bbs/?tid=36076</a></p> <p>There's even more festive fun waiting on last year's calendar! <a href="https://www.lexaloffle.com/bbs/?tid=32388">https://www.lexaloffle.com/bbs/?tid=32388</a></p> <p>Happy Holidays!</p> <h3>Known Issues</h3> <ul> <li>It is possible to become boxed in by frozen bugs and soft-lock the game. If this occurs, reset the game from the pause menu.</li> </ul> https://www.lexaloffle.com/bbs/?tid=36355 https://www.lexaloffle.com/bbs/?tid=36355 Tue, 24 Dec 2019 16:28:24 UTC UFO Santa Candy Blaster <p> <table><tr><td> <a href="/bbs/?pid=70439#p"> <img src="/bbs/thumbs/pico8_ufo_santa-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=70439#p"> UFO Santa Candy Blaster 1.0b</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=70439#p"> [Click to Play]</a> </td></tr></table> </p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/14839/advent.png" alt="" /> <p>Santa has to send presents to more people than ever... thankfully he's got a UFO to help him get around faster. But these flying candies keep getting in the way! Throw gifts at the candies to pop them and collect coins. You can spend coins to buy upgrades and blast even more candies! Will you make it to the ultimate upgrade??</p> <p>For an extra challenge, try completing a run without letting any candies escape through the top of the screen!</p> <h3>Game Controls:</h3> <p>up / down / left / right: movement<br /> Z / C / (O): drop presents</p> <h3>Shop Controls:</h3> <p>left / right: select item<br /> Z / C / (O): buy item<br /> X / V / (X): skip buying an item (save up those coins for next time!)</p> <h3>About the PICO-8 Advent Calendar</h3> <p>This winter another group of PICO-8 elves has worked hard to release a shiny new toy each day until the 25th of December. Check out the PICO-8 Advent Calendar 2019 every day for a new surprise! <a href="https://www.lexaloffle.com/bbs/?tid=36076">https://www.lexaloffle.com/bbs/?tid=36076</a></p> <p>There's even more festive fun waiting on last year's calendar! <a href="https://www.lexaloffle.com/bbs/?tid=32388">https://www.lexaloffle.com/bbs/?tid=32388</a></p> <p>Happy Holidays!</p> <h3>Candies:</h3> <p><strong>Classic Peppermint</strong><br /> <table><tr><td width=64> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_6.png" width=64 height=64> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_6"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_6.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_6"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [16x16]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_6" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> This is the most common candy seen in the skies of UFO Earth. After an incident at Confection Production Facility 97, thousands of peppermints were launched into low earth orbit. Santa's UFO is tough enough to ram these without taking any damage, and a few solid hits with a gift will shatter these mints into dust.</p> <p>UPDATE: Dec 2 2199 - Extremely large mints have been spotted on radar in the upper mesosphere. Be on guard and throw as many gifts as you can at these large mints. <em>--Rolf, North Pole Recon Unit</em></p> <p><strong>Spearmint Swirl</strong><br /> <table><tr><td width=64> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_7.png" width=64 height=64> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_7"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_7.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_7"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [16x16]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_7" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> The Council of Commercial Confectioners attempted to remedy the CPF-97 disaster by launching denser spearmints into orbit to break up the peppermints. The plan backfired. Spearmints and peppermints happily coexist in the upper atmosphere, and now the dense spearmints provide a more challenging obstacle for pilots.</p> <p><strong>Wintermint Freeze</strong><br /> <table><tr><td width=64> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_8.png" width=64 height=64> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_8"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_8.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_8"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [16x16]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_8" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Occasionally orbital mints get pulled into arctic storm systems. Most of these mints get pulled out of orbit and crash land in Upper New Canada, but occasionally they are launched back into orbit and become another obstacle for UFO pilots to navigate around. These mints are transformed by the ice and hail, and take on a refreshing wintergreen flavor. Try destroying these mints for a cool blast of refreshment.</p> <p><strong>[REDACTED]</strong><br /> <table><tr><td width=64> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_9.png" width=64 height=64> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_9"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_9.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_9"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [16x16]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_9" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> NOTE: Santa, I found this file on the New Canadian Intelligence Force's network. Not much info here, but you might encounter these on your route. <em>--Ernesto, North Pole SIGINT</em></p> <div> <div style="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>First discovered in [REDACTED], flying in airspace above [REDACTED]. Appear to be composed of [REDACTED]. Extremely dense, tests have shown they can only be shattered by [REDACTED].</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=36074 https://www.lexaloffle.com/bbs/?tid=36074 Sun, 01 Dec 2019 07:44:51 UTC Barrier Blast <p> <table><tr><td> <a href="/bbs/?pid=42557#p"> <img src="/bbs/thumbs/pico42556.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=42557#p"> Barrier Blast 1.0</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=42557#p"> [Click to Play]</a> </td></tr></table> </p> <p>Arcade wizard game made in 48 hours for GMTK Jam.</p> <p>Press Z to jump, X to shoot magic missile. Down+Z to drop through platforms.</p> <p>Smash all the gems with your magic to advance to the next level. When you shoot the missile, you're left vulnerable, so be careful! See how far you can get and set the high score.</p> https://www.lexaloffle.com/bbs/?tid=29668 https://www.lexaloffle.com/bbs/?tid=29668 Sun, 16 Jul 2017 21:17:37 UTC Apple Town <p> <table><tr><td> <a href="/bbs/?pid=36393#p"> <img src="/bbs/thumbs/pico36417.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=36393#p"> Apple Town 1.0</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=36393#p"> [Click to Play]</a> </td></tr></table> </p> <p>A small apple farming sim.</p> <p>Tab turns on the TV. Once the TV is on, arrow keys move, X displays the inventory, and Z uses the current item.</p> <p><span style="text-decoration: underline;"><strong>Tools:</strong></span></p> <p><strong>Magnifying Glass</strong><br /> <table><tr><td width=12> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_0.png" width=12 height=12> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_0"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_0.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_0"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [3x3]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_0" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Examines the square you are facing. Brings up a full screen detailed view of whatever is in front of you. Useful for checking on your trees.</p> <p><strong>Apple Basket</strong><br /> <table><tr><td width=12> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_1.png" width=12 height=12> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_1"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_1.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_1"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [3x3]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_1" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Holds all of your apples. The red number on screen when your inventory is open is the count of how many apples are in your basket. Pressing &quot;use&quot; while this is selected will either plant an apple in tilled soil, or harvest apples from a grown tree.</p> <p><strong>Watering Can</strong><br /> <table><tr><td width=12> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_2.png" width=12 height=12> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_2"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_2.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_2"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [3x3]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_2" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Young seedlings need to be watered to grow. Pressing &quot;use&quot; while this is selected will sprinkle water on the square in front of you.</p> <p><strong>Hoe</strong><br /> <table><tr><td width=12> <img src="https://www.lexaloffle.com/bbs/gfxc/14839_3.png" width=12 height=12> </td> <td valign=bottom> <a style="cursor:pointer;font-size:8pt" onclick=' var el = document.getElementById("gfxcode_14839_3"); if (el.style.display == "none") el.style.display = ""; else el.style.display = "none"; microAjax("https://www.lexaloffle.com/bbs/gfxc/14839_3.txt", function (retdata){ var el = document.getElementById("gfxcode_14839_3"); el.innerHTML = retdata; el.focus(); el.select(); } ); '> [3x3]</a> </td></tr> <tr><td colspan=2> <textarea rows=3 class=lexinput id="gfxcode_14839_3" style="width:640px;background-color:#fed;display:none;overflow:hidden; font-size:6pt;"></textarea> </td> </tr> </table> <br /> Tills soil. Pressing &quot;use&quot; will till the square in front of you.</p> <p>v0.9:<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;"><br /> <table><tr><td> <a href="/bbs/?pid=36393#p"> <img src="/bbs/thumbs/pico36391.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=36393#p"> Apple Town 0.9</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=36393#p"> [Click to Play]</a> </td></tr></table> <br /> </div></div></div></p> https://www.lexaloffle.com/bbs/?tid=28701 https://www.lexaloffle.com/bbs/?tid=28701 Sun, 22 Jan 2017 17:13:44 UTC Entity Example <p> <table><tr><td> <a href="/bbs/?pid=34997#p"> <img src="/bbs/thumbs/pico34996.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=34997#p"> Entity Example</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=34997#p"> [Click to Play]</a> </td></tr></table> </p> <p>Someone over in Discord asked about some entity drawing code in Hug Arena, so I took a look a stab at explaining it. I realized the code in Hug Arena is similar to a technique I've used quite a bit, so I put together a small example cartridge demonstrating the technique.</p> <p>The sample is commented code that demonstrates how to draw two types of objects that update the same way each frame, but draw differently.</p> <p>In &quot;Remains of El Dorado&quot; I used this for most objects drawn in the game, you can check out that cartridge to see how this works on a larger scale.</p> https://www.lexaloffle.com/bbs/?tid=28447 https://www.lexaloffle.com/bbs/?tid=28447 Thu, 05 Jan 2017 14:26:48 UTC The Remains of El Dorado <p> <table><tr><td> <a href="/bbs/?pid=31992#p"> <img src="/bbs/thumbs/pico31991.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=31992#p"> The Remains of El Dorado 1.0</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=31992#p"> [Click to Play]</a> </td></tr></table> </p> <p>Explore the lost city. Find the amulet.</p> <p>The Remains of El Dorado is a roguelike game for PICO-8. You're seeking The Amulet of the Sun which will bring you great fame and fortune... if you survive.</p> <p>Press C to charge a shot, press a direction while charged to shoot. Press X to enter the potion menu. Select a potion by pressing left and right, and press C to confirm. Aim your throw with the direction keys, and press C to throw the potion. Careful! Potions will explode on contact with a wall.</p> <p><img style="" border=0 src="https://dl.dropboxusercontent.com/u/2925048/remains/assets/move.gif" alt="" /> <img style="" border=0 src="https://dl.dropboxusercontent.com/u/2925048/remains/assets/shoot.gif" alt="" /> <img style="" border=0 src="https://dl.dropboxusercontent.com/u/2925048/remains/assets/potions.gif" alt="" /></p> <p>Remains is turn based. When you're in a tough situation don't forget to slow down and think about all of your options. Don't die with a potion in your pocket!</p> <p><strong>Potions</strong></p> <p>Potions are thrown around like grenades! On impact they will affect everything standing in the square they hit plus the 8 squares surrounding it.</p> <p><strong>Healing</strong> potions heal you if you're in the explosion. Enemies are unaffected. They also put out fires in the blast zone.<br /> <strong>Fire</strong> potions are useful for attacking groups of enemies. They don't put out fires. The fire ants are immune to fire potions.<br /> <strong>Ice</strong> potions are slightly harder to find than fire potions, but work on all types of enemies and put out fires.</p> <p><strong>Enemies</strong></p> <p>Three types of enemies inhabit the dungeon and will defend their turf.</p> <p><img style="" border=0 src="https://dl.dropboxusercontent.com/u/2925048/remains/assets/ant.gif" alt="" /> <img style="" border=0 src="https://dl.dropboxusercontent.com/u/2925048/remains/assets/lizard.gif" alt="" /> <img style="" border=0 src="https://dl.dropboxusercontent.com/u/2925048/remains/assets/cultist.gif" alt="" /></p> <p>Enjoy!</p> https://www.lexaloffle.com/bbs/?tid=27993 https://www.lexaloffle.com/bbs/?tid=27993 Sat, 29 Oct 2016 00:20:43 UTC The Remains of El Dorado (WIP) https://www.lexaloffle.com/bbs/?tid=27765 https://www.lexaloffle.com/bbs/?tid=27765 Wed, 28 Sep 2016 23:38:35 UTC Tweening Demo <p> <table><tr><td> <a href="/bbs/?pid=28720#p"> <img src="/bbs/thumbs/pico28719.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=28720#p"> Tweening Demo 0.1</a><br><br> by <a href="/bbs/?uid=14839"> TheTomster</a> <br><br><br> <a href="/bbs/?pid=28720#p"> [Click to Play]</a> </td></tr></table> </p> <p>For the game I'm working on I built a super tiny tweening system for making it easier to move things around. This cart demonstrates a few different easing functions that plug into the system.</p> <p>Tweening is a way of moving an object from point A to B. You specify where you want the object to go, and how long you want it to take to get there, and the tweening system takes care of the motion. I find it super useful for making games, especially for adding little bits of polish to your game. It's easier to just say &quot;move the ball to x=104 in 60 frames&quot; than it would be to calclate the required speed every time. You can also use an easing function to tell how it should get there, allowing it to accelerate slowly or bounce or spring back.</p> <p>Tweens have four parameters: the property we want to update, the value we want to end up with, the length of time we want it to take to reach the target value, and the easing function. We'll store those values in a table, and each frame we'll look at each entry in the table and update the target property as needed.</p> <p>The tween function begins tweening a property:</p> <div> <div style="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 tween(target, property, destination, duration, func) local tween_info = { target = target, property = property, base_value = target[property], change = destination - target[property], duration = duration, elapsed = 0, func = func } add(tweens, tween_info) 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>Each frame, we loop through that list and update everything. The update function removes any tweens that have reached their duration. Other than tracking this timing information, the tween_update function leaves most of the work to the selected easing function.</p> <div> <div style="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 tween_update() for t in all(tweens) do if t.elapsed &gt; t.duration then t.target[t.property] = t.base_value + t.change del(tweens, t) else t.elapsed += 1 t.target[t.property] = t.func( t.elapsed, t.base_value, t.change, t.duration) end 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> <p>So the easing functions are the ones that actually move our stuff� how do they work? Well the simplest easing function is linear, which is really no �easing� at all. It just moves the object from a to b at a constant speed. Here's what it looks like:</p> <div> <div style="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 linear(elapsed, base_value, change, duration) return change * (elapsed / duration) + base_value 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>So far in my game I've only needed one other easing function, In/Out Quadratic. This simulates acceleration and deceleration. It looks like this:</p> <div> <div style="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 in_out_quad(t,b,c,d) t/=d/2 if (t&lt;1) return c/2*t*t+b t-=1 return -c/2*(t*(t-2)-1)+b 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>The cart also has a bouncy tween function that is super useful for menus and other UI.</p> <p>The great thing is that by plugging in different easing functions you can reuse the same simple framework to accomplish many different effects. And tweening doesn't just have to affect movement. You can tween sizes, rotations, color� any numeric value you want to change over time.</p> https://www.lexaloffle.com/bbs/?tid=27677 https://www.lexaloffle.com/bbs/?tid=27677 Sun, 18 Sep 2016 00:40:11 UTC