Using the cough undocumented cough stat(102) from a game hosted on itch.io, I got back:
v6p9d9t4.ssl.hwcdn.net |
This is indeed the url of the iframe (which doesn't help).
A more correct behavior would be to report the parent page url, with the benefits of:
- having a predictable outcome
- actually preventing rogue hosting (somehow...)
Note: Looking at the HTML, I see that url is retrieved from:
var str = window.location.hostname; |
Using that alternate code would fix the bug:
var str = (parent !== window) ? document.referrer : document.location; |

Hello there!
I've been dabbling in pico-8 for about 2 years now, I've only just got into proper development with it these past few months though. I'm wondering if there might be a way to get URL parameters in the browser to use in the cartridge?
I've managed to compress my level design to a string of about 25 characters, and I thought it would be really cool for players to easily share their levels by simply copying the URL. Of course I would need to host the cartridge on my own site, perhaps there's a way to run the cartridge with parameters using JavaScript?


Arrow Keys to Move
Z to Dash
Avoid the pink obstacles that come to the beat!
This project is based one of my favorite games ever, Just Shapes and Beats (long for JSAB)
Thx to Robby Dugauay for music
To Do List:
-Death Animation
-Progress Bar
-Goal
-Particles
-Restart Button
Please give me constructive criticism if you can.





Basic movement can be facilitated through:
if btn(0) then x-=1 end
But when I add sfx:
if btn(0) then x-=1 and sfx(0) end
It always generates an error as soon as that button 0 is pressed. Why is that? If x then y and z end. Is there something wrong with that syntax? Or is it related to sfx not working in this way?
And why is it when I clarify with brackets it doesn't even run!? Am I clarifying that my syntax is wrong before teh game starts? That's funny.
i.e.
if btn(0) then (x-=1 and sfx(0)) end

controls: left & right for cursor, (O)/(X) (Z/X on keyboard) to activate rocket (or restart after game over)
A crappy little endless game. Almost playable, but pretty unfinished (no menus or anything, and there's some states you can't get past). Mostly only here so I can share a WIP with my friends more easily~
I find myself not really finishing any game projects I start, so I'm starting over smaller. Probably with stuff loosely based on random puzzle games I looked up, like this one is.
(also hi first post here I guess)
Update 0.2
- redid the graphics so the obstacles don't look like targets
- also it's prettier now (screenshake, particles, bg, new sprites)
- I bothered to let you reset from in-game now

Jokenpico is Jokenpo with a twist with code that fits in a tweet!
It is a 2-player game.
Controls:
RIGHT is rock
LEFT is paper
UP is scissors
The diffence from regular jokenpo is the score:
If Scissors wins: +4 points
If Rock wins: +2 points
If Paper wins: +1 points
At a first glance scissors seems overpowered with 4 points, but it wins against paper (1 point), so it is less likely that your opponent will use paper.
(an easy way to remember each score is: scissors cuts paper into 4 pieces, rock smashes scissors into two halves and paper wraps stone into one ball)
Hi guys,
I was working on a train game when it hit me that i have no idea how to make a smooth curve.
So I came across bezier curves and after reading some math articles I managed to write a function myself.
Even though many other people have shared thier version here is my bezier curve, with only a single control point sadly (I will figure out the rest later).
Here is the code i have tried to make it very eazy to implement into other projects (since I was gonna use it for my train haha).
function lv(v1,v2,t) return (1-t)*v1+t*v2 end --Quadratic Bezier Curve Vector function qbcvector(v1,v2,v3,t) return lv(lv(v1,v3,t), lv(v3,v2,t),t) end --draw Quadratic Bezier Curve --x1,y1 = starting point --x2,y2 = end point --x3,y3 = 3rd manipulating point --n = "amount of pixels in curve"(just put it higher than you expect) --c = color function drawqbc(x1,y1,x2,y2,x3,y3,n,c) for i = 1,n do local t = i/n pset(qbcvector(x1,x2,x3,t),qbcvector(y1,y2,y3,t),c) end end |


Hi! First of all sorry for my poor English. I'm proud to present you my first ever video game: R0-Ace (a 8191/8192 tokens hell 😜). It's a shmup inspired by the danmakus and bullethell Japanese games. There is 5 levels with bosses and sub bosses:

If you find anything wrong or any bug please report it. This is the Easy mode version. In the near future I'll release three more game modes.
Thank you for playing!


Introducing Hypercolor Paint, a high-color painting application for the PICO-8.
Features:
Paint in either high color mode (flicker) or standard (dithered) mode.
While editing, pixels are treated as 56,535 level 3-channel color.
Use a variety of brushes, with control of color, size and pressure to achieve desired effects.
Save images (requires download)
Export images (requires download)
Example Images: (High color mode is simulated)
.jpg)






Each of these games fits inside a single tweet.
An Out Run style game with a day/night cycle. Left/right to move.
You are a bird that must collect falling seeds in this arcade game. Up flies up, left/right move sideways. If you fall out of frame, you are just outside and need to move back in; if you fall below, all you have to do is hold up and you should reappear.
Hello, I'm happy to announce Fantasy Console Game Jam 4 hosted by Nopy and pixelherodev.
Pick your best fantasy console and make a game in one week!
Join the discord server if you haven't already: https://discordapp.com/invite/sFeDxWK

Here's a project I've been working on. It started as a simple viewer for different graphs, but then it turned into a platformer. The game is fully playable, but it needs some additional content, which is why I put it under Work in Progress.
What makes this project interesting is the fact that I didn't use any sprites or the map editor at all. Every stage is constructed using functions. Funtions can be very powerful for setting collision, as this way you can make pretty much any shape you want. You can also make the terrain dynamic and depend on time. I also added some simple physics into the game, utilising the difference in values of the function for the ball to gain some speed, but it could definitely be better. It's a bit slippery, but I wanted the ball to have some sense of momentum.






can someone tell me why I am running out of memory?
@Catatafish I completely changed the question I realized i do not have an infinite loop. I just assumed since I was running out of memory.
this line seems to be doing it and idk why..
o:procx() |



