Log In  
Follow
bilodau
[ :: Read More :: ]

Hi,

I'm currently working on my custom editor to edit tiles in one of my game, using reload and cstore functions from another cart. But there's something I don't know how to do. I want it to detect if the other cart is present when I launch the editor cart, and output an error message if it isn't. Can someone help me?

Thanks in advance

bilodau

P#127003 2023-03-12 00:04

[ :: Read More :: ]

I've been trying ways to take a specific sprite and replace all of them on the map with another sprite.

Here are two methods I figured out.

Cart #set_all1-0 | 2023-02-24 | Code ▽ | Embed ▽ | No License
1


This here is the first method and the one I use in my Pico-8 game "Marley The Adventurer". Probably the most simple and reliable method. It just scans all tiles one by one every time it wants to swap and immediatly replaces it by the other tile if the tile matches the one specified. It uses almost no extra RAM, but a lot of CPU usage. And if one of the tiles gets removed or if one gets added it will still react properly and replace the new tiles as well.
The function takes two parameters: set_all1(current_tile_sprite, new_tile_sprite)

Now for the next one

Cart #set_all2-0 | 2023-02-24 | Code ▽ | Embed ▽ | No License
1


This method works by scanning the whole map when you run the cart (which may lead to longer loading times) and stores the sprites coordinates into a variable. The tile replacing function simply reads the coordinates that were in memory and replaces them with a given sprite. This method is good when you have few tiles to replace, as it takes just a bit more RAM to save a lot of CPU, but if you want to replace a sprite that is drawn almost all over the map, this method will save a tiny bit of CPU and take a lot more RAM. It also takes more code and has the downside of not responding to map changes: it will still try to replace the coordinates in memory even if you made changes to the map.

The function that puts the sprites in memory:
sprites_in_memory = get_all2(sprite)

The function that sets a new sprite:
set_all2(sprites_in_memory, new_sprite)

What other ways do you have in mind? I'm kind of new to Pico-8 and I'd like to know what you would come up with.

P.S. There seems to be a bug with the amount of memory shown on the browser

P#126257 2023-02-24 23:47 ( Edited 2023-02-24 23:54)

[ :: Read More :: ]

I've been noticing a significant decrease of the RAM Pico-8 shows in stat(0) after rebooting it. I just updated from 0.2.5e to 0.2.5g and didn't notice this bug in 0.2.5e. But since I don't reboot often, I might have missed it in 0.2.5e.

Anyway, this bug might be new. Here are some pictures to show you the RAM usage as shown by stat(0) before and after rebooting Pico-8.

87KB before reboot, and 23KB after reboot.

The games still seem to play fine.

EDIT: The bug also affects version 0.2.5e

P#125596 2023-02-09 18:06 ( Edited 2023-02-09 20:44)

[ :: Read More :: ]

Cart #sort_animated-0 | 2023-07-11 | Code ▽ | Embed ▽ | No License
7

This here is the sort demo by Zep that I animated. I don't really like how the code looks, but it works very well.

Hope you enjoy

EDIT: Now without the one frame delay that was in the first version

bilodau

P#125259 2023-02-03 21:58 ( Edited 2023-07-11 00:08)

[ :: Read More :: ]

I'm trying to play some pico-8 games online on my Galaxy A8, and the sound sounds horrible. My Galaxy Tab S6 doesn't have this problem.

P#124079 2023-01-11 03:24

[ :: Read More :: ]

Cart #marley_beta-27 | 2024-03-09 | Code ▽ | Embed ▽ | No License
14

Here's a little game I'm currently working on. My first Pico-8 game.
Guide Marley through a fun little adventure.

I started from scratch and made everything myself. I also composed the music.
I think that all these hours of work pretty much paid off, and I'm generally proud of the result.

I'd like to know what you think of it, and if you find any bugs. I'm open to criticism, so tell me what you like and what you don't.

Special thanks to @dw817 and @merwok who gave me tips to optimize the game.

Have fun!

bilodau

P.S. Here's the very first Marley version I uploaded on this website. Originally uploaded on Jan 10 2023.

There is a known bug in it if you try interact with the vault door while the vault door return prompt is shown and you press x. Which may lead to Marley teleporting at the wrong spot or even to a softlock.

Cart #marley0_1-0 | 2023-02-26 | Code ▽ | Embed ▽ | No License
14

P#124077 2023-01-11 02:07 ( Edited 2024-03-09 00:20)