I looked into animating static background elements using different sprites and came up with this cart.
Has anyone else tried to animate the background this way (that is without parallax scrolling, just animating some background sprites)? If so what approach would you recommend?
PICO-8 carts exported to HTML won't work on iOS in web app mode (a.k.a full screen web app).
Add the following meta tag to your .html file:
<meta name="apple-mobile-web-app-capable" content="yes">
Open the page in Safari iOS, add it to the homescreen, then launch it from there.
Nothing happens, the execution of PICO-8 doesn't start though it works perfectly well when launched from Safari.
It's a shame that Apple is doing their best to ruin the HTML5 experience, probably to give the priority to their closed and controlled apps ecosystem.
I'm not an iOS expert, so if you have any idea on how to fix that, please let me know.
I made a small demo of a rotating globe. The texture effect works visually.
Feel free to reuse the code to improve it or to make awesome games!
When compiled to HTML, it was surprisingly easy to inject data inside a PICO-8 cart.
Module.getValue(0x10DA1C); Module.setValue(0x10DA1C, 3);
Then read it or set in PICO-8 like this:
peek(0x4300) poke(0x4300, 3)
I'm using it for a multiplayer game where I want to allow several players selection only when there is an internet connection (I haven't worked on the multiplayer communication yet though).
The user data section is 6912 bytes long, so that's a lot of data for PICO-8.
Potentially this technique can be used to do all sort of really cool things like leaderboard inside the cart, downloadable levels or players, syncing several players together (chat, collaboration games, multiplayer games...).
- Not sure if the index in the heap will remain stable across releases. Is it even stable across carts? It must be decided by some internal logic in Emscripten.
- It works only in web mode of course.
- It works only when embedded in a particular web page.