littlebluebro [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=22704 Getting time for system clock <p>Is there any way to get the system time? I know we can track the seconds since launch of the program but some type of unix timestamp would be nice. I want to build a game that tracks playtime between sessions. Think of a pico+tamagotchi mash up :) </p> https://www.lexaloffle.com/bbs/?tid=41506 https://www.lexaloffle.com/bbs/?tid=41506 Wed, 10 Feb 2021 20:56:50 UTC Pico-8 on an Analogue Pocket? <p>So the Analogue Pocket is available for pre-order in a few days, if you haven't heard of it yet you should definitely check it out.<br /> <a href="https://www.analogue.co/pocket">https://www.analogue.co/pocket</a></p> <p>How awesome would it be if this thing could run Pico-8 cartridges!? Is that even possible? What kind of hardware requirements does pico-8 have?</p> https://www.lexaloffle.com/bbs/?tid=39036 https://www.lexaloffle.com/bbs/?tid=39036 Fri, 31 Jul 2020 03:50:25 UTC Memory usage and best storage suggestions <p>First post here! Hello everyone! I've started playing around with pico-8 recently and am still kind of noob-levelish. So I'm looking at some suggestions and advice. </p> <p>This is a little test I'm working before integrating it into a game I'm building with a friend. I need to create a circle that will follow a character. The &quot;circle&quot; will change the color of the sprites it overlaps. I started originally by calculating distance from the player to N number of x,y coordinates every frame which caused a ton of CPU load and didn't perform well. So I saved that data to a table and load that on _init. Then on each frame I just have to focus on looping through the table and calculating the drawing logic. I also saved a little more info for each &quot;pixel&quot; in the table like the ring level of the circle and an ON state I can use for other things I plan to do later. </p> <p>Currently when I run the test the mem usage seems to be around 251(KB?) which seems pretty high from other little experiments I've done so far. Does pico-8 have a limit for mem usage or is there any threshold where I should start worrying? Is there a better way to store this info? </p> <p> <table><tr><td> <a href="/bbs/?pid=36117#p"> <img src="/bbs/thumbs/pico36115.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=36117#p"> Untitled</a><br><br> by <a href="/bbs/?uid=22704"> littlebluebro</a> <br><br><br> <a href="/bbs/?pid=36117#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=28635 https://www.lexaloffle.com/bbs/?tid=28635 Thu, 19 Jan 2017 23:49:18 UTC