Log In  
Follow
gradualgames
Follow

Hi, we're Gradual Games. We make PICO-8 games. In the past, we made three full size NES games and released them on cartridge!

I've got an interesting bug. It only happens in PICO-8 itself. The bug can be reproduced with the following small program and reproduction steps:

function _init()
 menuitem(
  1,
  "switch weapon",
  function()
   --if (getthunder()==1) hwep=(hwep+1)%2
  end)
end

function _update()

end

function _draw()

end

Steps to reproduce:

  1. Run the program.
  2. Quit to console with ESC.
  3. Type:
    x=10

    Any variable will cause the bug.

  4. Type:
    resume
  5. Press enter to bring up in game menu. Choose "switch weapon"

  6. Observe crash. See image.
P#84237 2020-11-14 16:47 ( Edited 2020-11-15 13:50)

Cart #madwizard-3 | 2020-11-14 | Code ▽ | Embed ▽ | No License
12

This is a port of The Mad Wizard, an NES game by indie game developer Rob Bryant, originally released in 2014. The original NES ROM is available free from the developer on his website https://slydogstudios.org/ under "The Candelabra Epic." It is a metroidvania style adventure and if you know where everything is, has a substantial 1.5 hrs of gameplay in it. (longer if you don't know where things are!)

The evil summoner Amondus from The Order of the Talon has taken over Prim, Hekl's once happy homeland. And nothing drives a wizard more crazy than having their territory trampled on! Can you help Hekl defeat the enemies that Amondus has populated throughout the landscape? To do so, you will need to master the art of levitation, find magic spells that will assist you in reaching new areas, and upgrade your weapons. All of these will be necessary in order to give Hekl the power he needs to restore peace to Prim. Do you have what it takes? If you dare, venture into this, the first installment of the Candelabra series!

THE FIRST CHRONICLE

In the vast province of Prim lies a great forest known as The Primwoods. It is here that the powerful wizard alliance "The Order of the Talon" has made their expedition. Among them was Hekl, also known as "The Mad Crow" who was dismissed from the group due to his experiments with arcane scrolls and alchemy. It seems he has lost his mind attempting to master the art of flight and was expelled for his most ambitious nature.

THE SILENT OWL INCURSION

However, there may be more to the reason...
It seems Hekl knew something of the Order of the Talon that the archleader Amondus "the Silent Owl" did not approve of.
Amondus swiftly invaded Hekl's homeland, constructed a great floating palace in the sky, and used his powers of summoning to control a legion of evil.

RETRIBUTION OF A MADMAN

Amondus' intentions are unclear, but he has ordered his many goblin minions to steal Hekl's precious magic items and hide them throughout the land to deter Hekl's effort.

Hekl's only hope is to build up his magical powers, rid the area of all evil foes, and locate the legendary trident that is known as the TRI-CASTER to give him the means of reaching the Floating Palace to defeat Amondus and restore peace at once.

GET STARTED ON YOUR QUEST!

THE MAD WIZARD is a screen-by-screen, side-view, platform adventure game in which you guide the wizard "Hekl" throughout an open-ended fantasy world. The focus is on exploration, magic use, puzzle solving, and reaching areas through levitation. Along the way, Hekl will find hidden items to grant new abilities which will allow him to access more parts of the world.
You will be granted infinite continues to complete your quest. The game ends when Amondus is finally defeated.

BASIC CONTROLS

Moving around and about.

Left/Right: Use left/right to make Hekl walk in the desired direction.

Up/Down: Use to climb or descend ladders or choose on the continue screen.

LEVITATION CONTROLS

X(X): Press to levitate. Press again or hold to go higher after upgrade.

Left/Right: Use left/right to move in the direction while floating in the air.

Down: Press to cancel levitate to quickly fall back to the ground.

MAGIC ATTACK CONTROLS

Hekl can attack his foes using his strong magic. The range and power of attacking is upgraded by finding the mystical hidden diamonds.

O(Z): Press to fire the MAGIC MISSILE. This is the default attack.

Enter: Press to bring up the in-game menu. Select "SWITCH WEAPON" to switch between default missile and vertical lightning attack.

ADVANCED MAGIC CONTROLS

Special adventure abilities!

Up + X(X): Press to place the PRISM CUBE directly in front of Hekl.

Down + X(X): Press to summon the SPECTRAL BRIDGE when standing at a ledge.

Up + O(Z): Press to use Hekl's TELEPORTATION ability to zoom forward.

ABILITY ICONS DESCRIPTION

Identifying all icons in status bar at the bottom of the play screen.

[8x8]
The LIFE SPHERES. Number of hits Hekl can take.

[8x8]
Icon for the MAGIC MISSILE. Basic attack.

[8x8]
Number of LIVES that Hekl has. Gets 2 per continue.

[8x8]
Current level for ability. Full bar = max level.

[8x8]
Icon for XECROM'S THUNDER. Vertical attack.

[8x8]
Indicates having the spell of PRISM CUBE.

[8x8]
Indicates SPECTRAL BRIDGE magical ability.

[8x8]
Indicates TELEPORTATION warping skill.

[8x8]
Horizontal levitation upgraded by finding X scrolls.

[8x8]
Vertical levitation upgraded by finding Y scrolls.

[8x8]

Levitation speed. Can be doubled by finding S potion.

COLLECTIBLES AND UPGRADES

[8x8]
DIAMOND - Increases the attack power or distance of the magic missile.

[8x8]
XECROM'S THUNDER - Hekl casts a lightning bolt down from the heavens.

[8x8]
LIFE SPHERE - Increases the total amount of hit points permanently.

[8x8]
SCROLL - Levitate further. X scroll for horizontal. Y scroll for vertical.

[8x8]
S POTION - Will double Hekl's levitation speed.

SPECIAL MAGIC ABILITIES

The spells Hekl can learn! NOTE - Can only cast 1 spell at a time initially.

[8x8]
PRISM CUBE - Create a block to use as a shield or platform to stand on.

[8x8]
SPECTRAL BRIDGE - Casts a bridge of energy near a ledge for safe crossing.

[8x8]
TELEPORTATION - Projects Hekl's image forward to warp across the screen.

[8x8]
TRI-CASTER - All 3 spells can be cast at once!

EARLY AREAS OF EXPLORATION

HEKL'S HOME - A cabin in the central woods. The well in the backyard runs deeper than one might imagine.

THE PRIMWOODS - Dense forest of hundreds foot high trees, wooden bridges, a graveyard, and a river.

KAPLAN CAVERNS - Damp underground cave that's mined for its previous minerals.

THE ELDERWOOD - Largest and oldest tree in the world. The hollowed insides serve as the goblins' fortress.

INTERMEDIATE DANGER ZONES

RUINS OF KYR TEMPLE - A once proud sanctuary of stone pillars now collapsed and haunted by untrusted ones.

THE UNDER RIVER - Limestone tunnel of raging water rapids beneath the earth. Home to a race of lizardmen.

BRIMSTONE GROTTO - A blazing core deep beyond the roots. Here lies a legendary weapon and many fiery inhabitants.

FLOATING PALACE - The place of Amondus' great power. Soars high in the sky.

CREATURES OF THE PRIMWOODS

[8x8]
SNAKER - Venemous prowler. Can get up trees.

[8x8]
BONES - Undead warriors raised by Amondus.

[8x8]
GOBLIN - Annoying beings that run and climb.

[8x8]
BAT - Dangerous dweller of caves and the woods.

[8x8]
TRENT - Demon bush immune to some magic spells.

[8x8]
RAVEN - Fierce predator of the treetops.

[8x8]
GHOST - Guardian soul near sacred areas.

[8x8]
GARGOYLE - Awakened statues that drop skulls.

[8x8]
FIRE GOBLIN - Head resistant menace.

[8x8]
GOLEM - Stone foe capable of causing rockfalls.

[8x8]
LIZARDMAN - Uses spear and shield near water areas.

[8x8]
SALAMANDER - Fireproof. Tougher than the lizardman.

[8x8]
CHARWIT - A phoenix. Ultimate Gain of Strength!

[8x8]
BEANCY - Accursed zombie pirate captain.

[8x8]
FLERG - The ghost falcon. Pet of Beancy.

[8x8]
RANT - The golden gargoyle. Underworld general.

[8x8]
AMONDUS - The master summoner and ambitious leader of the Order of the Talon. Lives in a sky palace.

ADVICE FOR THE ADVENTURER

  • When Hekl flashes after taking damage, he will be momentarily invulnerable.

  • Always look for ladders or branches that lead off-screen. They could be a path to a new area.

  • If you find it difficult to avoid certain enemy attacks, you might not yet have enough speed.

  • Falling in water will reset the screen but no life points will be lost.

  • Tri-caster can combine blocks and bridges. Use it to go almost anywhere!

THE MAD WIZARD - CREATED BY

The Mad Wizard was created for the Nintendo Entertainment System by Sly Dog Studios (Rob Bryant) in 2014. It is well loved in the NES homebrew community as one of the most enjoyable homebrew titles ever released.

Porting it to the PICO-8 system has been one of the most enjoyable game development projects I've ever undertaken, and I am immensely grateful to the creator for giving me permission to do so, both for my own enjoyment and so that the game might be enjoyed by another enthusiastic audience.

Special thanks to Daniel Hwozdek for a thorough play test! Helped iron out quite a few differences and bugs!

P#83980 2020-11-08 15:00 ( Edited 2020-11-15 21:32)

The web player is fuzzy/anti-aliased in a recent release. Probably aware, but I didn't see an open bug about it.

P#81669 2020-09-10 19:56

Recently an option was added to change the width of tabs in PICO-8. I would like to have a config option to change all leading tabs to spaces (and the tab width would determine how many spaces) like many code editors do. There are trade offs between tabs and spaces and I tend to like to have absolute control over the vertical positioning of code. This is especially useful in PICO-8 so that the code ends up looking pretty when viewed including in the web code viewer. When I use tabs, if I have several clauses of an if lined up right underneath each other for example, they might not be underneath each other if a different tab width is selected from what I had used when I wrote the code. I'd like it to look the same as when I wrote it, in any editor.

I'm able to create pre-commit hooks and scripts to accomplish this for myself, but it'd be nice if it was built in as many code editors have the option.

P#77869 2020-06-10 01:39

Cart #dinkyking-8 | 2020-06-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
19

CONTROLS:
X - start the game, or jump
Z - swing the scepter if you have it
Arrows - walk left and right, or climb up and down ladders

This is Dinky King, my homage to the original Donkey Kong arcade. You are the Dinky King! You must save the Queen from the Jealous Jester. Walk and climb with the arrow keys, and jump with X (x)! If you find the King's magic scepter, press O (z) to whack the Jester's balls right back at him! Or, just jump over the balls. The Queen dropped her stuff! Make sure to grab it for her on the way. Arrest that Jester! And if you can...topple him to his doom in the last level. Difficulty increases slightly each time you complete all four levels.

Nothin' fancy, just a cute little homage.

Oh, and watch out for SOCK PUPPETS.

The music is a transcription of a riff from Yancey Stomp, by Jimmy Yancey. It's a great song, check it out here:
https://youtu.be/c4eQbeuX2Y0

Changelog:
6-9-20 (4th update today!): A couple more small tweaks, stop slinkies when winning level 2

6-9-20 (3rd update today!): Make sure flr is used for all calculations based on dif so timers don't skip the 0 condition. Make the highest difficulty level slightly easier so it is actually doable. (takes 8 times through all four levels...can you make it there???)

6-9-20 (2nd update today!): Make slinkies far less aggressive when first playing level 2, but make them respond to the difficulty setting so over time if you keep completing all 4 levels they will pick up speed.

6-9-20: Increase delay before sock puppets enter. Decrease volume of ladder and slinky sfx. Add press X message to title screen.

P#77779 2020-06-08 00:55 ( Edited 2020-06-10 01:32)

This bug may have been in place for the last several versions, not sure why I haven't reported it yet.

In older versions, hitting ctrl-z would show you your undone text change and then hitting ctrl-z again
would actually move the cursor to its previous position.

These actions appear to be combined in recent versions as the cursor will frequently jump away from the text
that I had changed.

A minor annoyance, but I think some other folks have noticed it talking in the discord.

P#75662 2020-04-30 21:50

I think line and rectangle drawing in the map editor are not working at the moment in 0.2.0. Circle is working however. Confirmed with some peeps in the discord. Sprite editor works for all shapes though.

P#74798 2020-04-15 23:38 ( Edited 2020-04-15 23:38)

The default for O and X is to be mapped to Z(O) X(X) C(O) V(X).

In keyconfig, if we change the mapping of O and X, it appears that you can only map one key code to O and X. Is there any way to produce an alternative multimapping in the config file? for example, maybe I want O to map to U and K and X to map to I and J. Is there any way to do this?

As far as I can tell, only the default state allows for a multimapping on O and X. Apologies if this is covered in the manual or elsewhere, I did search for this information but did not find anything.

P#66393 2019-08-05 18:41

Cart #gammaslice-2 | 2019-06-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Gamma Slice is a puzzle game based on cutting the corners of squares containing triangles. The triangles are of four different colors. When they match, they disappear. How many can you clear from the well after 20 cuts?

Controls:
Arrow keys - Position the scissors
O (Z) - Flip the scissors
X (X) - Cut

The scissors will cut along the diagonal of any given square and flip the triangles inside!

Code & Sound: Derek Andrews

Graphics: Jeff Barr

This game was a submission to Nerdery Game Jam 2019.

P#65112 2019-06-09 23:34 ( Edited 2019-06-30 13:20)

When PICO-8 launches now on my Mac, it no longer sizes itself appropriately so that it fills a window. It used to fill roughly 1/5th or so of the screen at a nice size that was not too small or too large and the 128x128 display would fit a square window. Now it is a smaller sized display with a lot of black letterboxing around it.

The latest build continues to work properly on windows, I'm only seeing this on Mac.

I did already try to delete the plist file associated with PICO-8, in case it was a local caching issue due to me derping with window resizing, but it continues to launch like this.

P#64680 2019-05-22 21:02 ( Edited 2019-05-22 21:03)

The following program, despite never adding a function to this table, sometimes has a function in the table. This was happening in a game of mine and I finally decided to try reproducing it with a tiny program and I have been able to.

cls()
nds={flr(rnd(4))}
for i=1,1000 do
 for k=1,flr(rnd(10)) do
  add(nds,flr(rnd(5)))
 end
 for j=1,1000 do
     nds={flr(rnd(4))}
     for d in all(nds) do
      if type(d)=='function' then
       print("function")
      end
     end
 end
end

I would never expect this program to ever print "function" yet, it does, and intermittently.

P#64550 2019-05-18 14:21 ( Edited 2019-05-18 14:22)

I started tinkering with an _update60 cart the other day and I was getting stuttery behavior.

Dug deep into possible performance bugs in my game. Then realized I had stuttery graphics (< 60 fps) in simpler cartridges.

Dug deep into updating drivers and BIOS on my Dell laptop. Still nothing. This laptop is from 2012, but is more powerful than my rpi3 which has no problem with _update60.


Then, I took a look at PICO-8's own config.txt file and found fullscreen_method. Tried method 2, which is actual fullscreen rather than stretching a window.

Totally resolved the issue.

How come 2 is not the default? Or maybe it is in fact the default and I'm forgetting having toyed with this months ago.

P#62752 2019-03-12 00:22 ( Edited 2019-03-12 00:24)

Cart #knoll-0 | 2019-03-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

1 Knoll.

P#62396 2019-03-02 03:32

Cart #hobobot-1 | 2020-07-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
25

Hobobot is about a robot that was destroyed and junked. But, his parts still work, and he wants to be whole again! Control each of Hobobot's two legs and two hands, and kick his head and get them all back to the torso!

Controls:
z - Switch hobobot piece under control.
x - Perform action related to the current piece. Legs can kick, hands can grab.
arrow keys/dpad - Move current hobobot piece left or right. Or, perform left/right action.
enter - Bring up in-game menu. You must use this to restart the current level if you get stuck.

The head cannot be controlled, you must kick it with one of the legs.

There are 16 levels in total, which progress from fairly obvious mechanic-practice levels to mind-bending puzzles.

Enjoy!

Originally released February 28th of 2019, I decided to make a few nice updates:

-Autosave so you can come back later. The puzzles are pretty tricky!
-New menu option for resetting the autosave progress.
-The first level hopefully will do a better job of teaching new players how the mechanics work.
-Kicking the head is now indicated by a small flashing kicking leg icon.
-Kicking has an extra animation frame to distinguish from the hopping animation. (Thanks discord peeps!)
-Grabbing a switch with the hand now is a toggle. Previously you had to hold down X while using arrow keys---this felt awkward---takes some mental load off of how to execute this mechanic.
-If a piece falls below the screen, an error sound is played and the level is restarted.

P#62308 2019-02-28 01:43 ( Edited 2020-07-14 02:02)

I love the new code display on the web player. I noticed one graphical artifact, which does not get in the way of reading the code but is nonetheless somewhat unpleasant. It appears like a second scrollbar, but is non-functional. See attached photo.

P#61308 2019-01-28 19:45

Sometimes when I play a cartridge from the web player from my phone, PICO-8 will show the splash screen and boot text, and then it will stop before playing the cart, printing the message: "invalid cart[ridge?] format." The issue can be worked around by refreshing, but whether it will then successfully boot appears to be intermittent and may require several refreshes. I have not seen the issue for a couple of days; but I realized I had not reported this nor had I seen it reported, so I thought it would be good to make a thread about it.

P#60657 2019-01-07 16:25

Sorry if this is a duplicate, but I could not find my precise issue in the bugs discussion.

Running

Cart #snowman-5 | 2019-01-01 | Code ▽ | Embed ▽ | No License
10
in Chrome on Windows 7, I notice that if I navigate away from the tab and then back, that while I was not viewing the tab, graphics updates do not proceed. However, music continues. This breaks carts which rely on stat(20), stat(24), stat(26) etc. It is not a problem for me because I prefer to remain engaged with a cart as long as I am playing it anyway, but I am not certain if this issue was present prior to the recent updates or not.

P#60529 2019-01-03 14:15 ( Edited 2019-01-03 14:15)

Cart #snowman-5 | 2019-01-01 | Code ▽ | Embed ▽ | No License
10

This is a little animation/transcription of Walking in the Air from "The Snowman," an animated film from 1982 that I must have first seen in about 1987 or so. I recently watched this film again and it left a really strong impression on me, and I felt I had to make this little PICO-8 cart celebrating it.

Update 1-1-19:
Happy New Year! I made a few more improvements to the karaoke animation so the text scrolls more smoothly, the currently sung line is highlighted by a drop shadow as the ball slides across it. After more testing it looks like the code for tracking elapsed ticks is working great on all platforms. (except if you navigate away from PICO-8, there seem to be issues but it appears to affect other carts too not just mine?)

Update 12-31-18:
I added a karaoke style animation above the syllables of the words, and scroll the text so it is easy to sing along with. This was a little tricky to get working. I used stat(24) and stat(26) and associated ticks values with syllables, but it does not perfectly advance in lockstep to the 30 fps update so I had to fudge things a bit. But it now seems to be working well on Windows and on Mac, we'll see how well it does on web.

P#60261 2018-12-22 21:50 ( Edited 2019-01-01 16:44)

I wanted to see the code from the following cart: https://lexaloffle.com/bbs/?tid=27636

I am unable to view the code from the bbs as previously.

Also, searching for "small text" from within splore results in "COULD NOT CONNECT TO BBS" even though I'm able to refresh other parts of splore such as featured, new, etc.

Thanks! (as a workaround, I'll just download the png)

P#59872 2018-12-10 13:41 ( Edited 2018-12-10 13:42)

In the game I'm building, I often have a need for an entity to basically make the map solid and impassable at a given location, but in the actual map editor these spaces would all be empty. Since the "flags" all reside in sprites, it seems the only way I could have dynamic collision flags or other metadata would be to use my own collision map. It would first be built from the map itself, then used dynamically thereafter by entities that need it.

It seems like a sensible thing to do and I am curious if anyone else has done this for similar reasons.

P#51039 2018-03-30 08:35 ( Edited 2018-03-31 01:51)

View Older Posts
Follow Lexaloffle:        
Generated 2020-12-04 11:11 | 0.158s | 4194k | Q:139