Hi everyone,
I would like to call functions within a table from within a for loop. The type of loop I want to use is as follows;
for x=#enemy,1,-1 do enemy.restoreenemybg[x]() end |
No matter what combination I try, I just can't get it to work.
FYI - The reason I'm using this type of for loop is because I need to loop in reverse. The following version doesn't allow this.
for e in all(enemy) |
I would really appreciate any help on this.
Many thanks,
Old Man Winter and Santa Claus have been feuding all year. It started with yard signs and then things escalated. Now OMW is blowing up a big storm on Christmas Eve!
You, Jack Frost, must blow away the snow so that Santa can get out and make his deliveries.
Controls
Controls are simple. Just use 🅾️ (Z key on computer keyboard) to blow a puff air. This propels jack backward and changes the air currents to redirect the snow, hopefully away from Santa's house.
Credits
Art, SFX, music and coding by @bikibird
with easing functions borrowed from https://www.lexaloffle.com/bbs/?tid=40577
and tline rotation borrowed from
Eyebone has always been protective of the holidays, but a citywide blackout on Christmas Eve sends her over the edge.
TUTORIAL:
O/Z to shoot Eyebone's iconic candy canes
X to shoot Eyebone's Legendary Meter Attack
METER:
Increases every time an enemy is hit. Can be fired when halfway full. When completely full, the shot is larger and makes Eyebone invincible for a few seconds.
SCORE MULTIPLIERS
Having Reindeer- +1
Going over ten seconds without being hit- +2
Having 1 heart left- +5
Made for 2024 Pico 8 Advent Calendar.
A mod of celeste where you climb instead of dash.
Actually, it pretty much changes everything about the fundamental movement of the game entirely. Don't worry, the entire thing is very polished, and even tries to mimic the feel of the original maps.
Strongly inspired by the climbing in the modern Celeste.
PLEASE READ THE INFO BELOW THE CART AS IT IS CRUTIAL FOR UNDERSTANDING SOME FUNDIMENTAL CHANGES MADE TO THE GAME TO ALLOW IT TO HAVE NO DASH, AS WELL AS INFORMATION ON STAMINA AND CLIMBING.
Maybe I should call it CLIMBLESTE
v0.4 (8 berries):
Keys - Move
Z/C - Jump
X/V - Climb (When on wall)
Up - Grip (Holds on wall)
Down - Slide (Makes you rapidly go down wall, restores some stamina.)
Z/C - Wall Jump (When on wall)
Controls:
This mod reworks flying berries due to the lack of a dash. They now fly away if you take more than 10 seconds per level. This encourages you to speedrun the game to get all of the berries.
You are unable to slide or climb on ice.
Angel chest are the white chest (aren't fully implemented, don't appear in game) that have a flying berry inside.
You need Stamina to climb or jump around. The less stamina you have the less speed is reduced by wall slides.
Grey balloons can be bounced on, takes a small amount of stamina.
Things that reduce stamina:
-Wall jumping
-Climbing
-Griping
-Wall slides
-Jumping without full stamina (jumping with full stamina has no changes)
-Grey balloons
Things that increase stamina:
-Being on the ground
-Sliding with Down key
-Balloons
Stamina is represented by both hair color and the wheel next to you.
Red - Near full
Pink - Slightly depleted
Dark Pink - Half left
Light Grey - Less than half left
Blue - Very little left
Dark blue - Almost empty
Dark Grey - Empty
Note: Making the stamina wheel super smooth like that took like three hours. Had to learn pallet cycling.
previous versions:
https://www.lexaloffle.com/bbs/?tid=146059
Assemble the three parts of the ship and fill it with six fuel packs.
You can go through the margins of the screen and you will appear on the opposite side.
When you load with a ship piece or fuel pack you can drop it passing over the base piece of the ship.
Once the ship is assembled and full fueled, get into the base piece to leave the planet.
Features:
· Six types of enemies
· Four powerups
· Random platform level generation
· Hiscore saving
· Credits to continue game (lossing the score)
Good luck!
Inspired by Ultimate's classic ZX Spectrum game.
Music created by Víctor (https://snabisch.itch.io)
A quick game sketch to play with vectors and forces.
Controls and Tips
The Squiddles are closing in!
Hold right and left to aim.
Hold X to power up weapon.
Release X to fire.
Firing pushes you backward.
Hold Z to break.
Only the big pink bullets can defeat the big pink squiddles.
Collect an armor power up to destroy squiddles by hitting them.
Have fun!
a game about surfing, using the usual pick-3 style upgrade system. unlock a gun and shoot at seagulls & sometimes ufos.
this was originally made for pico-1k jam a couple years ago, but it was pretty lame, so this is an updated version that's a good bit beyond the original compressed 1k limit.
i don't have too much pico-8 knowledge, so i'd love to hear any thoughts & tips.
my high score is 124
Made this fun little game based on Pentagon (https://scratch.mit.edu/projects/882315701/)! I also put it on my website: https://thegourd.net/ and on itch.io: https://kule77.itch.io/pico-dodge.
Santa's Sleight Rush
Help santa to deliver all the presents on time! Avoid all the obstacles and make the most deliveries possible!
Controls: use arrow keys to move santa and avoid the obstacles. Press x to drop the presents.
Credits: Main idea and characters by Leo. Programming by JP (Leo's dad).
Holidays are about family to me, so I made a game with my 10yo daughter. She provided most of the ideas and mechanics, did all the characters' sprites in Pico-8l, and QA'ed the whole thing!
I'm super proud of the result we got!
Submitted for the 2024 Advent Calendar Gamejam.
I was browsing the _ENV content, hoping to find the modulo and integer division function exposed (no luck) with this quickly written cart (not even alphabetic sorting)
Amongst the unknowns to me, there is a mysterious radio() function.
I tried to call it with different parameters, and only got [nil],0 as return values.
Does anyone know more about that ?
i have been meaning to get back into working on my personal neocities, and was looking for fun buttons to put on my website. i wanted to put a PICO-8 button in there somewhere, but didn't know if anyone had created one already, so i decided to make one myself...! feel free to use it if you want, credit is not necessary :]
Hello world!
This is my first ever PICO-8 cart and BBS post. Came into the PICO world for the chiptune making, learning the tracker and creating a bunch of songs. Then decided to make a musicdisk out of the work so far.
Enjoy!
Play music with a collection of holiday-themed samples! Or make chaotic sound collages, your choice. Export your creations and share them with others! Made for the 2024 PICO-8 Advent Calendar.
And, yes, this is a shameless demake of the Thirty Dollar Website.
Instructions
This cart uses console controls, so use the arrows, ❎ (x on keyboard), and 🅾️ (z/c on keyboard) to navigate.
The first two rows of icons are sounds. Press ❎ to preview a sound, or 🅾️ to add it to the song.
Icons in the third row control playback, and can be used to change pitch or tempo, jump to different points in the song, control looping, etc.
So, Battlefield Balls has actually become a bit more of a game. It's kind of a 3D asteroids clone. Guide your ship around the arena and shoot down all the enemy ball things! Use the jump button to hover in the air. Use the fire button to shoot one missile at a time. When you've killed all the balls, more will respawn!
To-do:
- Enemy balls deplete shield/kill you
- Different coloured balls score different points
- Power ups/health?
Assume the role of a battle-hardened Holiday Ninja tasked with retrieving the stolen presents from Elf Mountain! Your weapon of choice? Bauble ornaments.
Released as part of the 2024 Pico-8 Advent Calendar, kindly organized by bikibird.
Basic Controls
Left/Right = Move left or right
X = Attack (ornament toss)
O = Jump
Gameplay Mechanics
issue
i'm trying out some object oriented programming but i've run into some confusion
when i make a value in a list derived from another list
class={ new=function(self,tbl) tbl=tbl or {} setmetatable(tbl,{ __index=self }) return tbl end, } entity=class:new({ --dsp is read by the main upd --stands for despawn --removes the entity from the --list if true --dsp=false, --dspwait=false, x=0, y='smelly', --o is for origin ox=0, oy=0, sprn=1, --s is for size --the size of the spr that is xs=1, ys=1, --a is for animation asprnum=2, --asp is how much to divide --the tmr by --so 1 is every frame, --2 is evey other frame, --3 is every third frame, --etc. aspd=1, --update=function() --if x< camera.x+8 or x> camera.x+128 then --if --dsp = true --end --end, draw=function() spr(sprn,x,y) print(y) end, }) |
and then try to reference a value from that same table from a function (as seen in the draw function
in the entity class) it spits out nil. i have the entire cart up above as you likely have already seen, ignore that it's trying to draw a sprite at a position thats text. i set y to smelly for testing so i could easily see if it was spitting out smelly or it was spitting out nil.
wait you can paste pico-8 sprites in here