Log In  

BBS > Community Superblog
All | Following | GIFs | Off-site

I was thinking if you can refund Pico 8 because I can't get it to work

9 comments


by DarX
Cart #syejidef-0 | 2023-11-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

2
2 comments


Cart #xpbd-0 | 2023-11-05 | Code ▽ | Embed ▽ | No License
4

Library

This is a library to simulate physics using the eXtended Position Based Dynamics (XPBD) methodology.

xpbd.p8

  • page 0, library - 1368 tokens
  • page 1, demo - 698 tokens

Demo

It contains the following demos you can access with the left and right keys:

  • a single bead on a ring;
  • multiple beads on a ring;
  • a squishy square;
  • and an about page with particles.

The bead examples are ports of Matthias Muller's [ten minute physics][10min] examples.

Usage

Include the first page for the library contents without any demo code.

#include xpbd.p8:0

function _init()
  local a = particle:new { pos = vec(64, 64) } }
  local b = particle:new { pos = vec(74, 64) } }

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=136950#p)
4
1 comment


Cart #enigma-5 | 2023-11-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Hi,
Im at Ada Tech School and really beginner to code moreover on Lua and pico8. In team of 3 we have to make a game on pico8 and this what we do with my 2 mates Arthur and Lucas in 2 weeks.
I hope you will enjoy it, please be indulgent all of us never touch to pico8 before.

Thanks for your time.

2
0 comments


Cart #av001-0 | 2023-10-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Uma breve aventura em texto feita rapidamente para a primeira avaliação do curso que estou participando sobre lógica de programação. Apenas registrando o que estou fazendo.

0 comments


Cart #twirltopia-0 | 2023-10-29 | Code ▽ | Embed ▽ | No License
1

this is a small WIP puzzle game that gets very tricky very fast

1
2 comments


I'm on a two-week trip, and my only PC during my time away from home is a small Chromebook (IdeaPad Duet by Lenovo). Until I was in a hotel room and started installing PICO-8 for fun, I completely forgot that the computer's CPU was ARM, not Intel. Fortunately, there are several variations for Raspberry Pi. I discovered that 'pico8_64' among them works flawlessly on my ARM Chromebook. All I had to do was install 'libsdl2-2.0-0' using good old apt-get.

1
0 comments


I've started to dip my toe into thinking about token minimization. Now I write most of my code in Emacs' pico8-mode, which I love since it presents the code in the same font as pico-8 so I don't feel I've strayed too far.

But I've been aching for a way to count tokens outside of pico8's editor. I found the p8tool which can do that and more, so I wrote this elisp function to make it accessible for me within Emacs.

(defun pico8-token-count (beginning end)
    "Calculate the number of pico-8 tokens in the file or region."
    (interactive "r")
    (let ((path (if (use-region-p)
                  (let ((temp-file (make-temp-file "token-count-" nil ".p8")))
                      (write-region "pico-8 cartridge // http://www.pico-8.com\nversion 5\n__lua__\n" nil temp-file)
                      (write-region beginning end temp-file t)

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=136058#p)
1
1 comment


I've decided to use chroma.js (https://gka.github.io/chroma.js/) to obtain palette colors that are closer to what the human eye perceives. This greatly improves the accuracy of the original colors. Now my photo of supper looks delicious...

3
0 comments


Hello,
I own a Miiyo mini plus, rg nano and an powkiddy rg30.
Is it possibly to use my official pico8 license on that devices?
Or is that not possible because that devices are not windows/linux based?

1
2 comments


Cart #spoopybeat-0 | 2023-10-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

halloween is coming up so i decided to make a music for that reason

its simple music, but on halloween, ill do an even spookier thing (get ready for that)

anyway, have a happy halloween, and hopefully the same for every other day

1
0 comments


yes, this is totally a real recording of pico-8, nothing wrong here

2 comments


Hey folks! I'm trying to get Pico 8 running on my ODriod Go Advance running Batocera 37. When I select a cart and run it using "lexaloffle PICO8 OFFICIAL", it does nothing. I have exhausted all Google sources. I followed the Pico 8 wiki entry instructions on the Batocera site. The log says I'm getting this error: FileNotFoundError: [Errno 2] No such file or directory: '/userdata/bios/pico-8/pico8' However there is clearly a pico-8 directory. I did set execute permissions on the pico8 file. Any thoughts?

1 comment


Cart #musitokipona-0 | 2023-10-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I'm currently learning Toki Pona, and made a
little multiple choice game to help me memorize the vocab.

0 comments


Wrote logic for encoding custom draw palettes, and additional 48 color virtual palette (by tiling) for my little encoder.
The tiling needs a lot of fine-tuning per an image, but I begin to know how...

3
0 comments


Hey everyone!

I've been messing around with picotron, and some people keep saying (including myself) that they hope for more buttons to work with or more input methods, but i've discovered something interesting that anyone can use! (until api changes)

I've made a keyboard tester that is fully commented out, and explains how it works and how get_key works and how to use it. to run the cart, click "show" below and copypaste code into picotron, then run it.

-- get_key_<state/pressed> usage example
-- made by antibrain

-- define list of all supported key names

keys={"1","2","3","4","5","6","7","8","9","0",
       "q","w","e","r","t","y","u","i","o","p",
       "a","s","d","f","g","h","j","k","l",
       "z","x","c","v","b","n","m",
       "[","]","shift","space","backspace"}

--define vars

currentkeyname=""
keystr=""
keyoffset=0
kpressed=true
ikd=false

-- get_key usage:

-- get_key_pressed(key) checks if key "key" is pressed and returns "true" for the frame that key "key" is pressed.
-- get_key_state(key) returns 1 if key "key" is held. if key "key" isnt held, returns "nil" 

-- "q", "1", "space", "backspace" are all valid key names.
-- "Q", "!", "^", "`" are not valid key names.

-- lowercase letters, numbers, and control keys (space, alt, backspace, etc) are all valid key names
-- uppercase letters, symbols, F keys and hotkeys are NOT valid key names.
-- if you want to use symbols (eg. shift+4=$), you can check if shift is held, then change output chars while it is.

-- an easy way to check for all keys is to make a table of all supported keynames, then iterate over it.

-- main update loop (30fps)

function _update()

    -- clear screen and reset drawing vars

    cls()
    kstrx=6
    kstry=20

    --for every key in keys, run key checking script

    for i=1,#keys do

        -- check if key "keys[i]" is held and set it to currentkey
        currentkey=get_key_state(keys[i])

        -- if current key isnt held, set it to 0 so future calculations dont die
        if currentkey==nil then currentkey=0 end    

        -- if current key is held, then set its name to currentkeyname for later
        if currentkey==1 then currentkeyname=keys[i] end

        -- if key string length in pixels is longer than screen length, move it back by 476 ish pixels
        if (kstrx-(keyoffset*5))+(#keystr*5)>480 then kstrx=6 kstry+=8 j=#keystr-keyoffset keyoffset=#keystr end
        if (#keystr<(keyoffset)) then keyoffset-=j end

        -- display all keys and change its color to red if key is held
        print(keys[i],6+(i*6),6,currentkey+7)

        -- draw line at next char in keystr to show where next char will go
        if sub(tostr(flr(time())/2),-1)=="5" then
        line(((#keystr+1)*5)-keyoffset*5,kstry+8,(((#keystr+1)*5)+4)-keyoffset*5,kstry+8,currentkey+7)
        end
        -- draw key string at kstrx,kstry in hyperlink blue
        print(keystr,kstrx-(keyoffset*5),kstry,28)

        -- if a key hasnt been pressed this frame
        if ikd==false then
            -- set ikd to true if one is
            ikd=get_key_pressed(keys[i])
        end

        -- if a key has been pressed this frame
        if ikd==true then

            -- set space to " " so that it doesnt just add the word "space" to keystr
            if currentkeyname=="space" then currentkeyname=" " end

            -- if backspace has been pressed, set keyname to "" so it doesnt print anything, then remove one char from end of keystr by setting keystr to substring of keystr from char 0 to char #keystr minus 1
            if currentkeyname=="backspace" then currentkeyname="" keystr=sub(keystr,0,#keystr-1) end
            keystr=keystr..currentkeyname

            --reset key vars
            currentkeyname=""
            ikd=false
        end
    end
end

[ Continue Reading.. ]

2
0 comments


Is there a way to run two pieces of code at the same time?
Thanks in advance :)

2 comments


Cart #honakugiwu-0 | 2023-10-06 | Code ▽ | Embed ▽ | No License

Pixel Wielders

A dueling wizards game for two players.

Be the last wizard standing.

Controls

Both Keyboard and/or Controllers work

Keyboard Player 1

  • Movement - Arrow Keys adjust cursor position
  • x - changes spell
  • z - casts spell

Keyboard Player 2

  • Movement - SEDF (left-up-down-right)
  • a -changes spell
  • left-shift - casts spell

Your spells from left to right are:

  • place boulder (p.s. game cannot handle many of them)
  • gravity well (attractor)
  • increase temperatue
  • push (in the direction of your opponent)
0 comments


I'm almost done with the game!

...that felt really weird to say...

Anyways, the game is almost done, so this will be my last devlog! I'll also keep this one exclusive to the bbs, so I'll make this one count!

Here is everything that I CAN tell you:

Scanning now is how I want it.
Redzones aren't the only thing to worry about...
You'll have at least one ally during the game.
You can't run forever, and wont have to in the end.
Your guiding light costs 2.99 at best buy

Look forward to the release!

1
0 comments


How do I make the player 2 keys work? I'm trying to make s and f the movement for p2 but it won't work. It's just a little game movement thing. The code is here:

function _init()
position = 63
p = 63
end

function _update()
if btn(➡️) then
position+=1
end
if btn(⬅️) then
position-=1
end
if btn() then
p-=1
end
if btn() then
p+=1
end
end

function _draw()
cls()
spr(1,position,63)
player1score = 0
player2score = 0
player1name = "wooper"
player2name = "quagsire"
print(player1name)
print(player1score)
print(player2name)
print(player2score)
spr(2,p,73)
end

3 comments




Top    Load More Posts ->