Log In  

Cart #drowsypaul-3 | 2021-11-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


This is my very first pico 8 game.
It's very rough and I just wanted to see how it would go.

Paul is sleepy. You are paul. Get to bed and don't fall asleep on the floor.

The aim of this game is to get to your bed by dodging crazy obstacles!
But be careful!
You have twenty seconds before Paul falls asleep on the floor... collect coffee to prevent this from occurring!
Paul encounters invisible walls, blood-stained spikes, locked doors, bounce pads, and magical portals!

Will you help Paul get to bed?

P#100259 2021-11-17 08:53 ( Edited 2021-11-20 23:09)

When the PINK GAME OVER appears, @Hazi. Pressing either O or X (Z or X) does not do anything and stays locked here. Do you have an infinite loop somewhere ?

P#100277 2021-11-17 16:35 ( Edited 2021-11-17 16:36)

@dw817 thanks for picking up on the bug!
I guess I didn't optimize the game for bbs, I'll look into it right now and try to fix the problem.
What I've done is

if btn(5) then stop() end
P#100315 2021-11-19 04:59

Here, @Hazi. Just change that line to:

if btn(5) then cls() stop() end

Then the screen will clear to black at least if you select X to let you know it's over.

P#100399 2021-11-19 06:10

@dw817 I've gone ahead and done that.
Thanks for your help!

P#100461 2021-11-20 02:14

Good deal, @Hazi. You might even change that to:

if btnp(5) then
  cls()
  print("press ctrl+r to restart",18,60,7)
  repeat until forever
endif

Making use of STOP() online really does end the program and prevent you from pressing CTRL+R to restart it again. By looping forever, you have CTRL+R available to press and act upon.

P#100469 2021-11-20 03:15
1

Thanks, @dw817, this helped.
The only problem that I can't seem to fix is that the GAME OVER screen still shows when you press X. In the end I decided to call an _init() to bring you back to the title screen.

P#100510 2021-11-20 23:09

[Please log in to post a comment]