Hi @zep,
Before you pull the trigger on v0.1.12 - can I ask whether you've enabled extcmd in binary exports?
I just assumed it would work as the screenshot/gif record facility is there in exports, but when I try the code below on a Mac binary export (which is still 32-bit BTW), it does nothing:
extcmd("screen") -- works in PICO-8, not in binary export? |
Is this something that could still be rolled into the next version?
Thanks as always! :D
Here's a Pico-8 ray tracer with the amazing ability to render both spheres AND planes.
Let it run all the way through even though the colors will be funky at first. After it renders the image, it will switch to high-color mode.
Features:
-NEW High Color Mode
-Spheres
-Planes
-Textures (2d)
-Diffuse and Specular Shading







This is a really weird bug, but stat calls for pattern index, note index, and "number of ticks played" do not always sync up and sometimes one changes before the other. It was intermittent and hard to track down. In order to compensate for this, I had to write something to insulate myself from it:
function poll_songpos() local pat = stat(24) local n = stat(21) local ticks = stat(26) -- compensate for bug (!) where pattern sometimes changes before note if pat ~= songpos.pat and n ~= songpos.n then songpos.pat = pat songpos.n = n if songpos.prevticks > 0 and ticks >= songpos.prevticks then songpos.ticks = 0 songpos.waitingforticksync = true end elseif pat == songpos.pat and n ~= songpos.n then songpos.n = n end -- compensate for bug (!) where pattern sometimes changes before ticks if songpos.waitingforticksync then if ticks < songpos.prevticks then songpos.waitingforticksync = false [ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=59474#p) |
The new BBS 4.0 "cart menu" (the one that slides over and covers the screen and shows other carts) is really cool! However, it seems it allows music to continue playing, while not running _update on the cart. This will basically completely break some audio synchronization stuff I do with stat calls in some of my carts (I do this heavily in one which is going to be released very soon!)
You can see an obvious demonstration of the issue with this cart, which displays the notes that it sees are playing: https://www.lexaloffle.com/bbs/?pid=28685
Until now, I did not see a way for music to play without the update method being called for so long (besides minor frame drops, which I do some work to account for), and this feels kind of like a violation of a basic assumption (at least an assumption I had) with the API so I'm hoping this web behavior can be changed so that the cart is either completely paused or completely running, and not a weird in-between state? @zep





I never imagined I'd be excited about releasing a website update, but here it is! This update addresses many ancient bugs and issues, but also aims to support the PICO-8 / Voxatron fantasy console ecosystem. There are new features to make collaboration, sharing, teaching and exploring carts a little easier.
lexaloffle.com is now also running on a new server, on top of a leaner stack that should be much more responsive. Along with a lot of new code running underneath it all, there will still be some new bugs to deal with (apologies to those who were around earlier this week for the bumpy migration process!) -- feel free to report any issues in the comments here, or in the PICO-8 bugs sub-forum.
New Features
Superblog
View a feed of everything going on using the Superblog. You can also follow other users to create a tailored feed.
Featured Carts
The list of featured carts (same as in SPLORE) is now sorted by the time each cart was added to the list, so that it's possible to come back periodically and see what's new without digging too much for notable releases. Selection will be based on a combination of user interaction, manual curation, and the phase of the moon. To kick things off, the first few pages of the old featured lists will be fed through a few carts per day.










Here is the latest little game from Tic Tac Toad to help you pass the time while waiting for Santa (or equivalent)! Simply use the mouse or the keyboard to uncover pairs of cards and try to match them.
This game is a part of the PICO-8 Advent Calendar - be sure to check each game out.
Credits:
- Code: @kometbomb
- Art: @iLkKke



It looks like the "/bbs" bit is missing.
For example, this is the image URL on my settings page:
https://www.lexaloffle.com/files/9551/kitty_yellow3.png
But the correct URL is apparently:
https://www.lexaloffle.com/bbs/files/9551/kitty_yellow3.png
When sorting by likes, anything past page 1 seems to display an empty page.
compare this: https://www.lexaloffle.com/bbs/?cat=7#sub=2&orderby=featured
to this: https://www.lexaloffle.com/bbs/?cat=7#sub=2&page=2&orderby=featured


Hi,
I would like to add a basic 3d outside view to my flight sim project Tiny Sim. For this I started with the code below, which is just showing a simplified runway (essentially, a rectangle with some points). I am trying to get the projection function right and while it works for z<0 it fails miserably for z>=0: the runway is somehow mirrored in the upper half of the screen.
rwy = {{{-1,0,0}, --points {-1,0,30}, {1,0,30}, {1,0,0}}, {{1,2}, --lines {2,3}, {3,4}, {4,1}}, 4} cam = {0,1,-4} mult = 64 sp = 0.01 function _update() if btn(0) then cam[1] -= 0.1 end if btn(1) then cam[1] += 0.1 end if btn(2) then cam[2] += 0.1 end if btn(3) then cam[2] -= 0.1 end if(cam[2]<0) cam[2]=0 if btn(4) then cam[3] -= 0.1 end if btn(5) then cam[3] += 0.1 end end [ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=59388#p) |

v0.2 UPDATE:
- Respawning after you die
- Levels of increasing difficulty
- Asteroids break up into smaller chunks when hit
v0.1:
Hello!
Over thanksgiving weekend I took a swing at PICO-8 to introduce my nephew to some game programming. What a delightful little platform! (other than the scoping rules of Lua, ugh!).
The result was a very simple Asteroids clone. Enjoy! https://github.com/pepaslabs/picoroids

The asteroids don't break up into smaller pieces yet, and there is no score or sound effects. Work-in-progress!
Also, I have four days of Lua under my belt, so the code probably isn't idiomatic. Now that I've read a bit of other people's code, I realized I should have used my tables as dictionaries, rather than always accessing them as arrays (the code is more difficult to read).

Day 1 of the 2018 Pico-8 Advent Calendar!




Thanks for checking out my entry for our community "Pico-8 Advent Calendar"!
It's a simple "race the clock" arcade game, with the goal of delivering as many presents as possible before sunrise. The entire game only lasts about a minute, with the idea that you will play many times, and try to beat your previous high score.
Credits:
Design and Code: https://twitter.com/matthughson









EDIT: Updated version now supports mouse controls (and touch controls, but it won't work too well on the BBS - try the itch.io version to play on your phone!)
You're baking cakes for the Winter holidays! You do this by putting ingredients into a tray and trying to score the most points by assembling the longest combos possible!
This is an entry in the 2018 PICO-8 Advent Calendar - day #10.
How to play
The easiest way to learn is the "how to play" option in-game, but here is the gist:
- You make cakes by playing tiles into the tray. When the tray fills up, the cake is baked and scored.
- You get a recipe for each cake. The total score on tiles with a given ingredient has to at least match the number in the top-left corner.









