Log In  

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

Hi @zep!

pico8 0.2.6b / linux:

cls()
if (false)?1 --hi
print(2)
print(3)

expected output: 2 3
actual output: 3

Here's an altered version that works as expected:

cls()
if (false)?1
print(2)
print(3)

(this prints 2 3, as expected)


3 things seem required to trigger this bug:

  1. shorthand if
  2. shorthand print on the same line
  3. !! further text after the shorthand print (" --hi", in this example. but just a single trailing space triggers the bug too)

When these are all true, the next line seems to get scooped up into the shorthand line. This can include attaching an else to the wrong if, like in this more complicated example:

cls()
if false then
 if (false)?1 --hi
else
 print(2)
 print(3)
end
print(4)

expected output: 2 3 4
actual output: 4

3
1 comment


no idea if im making a post correctly here, never have before. but I was curious if there is any info how to open a downloaded cart for picotron to look at how things were done or change things?

1 comment


Cart #hookd-1 | 2024-05-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

first game I've worked on inside of pico-8, can't wait to keep working on it!

1
1 comment


Hi again!

Title is self explaining...

I'm out of sprites! I need to display what's on the other pages. How do I do that?

Hibou

1
3 comments


Hello good people of the Picotron! First time posting. I apologize if I<m not posting in the right forum, but I<m a bit lost in the current layout of the site.

I'm a amateur programmer who never went too far qith this hobby, so I thought maybe something meant to be "easy" like Picotron could be a thing for me, the eternal wannabe game designer.

My question to day is about tables.

I can<t quite get them to work. I use simple one dimension arrays, but I need more of a Pascal-type of record, and when I read the Lua documentation, it seems to be possible, but my code doesn<t compile when I try to create tables with more than one dimension or different types of variable. It<s a syntax problem. I know what I want to do, but I can't find the right syntax.

For instance, in my RPG, there will be a party of six characters. So I need a table with at least a string column for the name of the character, a number column for the character sprite number, one column each for the chacter<s abilities. At the end of the day, there will be a lot of data in that table.

[ Continue Reading.. ]

2 comments


Cart #deniskognedel-1 | 2024-05-06 | Embed ▽ | License: CC4-BY-NC-SA
13

portation from scratch of my Pico-8/tic80/lowresNX game in #picotron as deluxe arcade version.

controls: (<-) (->) (O-Z) shoot hammer.

gameplay: see the attract mode.

enjoy!

13
3 comments


Title says it all.
I'm making a horizontal scrolling game with a map 32 screen wide and 1 screen tall, and with the player using extra colors different from the enemy colors. (enemies can't be over or under the player).
For this, I'm using screen rotation, but now I can't use print to display text any more as it appears rotated.
Has anyone already implemented a 90° rotated print function ?

6 comments


Hi, I encountered a waveform corruption bug while trying to move SFX as part of a multi-composer collaboration project.

On version 0.2.6B

Reproduction steps:

1) Make a custom waveform in SFX 0
2) Make in SFX 1 make a sequence using SFX 0
3) Make in SFX 2 make a sequence using SFX 0
4) Move (cut and paste) SFX 0 to SFX 4
5) Move (cut and paste) SFX 1 to SFX 5
6) Move (cut and paste) SFX 2 to SFX 6
7) Check SFX 4, the data will be corrupted

It seems that this can happen with other combinations but this is the procedure that caused the bug to happen and is reproducible on a fresh cart.

The corruption seem to be an inversion of the sign of alternating sample of some sections of the wave

3
1 comment


Celeste but a black hole is chasing you.

Cart #hinutubize-0 | 2024-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

The black hole speeds up over time. Here is everything that increases it's speed:

  1. New level (Biggest increase in speed)
  2. Death
  3. Dashing (Smallest increase in speed)

Getting berries decreases speed.

If the hole is more than 2 levels away, it starts to get a speed multiplier.

The formula for speed goes something like this:

(distance is distance between blackhole and roof of current level)

(0.025level + 0.01 deaths + 0.005 dashes)/berries + ((floor(distance)256)*2)

0 comments


Cart #xhive-4 | 2024-06-27 | Code ▽ | Embed ▽ | No License
20


Xhive is a single stage retro Shoot 'em up. You control a spaceship across a procedurally generated scrolling level and try to destroy various enemies to get the highest score.

Mission

The origin of the hostile aliens has been found. Your job is to fly into the xeno hive with one of the best combat spaceship and kill everything.

Instructions

  • If you shoot, you move slower.
  • Colliding with the hive, aliens or their projectiles will damage your ship.
  • After you leave the hive, an NG+ starts.
  • Every run, the hive is procedurally generated.

Controls

  • Move: Arrow Keys

[ Continue Reading.. ]

20
14 comments


Cart #starstriker-2 | 2024-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Cart #starstriker-0 | 2024-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Controls:

X to shoot

Z to use your strawberry bombs

Arrow keys to move

The only power-ups are the strawberries, nothing else is a power-up.

Story:
You are a space fighter who is currently fighting in the war of Andromeda. You were told to go to fight a battle against the evil aliens and you were told that people would be joining you to fight. But nobody showed up. You are all alone fighting 20 waves of evil aliens. Can you do it? Can you defeat the Gorthen and end it all?

[ Continue Reading.. ]

6
8 comments


We definitely need an option to download carts in splore. I bought this for my steam deck expecting the standalone app to be, well, standalone. I have to reboot my whole system to access the web browser and file explorer needed to download and add carts. It's very frustrating that such an essential feature was ignored. I doubt there's any chance for a refund, so I guess I'll just have to beg for features that should have been included from the start. Maybe if I'm lucky it'll be added in less than a year. It's only been 9 so far..

Maybe this is overly salty, but it's very frustrating that an implied feature isn't actually present when it's the whole reason I paid for the standalone app in the first place. Buyer beware I guess...

7 comments


Cart #mamono_pico_fix-0 | 2024-05-06 | Code ▽ | Embed ▽ | No License
5

A bug fix version of mamono pico by @65c02
https://www.lexaloffle.com/bbs/?pid=128341

Fixed :

  • crashing at end of levels
  • impossible to win levels
  • not dying when killed by a monster that would have made you level up

Remaining known bugs :

  • you can mark a monster even after killing it, and this can disable showing the red number of the monster
  • some rare crashes from menu after game over, unknown cause.

Done :

  • damage is now the same as the original game

Todo :

  • blank pause menu
  • Remaining ennemy count in status bar
  • timer
  • high scores
  • Max difficulty
  • custom levels
  • wraparoud
  • mage (fireball chording)

[ Continue Reading.. ]

5
6 comments


I want to make my own raycaster game in picotron and I have been following this blog written for a pico-8 raycaster. I get an error when I run this and I am not sure what I should do to fix this issue. Help would be much appreciated.

Other than the code, all I did is make a sprite in slot 1 and draw a simple map in the map editor.

function _init()
	cam={
		x=12,
		y=12,
		a=0,
		w2d=2
	}
	scrx=0
end

function _update()
	controls()
end

function _draw()
	cls()
	map(0,0,0,0,16,16)
	circ(cam.x,cam.y,2,12)
	--for scrx=0,480 do
	--	raycast(cam,scrx)
	--end
	raycast(cam,240)
end

function controls()
	if btn(0) then
		cam.a+=0.01
	end
	if btn(1) then
		cam.a-=0.01
	end
	if btn(2) then
		cam.x+=cos(cam.a)*0.5
		cam.y+=sin(cam.a)*0.5
	end
	if btn(3) then
		cam.x+=cos(cam.a)*-0.25
		cam.y*=sin(cam.a)*-0.25
	end

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=147975#p)
6 comments


Cart #zap_bot-3 | 2024-05-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
14

About:

Zap-bot is an homage to the old Gameboy era cheap SBC (single board computer) handleds and their stupid little games, like the Classic and Brick Brick game!

This is a port of the shooter line filler game inside that. Your goal is to clear the lines for as long as you can last!

Controls:

Move with arrow keys left and right.

Shoot with X.

Brought to you by:

My awesome supporters over at Ko-fi! They allow me to pursue this niche hobby of mine! If you'd like more, consider hopping over to my Ko-fi page, where I share pixel art, game devlogs, postmortems, code rundowns, all that gamedev jazz! And if you can maybe drop in a coffee so I can make the next one faster!

[ Continue Reading.. ]

14
8 comments


Cart #flappy1398783-0 | 2024-05-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2


A flappy bird clone

Press x to fly/hop.
Press o to reset after gameover.

2
0 comments


Cart #totsugeki-0 | 2024-05-05 | Code ▽ | Embed ▽ | No License
2

Totsugeki is a celeste mod where you play as May from Guilty Gear.

Controls:
Arrow keys - Movement
Z/C - Jump
X - Totsugeki

Happy Birthday May!

Credits to Maddy Thorson and Noel Berry for the original Celeste Classic.

2
3 comments


Cart #tieless_tictactoe-1 | 2024-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Modified version of the classic Tic-Tac-Toe where there cannot be a tie!
Inspiration for this game came from a friend.
Enjoy!

[V1.1]

  • Fixed missing pixel on title screen
  • Added indication for which piece will fade away
  • Added warning sound and image for invalid placement
10
2 comments


DVD Bounce Screensaver!

Thought it would be hilarious to make one of these.
Customizable settings such as ball speed, starting color, and turning off the sound.

Cart #dvdbounce-0 | 2024-05-05 | Embed ▽ | License: CC4-BY-NC-SA
10

10
3 comments


If you all don't care again I need help with object pickups in my game when you pickup an object (artifact) you get a score of 1 point. What I need to know is how to add a spawner for that object and how to make the player pick it up.

Many thanks.

BTW I tried to use a YouTube tutorial with no luck

--pickups
function ipickups()
 pu={
 x=63,
 y=50,
 act=true,
 }
 artifacts=0
end

function upickups()
 if pu.act then
  if abs(px-pu.x)<=4 and abs(py-pu.y)<=4 then
   pu.act=false
 artifacts+=1
  end
 end
end

function dpickups()
 if pu.act then
  spr(6,pu.x,pu.y,4,4)
 end
 print("artifacts: "..artifacts)
end
3 comments




Top    Load More Posts ->