Kavukamari [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=32123 Feature Concept: Await Cart Drag <p><strong>Reacting to Cart Drag Events</strong></p> <p>I was thinking about the final fantasy games for the ps1 and about how I really love the concept of a game which prompts you to switch the game disk out for another one you have sitting nearby. I know pico8 can automatically load carts without user input, but I was trying to brainstorm a way which would allow you to have that tactile feel of sticking a cart in. I'd like to propose a method of achieving this and open the floor up to further discussion about the topic.</p> <p>Basically this is sort of an advanced, tactile multicart that a developer can customize to their will.</p> <p>I was wanting to implement this in such a way where the cart developer has full control of how it works aesthetically, so with as little intervention as possible, so I wanted to avoid a function which completely freezes the cart and waits for a drag event. </p> <p><strong>Suggested Method:</strong></p> <p>&quot;Stat&quot; Method<br /> (similar to how dev mouse is only activated when it's queried, perhaps this feature should be opt-in in the same way)</p> <ul> <li>have a set of stat values which store the filepath/bbs id(?)</li> <li>if a drag event happened this frame, it records the filename of the drag and finds some sort of unique identifier set by the user from the cart (unknown what this would be yet)</li> <li>probably clear these stat values on the next frame to be ready for another drag event</li> <li>activate by poking a memory value or maybe by querying the feature for the first time with stat <ul> <li>to avoid a drag event immediately unloading the current cart and loading the new one</li> <li>prepare the console to get the new stat()s and maybe enable a cute drag indicator when you drag stuff over the window</li> </ul></li> <li>to switch carts, have a loop running around checking every frame if the values have been set, and react accordingly <ul> <li>&quot;now loading map Baja California, please insert baja cart&quot; </li> <li>if stat(uid) == &quot;mybikes_baja&quot; then load stat(filename) etc etc, if it's wrong &quot;please try again&quot; or whatever</li> <li>if btnp (cancel) then go back to main game loop and do something or other (different map maybe? cancel teleport?)</li> <li>etc</li> </ul></li> </ul> <p>I could think of alternate methods like calling a function which would pause the cart and wait for a drag event, but that seems intrusive and not very customizable</p> <p><strong>Problems:</strong></p> <p>One problem with this idea is currently it's very difficult to hide/find a unique identifier inside a pico8 cart. I was thinking the cartdata string would be a good one, but this is not explicitly set per cartridge inside the cart itself, and also there's no way to guess by looking at cartdata calls because carts can arbitrarily read and write any cartdata they want.</p> <p>Another issue is that this feature would not work for BBS carts, so some sort of alternative would need to be in place if the user cannot or willnot drag a cart into the window. I'm not sure how to do this unintrusively. maybe if you press the pause key and the console calls the function or stat, then it adds an option to the menu to prompt for a bbs id? maybe this feature just isn't for bbs carts, just as multicart isn't really supported for bbs?</p> <p>Another problem is exporting to a multicart binary would also be very difficult. but perhaps the two features would be mutually exclusive? this is more of an aesthetic choice that a developer could make for fun.</p> <p><strong>Discussion:</strong></p> <p>I'd love to hear what people think of this idea. I think it would be a lot of fun, even if it would take a while before we see it used in a cart. Does anyone else think this would be a good idea or see any other problems with it?</p> https://www.lexaloffle.com/bbs/?tid=38346 https://www.lexaloffle.com/bbs/?tid=38346 Wed, 10 Jun 2020 08:06:24 UTC ghost test 1 <p> <table><tr><td> <a href="/bbs/?pid=62456#p"> <img src="/bbs/thumbs/pico8_ghost2_0_1-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=62456#p"> ghost2_0_1</a><br><br> by <a href="/bbs/?uid=32123"> Kavukamari</a> <br><br><br> <a href="/bbs/?pid=62456#p"> [Click to Play]</a> </td></tr></table> </p> <p>just a test I'm doing with classes and npcs</p> <p>trying to make a game where anything can be turned into a player because they perform tasks by accepting a button array as input from their &quot;ai&quot;</p> https://www.lexaloffle.com/bbs/?tid=33482 https://www.lexaloffle.com/bbs/?tid=33482 Sun, 03 Mar 2019 10:50:13 UTC Time() in 60fps runs double-fast? <p>did something change recently with the time function? when I run it in update60() I get seconds every half second, but when I run it in update() I get seconds every second</p> <p>do I need to divide by 2 if I'm running in 60fps mode or is this a bug?</p> <p>this is all the code I have currently, was just running a quick test when I noticed odd behavior</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() end function _update60() t=time() end function _draw() cls() print(t,64,64) 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=33429 https://www.lexaloffle.com/bbs/?tid=33429 Fri, 01 Mar 2019 01:17:30 UTC &quot;Joystick&quot; movement test <p>This is my effort at trying to make the mouse work as a joystick. Click to move.</p> <p>Also it's sort of a cart I want to work on more, so it's in WIP instead of Snippets</p> <p> <table><tr><td> <a href="/bbs/?pid=58201#p"> <img src="/bbs/thumbs/pico58200.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=58201#p"> Untitled</a><br><br> by <a href="/bbs/?uid=32123"> Kavukamari</a> <br><br><br> <a href="/bbs/?pid=58201#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=32093 https://www.lexaloffle.com/bbs/?tid=32093 Sat, 20 Oct 2018 21:31:52 UTC Burger Game <p>Working on some sort of burger game, still figuring out the mechanics, but here's a random burger generator</p> <p> <table><tr><td> <a href="/bbs/?pid=58061#p"> <img src="/bbs/thumbs/pico58060.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=58061#p"> Untitled</a><br><br> by <a href="/bbs/?uid=32123"> Kavukamari</a> <br><br><br> <a href="/bbs/?pid=58061#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=32079 https://www.lexaloffle.com/bbs/?tid=32079 Wed, 17 Oct 2018 21:22:47 UTC Rudimentary Bouncy Balls <p>I feel like I make one of these every year or so, but it's a rudimentary physics engine for bouncy balls</p> <p> <table><tr><td> <a href="/bbs/?pid=58006#p"> <img src="/bbs/thumbs/pico58007.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=58006#p"> Rudimentary Bouncy Balls 0.2</a><br><br> by <a href="/bbs/?uid=32123"> Kavukamari</a> <br><br><br> <a href="/bbs/?pid=58006#p"> [Click to Play]</a> </td></tr></table> </p> <p>seems like randomly the balls are too fast to see, just restarting the cart seems to fix it<br /> (added particle count)<br /> old version:<br /> <table><tr><td> <a href="/bbs/?pid=58006#p"> <img src="/bbs/thumbs/pico58005.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=58006#p"> Rudimentary Bouncy Balls</a><br><br> by <a href="/bbs/?uid=32123"> Kavukamari</a> <br><br><br> <a href="/bbs/?pid=58006#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=32076 https://www.lexaloffle.com/bbs/?tid=32076 Tue, 16 Oct 2018 10:16:18 UTC duck sprite movement tests <p>was testing out rotation of sprites and found a small shorthand, still experimenting with this</p> <p>arrow keys to move duck</p> <p> <table><tr><td> <a href="/bbs/?pid=57990#p"> <img src="/bbs/thumbs/pico57995.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=57990#p"> duck sprite movement tests</a><br><br> by <a href="/bbs/?uid=32123"> Kavukamari</a> <br><br><br> <a href="/bbs/?pid=57990#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=32073 https://www.lexaloffle.com/bbs/?tid=32073 Mon, 15 Oct 2018 18:51:30 UTC