Feature Overview
INRNG() Tests if the value is between the lowest and highest values.
- Tests that the specified value is within a range.
- This function consumes 10 Token.
--[true] in range value inrng(5,1,10) --[true] lowest range value inrng(1,1,10) --[true] highest range value inrng(10,1,10) --[false] out of range value inrng(0,1,10) --Player:1 any key inrng(btn(),0x1,0xff) --Player:2 any key inrng(btn(),0x100,0xff00) |
This function is included in the KNUTIL library.
release note

You're trapped inside evur's castle and the only way to get out is by guiding a ball through its walls!
Controls:
- O (Z) - Continue/Fire ball
- X - Retry
- Left/Right - Adjust angle
- Up/Down - Adjust strength
Pro tip: You get 2 points per life remaining, when ending the level.
You can also find the game on itch.io here and donate some money if you want to!
Have fun!

Having seen @loanwulf's offering here:
https://www.lexaloffle.com/bbs/?tid=48345
I decided to go ahead and show off an unfinished cart I was working on HERE back in March of 2022:
Press 🅾️ to show Spock's communication card.
There is code, graphics, music, and sound effects in this cart. Feel free to examine them all.
For graphics there is the Enterprise, Doomsday Machine, Planets, Starbase, "Star Trek" text, and 32x32 portraits of Kirk, Doctor McCoy, Spock, Lieutenant Uhura, Scotty, And Admiral Hanson.
For audio there is the Star Trek theme I started, Phasers in different pitches to show if they are the handheld variety or coming directly from the Enterprise, Transporter thrum, Computer sounds and pitches, Warp Speed, "Panic" theme, "Lost game" theme, and a few other bits for communication.

Hey @zep! So I'm on latest of writing this (0.2.4c) and twice now I've gotten segfaults when I try to save? (I think? my memory is fuzzy..)
I'm not entirely sure what parts of the reports I should send over but both say:
Notes: Translocated Process
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [780]
VM Regions Near 0:
-->
__TEXT 102b54000-102c94000 [ 1280K] r-x/r-x SM=COW /var/folders/*/PICO-8.app/Contents/MacOS/pico8
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.lexaloffle.pico8 0x0000000102c435d8 codo_save_pico8_cart_to_file + 3800
1 com.lexaloffle.pico8 0x0000000102c436b7 codo_save_pico8_cart + 55
[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=113739#p) |
While pico8-lua itself can handle even 0x7fff arguments being passed to a function (easy to see via unpack, for example), peek and poke seem to only handle up to 0x2000.
E.g. peek(0x8000, 0x2001) returns 0x2000 values instead of 0x2001
And poke(0x8000, <0x2001 values>) only pokes addresses up to 0x9fff

Demo of Markov Chain Process
Hey everyone, this is my first cart posted to the forums.
I made this tech demo thing to try out Markov Chain modeling, and thought the result was worth sharing.
What is a Markov Model?
A Markov Model or Markov Chain is a process by which an object changes states, and the chance of a change of state is dependent only on the state the object is currently in. At every step (in our case a frame) there is a chance that the object changes states. Each state change can have different chances of occurring. If no state change occurs, the object remains in its current state.
What is this cart?
This cart is just a little demo I made to demonstrate the Markov Chain process. It uses four orbs as objects, each with four different states: move up and down, move left and right, change size, or change color.
Controls
-Shoot the bullseye to start.
-Mouse to aim.
-Left mouse button to shoot.
-X or Z to restart.
Rules
-The goal is to have the highest score and highest accuracy% possible.
-The yellow ducks are worth 10 points and the target is worth 50 points.
-Avoid hitting the green duck as it will deduct 50 points.
Info
This is my first Pico-8 game so any feedback or suggestions will be much appreciated. It is a carnival style shooting gallery. I had some difficulty getting the collision to work with all of the objects and I am still looking for ways to improve it, especially with making the green duck block the collision for the target. The collision I am currently using is the circle-based collision from the Bridgs tutorial series.

This is an older project that I made sometime ago but never quite finished. So I decided to finally finish it and post it here (I have lots of random projects that I never finished, maybe I'll post them later).
Anyway, this is a pretty simple game where you need to "munch" blocks by pressing corresponding button (left, right, up, down, X and O). Basically something you would expect to see in a Mario Party game. If you don't eat the blocks fast enough or make misinputs, your health bar will go down. The game gets harder as it goes.
In the start menu there are options to turn screenshake on/off and also to turn rubble particles on/off. Not much else to say, it's a very simple game. But even then, I'm happy how the conveyor belt looks, it took a lot of trial and error.
This is just another block breaker. I wanted to make one for a long time now. This one is tiny, fast-paced and unforgiven.
The first three stages are always static. After that you get randomized levels. The blocks with the exclamation marks need two hits and are shooting at you when you remove them. Every few levels there is a boss block to defeat.
There are four different extras to pick up:
Red pill: laser (destroy bricks in front of the bat)
Blue pill: Super ball (moves through bricks)
Yellow pill: Closes the wall at the bottom of the screen for a short time so it's save for the ball to hit the bottom edge.
Green pill: Glue that glues the ball on your bat for two times.

Inspired by the Deus Ex Human Revolution hacking minigame, I came out with a design for a procedurally generated spin on it, and decided to give it a go and try to make it into a finished game.
The rules are simple, hack the grid node by node and arrive at the destination node (green node), whilst capturing yellow bonus nodes (if you can) that give you money and additional powerups.
For more in depth rules, an in-game help screen is available ;).
Controls:
Mouse to do everything
Z - Select node / Activate powerup
X - Switch from node selection to powerup selection
The game is not 100% balanced and it could potentially turn out to be too easy or too hard. Feedback is appreciated.
Have fun! ;)
CHANGELOG
-
v1.0
Initial version -
v1.1
Added controller support -
v1.11
Fixed icapt powerup alerting the enemy
Fixed button prompts in main menu - v1.12
Help accessible using keyboard commands





1 comment









.png)


