Log In  
Follow
El_Nicovw321

Coroutines are weird, they don't update properly sometimes, and I haven't found the issue as to why. I'm making a game that does heavy use of it, and it doesn't work properly. sometimes functions return nils when they shouldn't, or sometimes functions just ignore values they received. I don't think it's an issue in my part, I debugged everything and I simply didn't find an issue in my part. I tried to test if it was the CPU going above 100% that was the issue, so I did this test

function _init()
    func=function()
        cls()
        if key"a" then
            for i=0,1000000 do end
        end 
        print(stat"1",0,0,7)
    end
    routine=coroutine.create(func)

end

function _update()
--    func()
    coroutine.resume(routine)
end

function _draw()

end

yet it didn't detect my keypresses, or button presses if I changed it to btn(0/1/2/3/4/5). if I swapped the coroutine.resume(routine) to func() it worked.

[ Continue Reading.. ]

1
3 comments



Hi! Been starting my coding journey on Picotron and I found that while writing on my spanish keyboard, every time I accidentally pressed my ñ, ´ or even ¿ key I get garbage sent to my screen... maybe that can get checked out? it writes two weird placeholder(?) characters on any text input I was currently writing, and it leaves the cursor between those two after writing it.

On this image, I wrote "qwertyuiop´+ asdfghjklñ{} and ¿?"

0 comments



Hello there! I made this post as a tutorial on how to port your Linecraft world to Minecraft. Porting your world to Minecraft isn't really useful, but you can see your creations better than the 9x9x9 cube you are limited to see at once in the PICO-8 version.

1. Porting your world

First things first, let's convert your world! So, select one of your worlds, click on Options and click on Port to Minecraft. This will make a giant file named commands.mcfunction.p8l on your current directory. (That also means, this feature on BBS doesn't work, as you cannot access that file later on... sorry!) This file you have to put on a datapack for it to work.

But, let's not get too far ahead of ourselves. Once clicking the Port to Minecraft button, it will take you to a pre-port screen where you can enable or disable features of the port. These are the different available features:

  • Place borders: Places borders around the limits of the ported world to prevent any water from spilling out.
  • Use Slash: Creates a slash on every single command. This will make the game unable to read your datapack but you can still use the text file for something else, like executing it using a macro instead.

[ Continue Reading.. ]

1
2 comments



Fun little thing I made in about 3-4 hours of my free time. Made using defy audio string library in 8-bit mode.

Same old CJ! Busta! Straight busta!

Cart #gangster-1 | 2024-08-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

7
1 comment



This is a game I've been coding for a bit, Linecraft! This is my first and biggest demake (though I've been working in other non-published projects before) so I'm very excited that other people will try it!
Also, I'll keep it updated, so if you find any bug, leave it down below on the comments! I'll check them out and fix them in the following versions.

The sounds and music were made by Munchkin (thank you :D) and the code and graphics were made by me.

Thanks to kallanreed for his tline rotation function I used for the splash text in the game.

Thanks to Felice for their implementation of the OpenSimplex noise generator on PICO-8 that I used for the world generation in the game. The code may look a little different in my cart, but that's due to changes in development (back when I thought this game could be made in a single cart!).

[ Continue Reading.. ]

152
139 comments