Log In  
BBS > Lexaloffle Community Superblog
This is a combined feed of all Lexaloffle user blogs. For Lexaloffle-related news, see @zep's blog.

All | Following | PICO-8 | Voxatron | General | Off-site
:: Unfold ::

How do I switch the roles of the background gray blocks with all the floor pieces? I am quite stuck and tried myself, it didn't work

P#135177 2023-09-30 22:34 ( Edited 2023-09-30 22:35)
:: Unfold ::

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

This is a game I think I want to continue making.
You're a robot with a gun.
I'll leave out the story details for now..

Press X to shoot
Press O to interact with things (like doors)

Let me know what you think and if you have any cool ideas!

P#135172 2023-09-30 20:32
:: Unfold ::

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

first game using pico8, just snake.
remember to like, comment, and subscribe.

P#135170 2023-09-30 20:06
:: Unfold ::

Cart #bizinasowi-1 | 2023-09-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Will not answer questions about the variable names

P#135168 2023-09-30 19:27 ( Edited 2023-09-30 19:32)
:: Unfold ::

Hello, I accidentally deleted my thread that had my main menu from a multi-cart game, and now my game doesn't function as intended. Is there any way to get the thread back?

https://www.lexaloffle.com/bbs/cart_info.php?cid=brams

P#135160 2023-09-30 15:14
:: Unfold ::

Cart #mocecpcl-0 | 2023-09-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

MOCE//CPCL bur celeste classic

A Claustrophobic Nightmare in classic ver.

verified by me

P#135154 2023-09-30 12:03
:: Unfold ::

Cart #physics_attempt-0 | 2023-09-30 | Code ▽ | Embed ▽ | No License
1

i'm prepared for explanations that may contain math.
i have been working on this for too long over many attempts. it kinda works but there are definitely still issues.

i'm having problems with...

  • normal calculations being off only some of the time
  • when a shape returns to it's normal size, another the shape it collided with previously will get stuck inside
  • shapes hovering 1 pixel over the ground???
  • shapes are very bouncy
  • shapes will not stay on other shapes (line segments can't collide with singular points)
  • jiggle (i'll implement damping later on.)
  • and cpu (not a priority yet, AABB tree later)

there are some comments that will hopefully help you find the issues in constrain() and shape_collision()

thanks

P#135145 2023-09-30 07:04 ( Edited 2023-09-30 07:13)
:: Unfold ::

Cart #buttlander-1 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#135131 2023-09-29 21:22 ( Edited 2023-09-29 21:23)
:: Unfold ::

PicoTron file browser

I was looking through picotron's code, and i got a completely random idea!
"hey, LS and CD are really annoying..."
"..."
"okay screw it"

So yeah, this is a port of my pico-8 filebrowser "Picobrowser", but for picotron! it supports everything picobrowser did, but this can view and edit files! You can also edit it to detect more filetypes.

How to use:

Click "Show" button below and copypaste the code into picotron, then run!

cls()
function _init() --main init loop
  mode=0 --define vars
  p=1 
  e=0
  c=0
  dir=""
  dirt="/"
  odir={}
end

function _update() --main update loop
  flip()
  if dirt==nil then dirt="/" end
   if mode==0 then --check if mode=0
    flip()
    fil=ls(dirt.."/") --set fil to current dir path
    if fil==nil then end
    dir=fil[p+e] --set dir to current file+extention+location
    mode=1 --set mode to 1
    a=#fil --set a to fil table
    if a>24 then --check if total # of files is more then display size
      a=24
    end
  elseif mode==1 then --check if mode=1
    flip()
    cls(1) --clear screen to color 1
    for i=1+e,a+e do --for i=1+selected file, (incremented by total files+scroll amount)
      t=fil[i] --set t to index number of current file
        c=2
      if sub(t,-4)==".p64" then --check for carts
        c=14
      elseif sub(t,-4)==".txt" then --txt
        c=6
      elseif sub(t,-4)==".lua" then --check for .lua
        c=12
      elseif sub(t,-4)==".sfx" then --check for sfx
        c=8
      elseif sub(t,-4)==".gfx" then -- gfx
        c=9
      elseif sub(t,-4)==".map" then --map
        c=23
      elseif sub(t,-4)==".pod" then --pods
        c=30
      else
       c=21
       t=fil[i].."/"
      end
      if p==i-e then
        t="\^i"..t 
      end 
      print(t,12,-4+(i-e)*10,c)
    end
    if btn(2) and p+e>1 then 
      p=p-1 
      if p==0 then
        p=1
        e=e-1
      end
    elseif btn(3) and p+e<#fil then
      p=p+1 
      if p==24 and p+e<#fil then
        p=23
        e=e+1 
      end
    elseif btn(1) then
     p=a
     e=abs(a-#fil)     
    elseif btn(0) then
     p=1
     e=0
    elseif btn(4) then
      flip()
      mode=2 
      add(odir,dirt)
    end
  elseif mode==2 then
    ext=sub(fil[p+e],-4)
    dir=fil[p+e]
    cls(1) 
    color(6) 
    if ext==".p64" then
     run_terminal_command("load ".."/"..dirt.."/"..fil[p+e])
     notifyload_stop_cart()
    elseif ext==".lua" or ext==".txt" then 
     run_terminal_command("code ".."/"..dirt.."/"..fil[p+e])
     notifyload_stop_cart()
    elseif ext==".gfx" then
     run_terminal_command("gfx ".."/"..dirt.."/"..fil[p+e])
     notifyload_stop_cart()
    elseif ext==".map" then
     run_terminal_command("map ".."/"..dirt.."/"..fil[p+e])
     notifyload_stop_cart()
    elseif ext==".sfx" then
     run_terminal_command("sfx ".."/"..dirt.."/"..fil[p+e])
     notifyload_stop_cart()
    end
    if dir==nil then 
     dir="/"
    elseif not(sub(ext,1,1)==".") then
     p=1
     e=0
     dirt=dirt.."/"..dir 
     mode=0
    end
  end 
 if p>a then p=a end
 rect(0,0,478,269,7)
 rect(1,1,479,268,7)
 line(0,252,480,252)
 line(0,251,480,251)
 if btn(5) then flip() dirt=odir[#odir] del(odir,odir[#odir]) mode=0 p=1 e=0 cls() flip() end --go back a dir on x press
 print("z to open selected file | x to go back a dir | up/down to scroll | left/right to goto end/start",3,253) --print instructions (end-user)
 print(dirt,3,260) 
 line(478,#fil+3,478,4,13)
 line(479,#fil+3,479,4,13)
 line(479,(p+e+3),470,(p+e+3),24) 
 if dir==nil then panic() end
 color(7)
end

function panic()
 dirt=odir[#odir]
 del(odir,odir[#odir])
 mode=0
 p=1
 e=0
 notify_user("Filetype not supported or Directory is Empty!!")
end

function notifyload_stop_cart()

 notify_user("Loaded "..dirt.."/"..fil[p+e].." !")
 stop()

end

Once again thank you to @dw817 for FreeRoamingDirectory, the cart that PicoBrowser was based off of.

Screenshots:


okyesiknowimsorryforneglectingmylidargameipromiseihaventforgotaboutitandimdefinitlynotforgettingaboutitnowits
notlikeivebeencompletelydistractedandforgotaboutthewholethinghahahahanononononoitsdefinitlyalmostdonenopenowa
yyeahimsureworkingonityeahsomuchprogressdontevenworryyourlittleheadimfineeverythingisfineandidefinitlydidntge
tdistractedandforgotaboutitentirelynononoiwouldneverdothatbecauseiamaresponsibleandsmartpersonwhoneverforgets
aboutprojectseveniftheyare2yearsinthemakingnonononononeverwouldineveriwouldntdothatinamillionyearshahahnonono

P#135128 2023-09-29 19:54 ( Edited 2023-09-29 23:58)
:: Unfold ::

Cart #nuhososuba-0 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

This is my first game in general, and the first time I try PICO8.
I am planning to make it more unique in the future, for now its basically snake.

PS: the text is in Portuguese for now

P#135127 2023-09-29 19:48 ( Edited 2023-09-29 19:48)
:: Unfold ::

Cart #gomugadeti-0 | 2023-09-29 | Code ▽ | Embed ▽ | No License

P#135125 2023-09-29 19:22
:: Unfold ::

Cart #blockbuster-2 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#135118 2023-09-29 18:52
:: Unfold ::
P#135110 2023-09-29 17:17
:: Unfold ::

im tryin to make a platformer base to use for future projects, but when travelling in positive directions, the collision is seemingly not detected until a full pixel further than it should be

            local xd=n.x+n.speed.x+n.w/2*sgn(n.speed.x)
            local yd=n.y+n.speed.y+n.h/2*sgn(n.speed.y)

            n.grounded=false
            n.walled=false

            if fget(mget(xd\8,(n.y+n.h/2)\8))==1 or fget(mget(xd\8,(n.y-n.h/2)\8))==1 then
                n.x=xd\8*8+(n.speed.x>0 and -1-n.w/2 or 8+n.w/2)
                n.walled=true
                n.speed.x=0
            end

            if fget(mget((n.x+n.w\2)\8,yd\8))==1 or fget(mget((n.x-n.w\2)\8,yd\8))==1 then
                n.y=yd\8*8+(n.speed.y>0 and -1-n.h/2 or 8+n.h/2)
                n.grounded=true
                n.speed.y=0
            end

            n.x+=n.speed.x
            n.y+=n.speed.y

negative velocity position readings(continuously accelerating by -0.005 pixels/second/second)
INFO: y=10
INFO: y=10
INFO: y=10
INFO: y=10
INFO: y=10
positive velocity position readings(continuously accelerating by 0.005 pixels/second/second)
INFO: y=29.7242
INFO: y=29.8109
INFO: y=29.9025
INFO: y=29.999
INFO: y=29

negative velocity position readings(given a constant velocity of -0.005 pixels/second while pressed against wall)
INFO: y=10
INFO: y=10
INFO: y=10
INFO: y=10
INFO: y=10
positive velocity position readings(given a constant velocity of 0.005 pixels/second while pressed against wall)
INFO: y=29.9844
INFO: y=29.9883
INFO: y=29.9922
INFO: y=29.9961
INFO: y=29

this happens at any speed/width/height combination, and the readings are from the last 5 frames before a collision is registered
i have a feeling this is because of flooring but i dont know how i would fix it :3

P#135108 2023-09-29 17:15 ( Edited 2023-09-29 17:16)
:: Unfold ::

Hi all,

I decided to create my own take on the PICO-8 Cheet Sheet. 👨‍💻🖼️

Inspired by @LightBWK's version - I wanted to try to make a 4K one using a clean, modern look.

Light Version

It was also important to me to have a matching "Dark Mode" variant, as that's my go-to style 🕶️

Dark Version

Main Features

  • 🖥️ 4K (3840x2160) Resolution
  • 🔠 Clear, Monospaced JetBrains Mono Font
  • 🔷 PICO-8 API up to v0.2.5g
  • 🎨 Full PICO-8 Palette (inc. "Secret" cols)
  • 🦓 Matching "Light" and "Dark" variants
  • ⌨️ All Major PICO-8 Keyboard Shortcuts
  • 🖌 FILLP() Mask + Glyph Patterns
  • 🔄 Turn-Based Angle + Trigonometry Primer
  • 🈂️ Full Character Set
  • 😺 Glyph List + Constant Values
  • 🐛 Debugging
  • +More!

Please let me know what you think (...especially if you spot any errors! 😬)

Below you will find links to high-res .PNG + .PDF exports of my cheat sheets, enjoy! 🤓

Downloads

Sources/Acknowledgements

Change History


v1.2 - Fixed dupe repeat..until (Thx @Ulquiro) + added new Debugging section
v1.1 - Updated char map to include top-row of P8SCII chars.
v1.0 - Initial release.

P#134802 2023-09-29 16:29 ( Edited 2023-09-29 18:28)
:: Unfold ::

Cart #oceanquaryum-1 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
Demo inspired by tweetcarts from @2darray and @gateeightyeight. 945 bytes
my personal oceanquaryum under the sea and under the bridge. for fun : https://www.youtube.com/watch?v=iXkaGt94Dwg

P#135100 2023-09-29 13:38
:: Unfold ::

Cart #picoblazer1k-0 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Picoblazer 1K: A #pico-8 homage to the epic 1986 Trailblazer for Commodore 64, in 1017 bytes of compressed lua code. Produced for the 2023 #pico1k jam.

Use the left and arrow keys to direct the ball to the end of the track, while avoiding pits. Red tiles will bounce the ball back while green ones will speed it up. Blue tiles will cause it to leap forward.

P#135094 2023-09-29 10:08 ( Edited 2023-09-30 21:32)
:: Unfold ::

Cart #sb_1800_v1-0 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

I recently finished a game for the Cre8 Jam. You control a robot through commands to move through and scan a 3d environment. I would have added a bit more or fixed it up better, but I'm about out of time for the jam and really low on tokens. Even after using special functions to lower the token count.

You can get more information through the HELP command, but the main commands are:

MOVE (direction) (amount)
TURN (left/right) (amount)
WAVE
SWITCH [name]
SCAN (dot size)

And another important one is RSCAN, which is just SCAN, but repeatedly scans.

I would highly recommend checking out the itch.io page, as its design is special for this game.
https://werxzy.itch.io/sb-1800 The source code for the game and the map editor are also available on the itch.io page.

P#135093 2023-09-29 08:48 ( Edited 2023-09-30 03:22)
:: Unfold ::

Cart #smoothride-0 | 2023-09-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

One button tiny physic-based platformer made in Pico 8 with code under 1024 compressed bytes, made for #Pico1k jam 2023

Use RIGHT ARROW to accelerate when on the ground
Release RIGHT ARROW to fall faster when in the air
Press UP ARROW to start a new level
Press ENTER and select SEED in the menu to start from level 1 if you want a fixed series of levels

Number on top left is a timer for your run of the level, counted in frames (at 60fps), on top right is the sum for all the levels in your session. For example a casual run of all the seeded levels from 1 to 10 took me 14027 frames. My PB for level 1 is 1071.

Source as p8 are available on https://nusan.itch.io/smooth-ride in two versions, the "comment" version is what I coded with additional comments, so it's readable but the "minimal" version uses a tool (https://thisismypassport.github.io/shrinko8/) to makes it even tinier, it's not readable but it fits into the 1k compressed bytes target

P#135090 2023-09-29 07:19 ( Edited 2023-09-29 10:37)
:: Unfold ::

Cart #goblinboneyard-4 | 2023-09-30 | Code ▽ | Embed ▽ | No License
1

Little Boo Games
Bram’s Daydreams

Goblins have stolen the marshmallow skulls from candy lake! You must find them!

(This is the 4th level from a 4 part children's series called 'Bram's Daydreams'.)

Level 4 / Goblin Boneyard
Collect the marshmallow skulls and watch out for goblins!

Controls: left, up, right, down

P#135083 2023-09-29 03:00 ( Edited 2023-09-30 13:28)
View Older Posts
Follow Lexaloffle:          
Generated 2023-09-30 23:20:48 | 0.181s | Q:91