Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Hi @zep, found a parser bug for ya:

for --[[a]]e=0,1 do print(e) end
print(fore)

expected: 0 1 [nil] (this is what lua 5.4 outputs)
observed: [nil] 0

pico-8's highlighting works correctly, but the runtime seems to see this somehow:

fore=0,1

do
  print(e)
end

system: linux / pico8 0.2.5g


I ran into this while using shrinko8's annotations (for --[[preserve]]e=0,1 do)

Workaround: add an extra space (for --[[preserve]] e=0,1 do)


edit: ah! this thread has more cases / info: https://www.lexaloffle.com/bbs/?tid=51618

1
0 comments


Cart #isomine-0 | 2023-10-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
34

I was inspired by The Science Elf on YouTube creating Minecraft on a calculator so I thought I'd make my own little version for pico-8, it is completely playable using the base pico-8 controls so it does suffer slightly as limited on buttons and didn't want too many complex button combos.

I don't see this as much more than a little time waster game but I hope you enjoy it and I'd love to see any builds made in it. Redstone does work although it most likely will have issues, pistons work too although same deal expect issues.

I did make sure basic circuitry would be doable with the Redstone, so there are Redstone torches exclusively for NOT gates, there should be enough there for some cool logic things such as binary adders but it will probably be a bit annoying to place.

34
8 comments


Cart #flyuntildie-0 | 2023-10-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

fly until you die.

5
0 comments


@zep if you open this cart in pico8 and save it, pico8 inserts an extra byte at the end (0xff) (this is wrong, but additionally it is very confusing because my text editor thinks the text encoding has changed and starts displaying weird unicode everywhere)

pico-8 cartridge // http://www.pico-8.com
version 41
__lua__
?'hi'
__meta:title__
cooltitle

After some minimal testing, the conditions necessary seem to be:

  1. the file ends with a __meta__ section (__gfx__ doesn't trigger the bug)
  2. the file does not have a trailing newline (the last byte of this particular file is 'e', not '\n')

platform: linux / pico8: 0.2.5g

1
1 comment


A simple way to break Pico-8's palette.

Changing the screen palette using poke(0x5f2e, 1) and then changing the red or dark red / purple colours, then running, exiting, and going to the sprite tab results in the above image. The red and dark red colours get paled in by Pico-8.

Thought it would be an interesting first topic. Have a good day!

0 comments


Cart #brams-0 | 2023-09-30 | Code ▽ | Embed ▽ | No License
5

Little Boo Games
Bram’s Daydreams

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

5
2 comments


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

2 comments


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

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!

1
0 comments


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

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

1
0 comments


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


Will not answer questions about the variable names

3
2 comments


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

1 comment


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

MOCE//CPCL bur celeste classic

A Claustrophobic Nightmare in classic ver.

verified by me

13
19 comments


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

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()

[ Continue Reading.. ]

2
0 comments


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

6
1 comment


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

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

2
1 comment


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

0 comments


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

7
1 comment




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)

[ Continue Reading.. ]

1
8 comments


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

[ Continue Reading.. ]

132
42 comments




Top    Load More Posts ->