Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Hello.

Could someone help me with this please ? I'm trying to understand how this works.

var={}
var["playhp"]=500
var["playname"]="patrick"
var["wepname"]="dagger"
var["wepstr"]=2

for i in all(var) do
  print(i.." "..var)
end

And yes, I know I can use:

var={["playhp"]=500,["playname"]="patrick",["wepname"]="dagger",["wepstr"]=2}

But I want to be able to iterate each item per line and in any order, and the ability to remove them as well.

var["playhp"]=nil

And to recall a value: print(var."playhp") returns 500. And ability to recall a value be reference:

varname="playhp"
print(var.@varname) also to return 500.

And print(#var) to return 4, currently returns 0 (zero).

Thanks in advance !

[ Continue Reading.. ]

17 comments


Cart #ruwukawisa-0 | 2019-09-22 | Code ▽ | Embed ▽ | No License
174

In the Elven country life is hard for architects.
You have been proven guilty in a murky affair about bridge collapse and the elf King sentenced you to survive on a very small island in the acid lake of Torgründ.
Of course acid level is rising everyday and your only solution is to build a tower to escape a terrible death.
Thanks to gods, stones are literally falling from the sky in this region, so it should not be a problem for you.

CONTROL :

  • arrow keys : move your architect
  • (z) jump
  • (x) + wall : kick or destroy a wall
  • (x) + up : build a ladder ( consume one plank )
  • (x) in the air : build a wooden floor.

TIPS
ladders and wooden floors can earn you gems if you do them right.

[ Continue Reading.. ]

174
25 comments


Cart #yield_fireball-0 | 2019-09-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

You ever have that moment when somebody tells you something and you SORT OF get it but not really, and then later, maybe a day or two you cry out, "Ah ha !" because then you understand it ?

Well I'm not going to claim full knowledge of the YIELD() command, but I will tell you what it CAN do - at least for me.

I can take any program I've written to date and make it OOPS very simply.

Replace all FLIP() with YIELD(), then make a coroutine to run my MAIN() function. Done.

But it goes beyond this. Since I can now join the ranks of _DRAW() and _UPDATE() this means I can write a custom background engine that operates exactly as I like it.

[ Continue Reading.. ]

3
4 comments


Cart #curmudgeon_goes_fishing-0 | 2019-09-22 | Code ▽ | Embed ▽ | No License
4

4
2 comments


Cart #puma_ik-0 | 2019-09-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Demo of PUMA industrial robot kinematics.

The user can move the Tool Center Point (TCP) and the robot will follow.

The demo operates in three modes:

  • Camera mode (rotate the camera)
  • Motion mode (move the TCP)
  • Rotation mode (rotate the TCP)

The inverse kinematic (IK) problem is the problem of calculating such joint angles that the robot TCP takes the proper position and orientation.

10
2 comments


Cart #implosion-1 | 2019-09-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Years ago I had written a QBasic program for Gina in Taiwan. In it, it imploded the map of Texas along with a greeting. When you ran it, it had the pixels come from all sides of the screen to implode the image I put in there.

Now you can do the same thing in Pico-8 !

Create any picture you want, call initexplosion() then explosion(1,flag) Flag to 1 if you want to skip seeing the explosion and only want to calculate for it. Then you are ready. Now call explosion(-1,0) to see the neat implosion effect of the image you put in there.

5
0 comments


I first off wanted to let you know that I was just experimenting recording some .GIFs in PICO when I noted that the last .GIF I made was 6.49mb in size.

I loaded this up in VirtualDUB to check each frame in it, to make sure it looked alright, and then tried saving it back as an EXPORT .GIF to compare filesizes.

The filesize THEN was only 209k ! A 97% reduction !

I compared both. None miss frames, none have any distortion. They are the same EXCEPT that VirtualDUB has some massive compression going on there !

So ... Zep, someone, anyone ? the .GIF saver in current PICO-8 can definitely be optimized. No doubt about it. VirtualDUB was written 19-years ago - so it's not something new.

I can't upload the 6.49mb GIF in comparison here, says the filesize is too big.

Here is the 209k GIF though so you can see it's not missing anything. There's definitely good compression going on there !

[ Continue Reading.. ]

1
2 comments


Cart #sybils_tail-3 | 2021-03-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
138

Sybil's Tail is a tiny, 15-30 minute long platformer made for PICO-8. Run, jump, slide, grab, and toss your way through 6 bite-sized areas as you search for a mysterious meteorite that fell nearby!

hi there!! after 4 months of working on it, I've finally finished my first PICO-8 game, Sybil's Tail! this project was a lot of fun to work on, and getting everything to fit into the 32k of cart space required a lot of tricks to make things work right. a large reason it took so long was all the rewriting and compressing it took to get in all in there. but! the result is exactly the game I set out to make! I hope y'all enjoy exploring this little 8-bit world I've made.

it's also on itch here, which includes native exports, and the soundtrack. speaking of, I would like to extend special thanks to @kitorchid, who made the incredible cover art for the soundtrack, and @osmoru, whose adorable artwork formed the basis of the cartridge label design. In addition to those commissions, I also received wonderful artwork of Sybil from @MarziManed and @_pexl, who are both very cool artists that you should check out as well! And of course, I would like to thank all testers and of course my friends, without them none of this would have been possible.

[ Continue Reading.. ]

138
47 comments


by fyta
Cart #stank-1 | 2019-09-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

music (Y)

0 comments


Cart #wigglevision-0 | 2019-09-20 | Code ▽ | Embed ▽ | No License
2

press z to mark point
press x to engage the wiggle

check menu (enter) for various options!

2
0 comments


Cart #shift-0 | 2019-09-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

Hi everyone. During the 3rd GameShell Game Jam, I and my friends made a tiny puzzle game named SHIFT, and it is also the theme of the game jam. We spent about four to five days in all making the mechanism, levels, and the music.

The game combined the Sokoban mechanism with "shift", which you can move into the wall area when your shift ability is enabled. Your goal is to move onto the tile which looks like a teleporter or something. The current version features 16 levels. None of us are experienced game dev, so this game may feel a little bit weird, but I hope you could enjoy playing it.

Control:
O to toggle the shift ability.
X to undo.
You could restart the level in the pause menu.

[ Continue Reading.. ]

9
1 comment


I don't think anyone will seriously read this, I'm a nobody and I never blog here.

However, it's a tad frustrating that there seems to be an overabundance of Celeste mods within the normal places to release carts which makes me wonder if maybe Pico8 BBS needs a section just for game mods?

I think it would help fix a little of the clutter. I look at what appears to be a new game then after I get into the thread, I find out it's a mod of a game I already played.

It's just something I was thinking about and there's no place on the forum to speak to this so I figured I'd just mention it into the air for it to disappear forever. :)

6
2 comments


Cart #wodegebeho-0 | 2019-09-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is a revised version of my Rock Paper Scissors game.

2 comments


Cart #shenzhen-1 | 2019-09-19 | Code ▽ | Embed ▽ | No License
13

I ported Shenzhen Solitaire to PICO-8. I made this a while ago but have only just now gotten around to posting it. It should handle all cases correctly, but please let me know if you run into any bugs.

I am not musically inclined at all, so if someone would like to help by translating the music to PICO-8 that'd be awesome.

Controls:

Z: select/move card(s), press dragon buttons
X: swap between free cells and table

Left/Right: move cursor (wraps around screen)
Up/Down: grab multiple cards (if able)

Rules can be found here: https://shenzhen-io.fandom.com/wiki/Shenzhen_Solitaire

13
5 comments


Cart #xor_flower-0 | 2019-09-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Years ago computers had very little memory. I am reminded of the Apple ][ computer which although having 2-HIRES graphic pages each 8192-bytes in size with a resolution of 280x192 B&W pixels, you only had about 16k of RAM space if you used both of them for your program.

The original method was to plot an image on one page while viewing the other, then swap the two so you were always plotting on one while viewing the other. Yet this technique cost two HIRES pages of memory.

So a new method was adopted to handle plotting sprites and graphics over existing static images, and that method was called XOR.

On the Apple for instance you could plot a shape with XOR dots, that is for every pre-existing black dot you plotted on, it would appear white. Likewise if you plotted on a previously existing white dot, the plotting color for your dot would be black.

[ Continue Reading.. ]

3
0 comments


Cart #hofusewoni-9 | 2019-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

You are the god of this planet, unfortunately your powers are limited to the control of gravity in this patch of the galaxy. Do everything in your might to keep the planet at temperatures that can sustain organic life. To guide you, the habitable zone of each system is shown in green on the playing field.

Remark: the solar systems are auto-generated from the seed given at the start of the game. I tried to make it so all generated solar systems have a good starting position, but if you encounter a particularly bad system just restart with a different seed.
Also: After hitting start in the menu, the game may take a while to actually start. The calculation of the habitable zone is not very optimized and takes a while, so just be patient, there's nothing wrong with your browser. ;)

[ Continue Reading.. ]

4
6 comments


Credit to MBoffin who inspired me to write this, mostly so I myself could prove that I understood seldom used Pico-8 command set of COROUTINES such as COCREATE(), CORESUME(), and YIELD().

Cart #cocreate_demo-0 | 2019-09-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

If you just want the source without the sound effects, that can be found HERE:

-- dw817's very simple
-- cocreate() program

function main() ------------->>

cls()

init=0

repeat

-- if press (x) or this is the
-- first time to run,
-- prepare for being able to
-- call function "act" as a
-- co-creation
if btnp(5) or init==0 then
  init=1

-- make a pointer for the
-- cocreation function "act"
  go=cocreate(act)
  sfx(0) -- low pitch
end

-- if press (o) then call
-- routine here to plot three
-- circles, one at a time, and
-- one for each press
if btnp(4) then
  coresume(go)
end

-- update screen
flip()

until forever
end --<<-----------------------

-- three circles, click (o)
-- three times to see all three
function act()
  circfill(10,10,10,5)
  sfx(1) -- high pitch

-- each time yield is used,
-- the position of where the
-- program is in the function
-- is recorded and the function
-- exits
  yield()

-- the second time you press
-- (o) the function will start
-- here, not at the beginning
  circfill(20,10,10,6)
  sfx(1) -- high pitch
  yield()

-- as above, this function
-- starts here on a 3rd press
  circfill(30,10,10,7)
  sfx(1) -- high pitch
  yield()

-- there is nothing more here
-- so pressing (o) a 4th or
-- more does nothing.
-- you must call cocreate()
-- again in order to reset
-- this function to start
-- running the 3-circles again
end

main()

[ Continue Reading.. ]

3
4 comments


Cart #bowobah-0 | 2019-09-18 | Code ▽ | Embed ▽ | No License
45

Wandering carelessly through space you get swallowed by b'Ah, the semi-sentient semi-cybernetic semi-grumpy semi-planetoid! Now fight your way to its other end (there's one)!

Still in need of some polish here and there but (hope)fully playable, so here it is!

(edit) moved from w.i.p. to cartridges after all. some update still coming up later on...

45
6 comments


Chrome 76.0.3809.132, macOS 10.14.6. Cannot repro in Safari. Not sure when this started, but all of the web players on the BBS are blurry. Anyone else seeing this?

Web export from 0.1.12c still works fine, so I assume the BBS web player has an upgraded player with this regression.

1
1 comment


Cart #mb_textflow-2 | 2019-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
21

This is a heavily commented cart that shows one way of doing flowing dialog text with coroutines. If you have any questions on how it works, feel free to ask. Again, this is one way of doing it. :)

21
2 comments




Top    Load More Posts ->