Log In  

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

Cart #knutil_bunpack-3 | 2024-12-21 | Code ▽ | Embed ▽ | No License
14

Feature Overview

BUNPACK() slice the value with bit width.

  • by specifying the argument after [number w], a value of up to 32 bits can be sliced.
  • set [number s] to a negative value to start the slicing from the decimal point bit.
  • This function consumes 30 Token.
a,b=bunpack(0xf8,0,4,4) -- Value, First bit-shift, bit-width, ...[bit-width]
?a -- 8  (0x8)
?b -- 15 (0xf)

This function is included in the KNUTIL library.

release note


v0.2

  • change table storage order to little endian.

v0.1

  • first release
2
0 comments


Cart #tuyizubuso-3 | 2022-12-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Hello friends ! this is the second episode of the Aliens invaders saga !

I hope you can have some fun !

Enjoy !

5
9 comments


stars={}
for s=1,10do
add(stars,{x=128,y=128,spd=rnd(3)})
end
for i in all(stars)do
i.x-=i.spd
pset(i.x,i.y,7)
end

hey! super quick and basic question, feel like ive definitely done this before but i am just not thinking hard enough rn but why isn't this working? no errors are being thrown so i feel like im definitely forgetting something super basic thats making it all break but i am still a beginner and can't seem to figure out what. ty for any help!

2 comments


Cart #moonshmup-0 | 2022-11-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

MOONSHMUP

Inspired by "Moonpong: The Tales Of Epic Lunacy" by Punkcake Deliceux and Remy Devaux.

Small mod of SHMUP by Lazy Devs

Many sprites and models are specially drawn as in the original

Have a fun \^_^/

1 comment


Cart #vector_p8-12 | 2024-10-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
14

vector.p8

a simple and lightweight (in tokens) vector math library for PICO-8.

usage:

  • load #vector_p8 and save as such: vector.p8
  • remove all the demo code; it's in the second tab
  • #include in any cart you want

functions within:

> NOTE:
> vectors are just normal Lua tables with x and y fields, so you can pass any table that contains x and y to any of the functions and they will work regardless.

creation and management

vector(x,y) - the main function. x and y default to 0

v_polar(angle, length) - makes a new vector using polar coordinates
v_rnd() - returns a normalized vector with a random direction

[ Continue Reading.. ]

14
8 comments


Cart #gubegimofi-0 | 2022-11-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

3
6 comments


I'm going to start with my general understanding and label questions [Q#] with the hope someone can fill in the blanks. Consider the discussion of 'cost' in terms of speed/cpu. I'm hoping there's a general concept I'm missing that will cleanup the flurry of questions around [Q2], regardless please bear with me:

General code is written topdown like the below where you define the function at the top and then you can simply call said function below that point to access the block inside. I don't fully understand the cost, in terms of lua itself, associated with defining 'function a()end' (the pico8 wiki has general pico8 cycle costs). My understanding though is the program won't look inside of the function 'until' I call it and so there is simply some generic predefined 'base cost'(cpu cycles) to defining a function and this cost is not affected by the number of parameters or whatever is inside the function....tldr it's always a flat cost each time the compiler/better-word runs down that part of the page and sees you want to define a function. So this usually amounts to the general idea of 'define the function once at the top of the code' and then call it as many times as u need where u need to after:

[ Continue Reading.. ]

4 comments


I am running into a curious situation, @zep, regarding Pico-8 when it comes to lowercase letters.

For instance, in new code type this:

To type the lowercase letters you will need to press CTRL+P first, then type the letters, then press CTRL+P afterwards to return to normal uppercase letter mode.

Now highlight the code. The easiest way to do this is to triple-click it. Press CTRL+C to copy it.

Now paste it in any text editor like Notepad or even a message in here with CTRL+V. You will get the following:

a="abcdefg 𝘢𝘣𝘤𝘥𝘦𝘧𝘨"

Why is the text italicized ?

If you run the code and then use printh(a,"@clip") and then CTRL+V in the same text editor, you get this:

abcdefg ABCDEFG

Which is think is more correct. What do you guys think is going on here and are you getting the same results I do ?

1
9 comments


Hello, @zep.

You have seen that loading pause that appears in the top-left-hand corner of the screen every time you use CSTORE(), RELOAD(), or EXPORT (PNG) in your code. This is voluntary. I'm certain you chose it for a good reason. Sometimes I can't see the reasons you do. Yet it's not from not trying to.

I feel, however, the delay is artificial and unnecessary. You can prove this by IMPORTING a PNG image and it loads immediately with no delay at all, inside your code or out.

So how about this ? You have the pause when you use it the first time running if you must. Then you can continue to have the pause each time for every time you change the filename. However, if it were used in such a way that only =1= filename were used, for instance, to make it a random access file to save your current work, then it would be most helpful to me, perhaps to others, to remove that pause.

So your work may be saved automatically every minute or so minus the icon and timeout animation.

[ Continue Reading.. ]

1
0 comments


Cart #beautifulrunaway-0 | 2022-11-27 | Code ▽ | Embed ▽ | No License
22

This one is short but sweet. I hope you enjoy it! 😊

22
7 comments


Cart #pinema-0 | 2022-11-27 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
4 comments


Cart #wojiranega-0 | 2022-11-27 | Code ▽ | Embed ▽ | No License
8

8
3 comments


Interview With Unikotoast Creator of "Buns: Bunny Survivor"-Pico-View #2


Uniko:@unikotast
U = Uniko

Marina:@MarinaMakes
M = Marina

Their games:
Buns: Bunny Survivor (click link)

Witchcraft Tower Defense (click link)


M: So, in your own words, who are you and what pico-projects have you made?

U: I'm a begginer indie game dev, I've started playing around with Pico-8 around 7 months ago. I really liked Vampire Survivors and wanted to make something similar but I did not want to invest a lot of time into learning game engines so Pico-8 was perfect. I never ever did anything gamedev related but I have a decent experience in software engineering. I only made 2 games https://unikotoast.itch.io

[ Continue Reading.. ]

8
0 comments


Cart #ydodawpi-0 | 2022-11-27 | Code ▽ | Embed ▽ | No License

2 comments


Cart #bowazejame-0 | 2022-11-27 | Code ▽ | Embed ▽ | No License
1

1
0 comments


Cart #cdcoolthing-0 | 2022-11-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

third_person_camera

i want to make a 3d game in pico8, but i without time to spend in gamedev ,with the time i have left i doing some camera work , diss a tps style camera(i have to charge some variables to accommodate to the pico8 128x128 screen) , i hope you all can find a good use to it , i also want to thanks the help i got from freds72 (the guy who ported doom to pico8), and again i using sokpop sorce code as reference.

5
2 comments


Cart #picobirdgame-2 | 2022-11-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Almost finished still need to polish this game more

0 comments


Cart #yidomiwone-0 | 2022-11-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3


reference:
https://www.youtube.com/watch?v=rI_y2GAlQFM

3
2 comments


A very early draft line editor which could potentially grow to edit animations in the style of the Italian cartoon La Linea https://en.wikipedia.org/wiki/La_Linea_%28TV_series%29

Arrows to move the dot, C to split the line at that point, X to move to the previous point, and that's all it has for now.

Cart #fbgiyuke-0 | 2022-11-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

2
1 comment


Just a little weekend "I need a break from my projects" project.

Cart #noise_march-0 | 2022-11-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Uses the marching squares algorithm to determine tile placement at each step and 3 dimensional value noise to animate it.

1
0 comments




Top    Load More Posts ->