Log In  
BBS > Lexaloffle Community Superblog
This is a combined feed of all Lexaloffle user blogs. For Lexaloffle-related news, see @zep's blog.

All | Following | PICO-8 | Voxatron | General :: [Thread List]

Pico Lib

After making some games in pico8 I found I was copy and pasting some functions, code designs. With the new(ish) "#include" functionality, I decided to pull those things out into a cart to use as a library. Its still a WIP but right now includes

  • Vector obj with some functions
  • screenshake manager
  • gamestate manager
  • Actor class with optional..
    • animation (multiple sprites per frame)
    • collision (with map flag 1 and other actors)

Cart [#pico_lib-1#] | Code | 2019-10-15 | License: CC4-BY-NC-SA | Embed

Examples

Cart [#pico_lib_actors_example-0#] | Code | 2019-10-15 | No License | Embed

Cart [#pico_lib_state_n_shake_example-0#] | Code | 2019-10-15 | License: CC4-BY-NC-SA | Embed

P#68896 2019-10-15 15:17

One thing I've noticed becoming a little more popular is non-violent gameplay and I really like this trend, even if it's rather miniscule compared to the broader amount of games being made. Violence is a part of our media in general (see the writings of bell hooks for more info) and so it's nice when a game provides different kinds of solutions to obstacles that don't involve 'kicking something else's ass'. Notably, most of these games, though, tend to be in visual novels, but I suspect that there's an infinite amount of possibilities to do non-violent games that aren't simply puzzles or choose your own dating adventure (i'm being sarcastic with the latter, btw) but are still high on action and skill.

I'm just writing this in hopes someone else sees this an possibly thinks of an alternative to the 'kill enemies' approach to gaming. It's been done a billion times (probably literally a billion times at this point) and while I do enjoy a shooty shooty game as I'm an arcade junkie by nature, there's a lot of games I've played that aren't inherently violent and get my palms super sweaty...and yes, I consider abstract games to be of this nature (such as Every Extend, etc.)

If anyone cares to chime in, please do. Again, I'm not making value or moral judgements here, it's just something that I think has great room for exploration thematically within game design and I look forward to being surprised because dude with gun or person that squishes enemies by stomping on them is definitely a crowded genre/concept.

Peace and keep on making games, even if they do involve a little bit of shooty shooty. I'll still be there to play it!

P#68677 2019-10-09 10:02

Cart [#baruyitesa-0#] | Code | 2019-10-06 | License: CC4-BY-NC-SA | Embed

P#68562 2019-10-06 09:33 ( Edited 2019-10-06 09:34)

I keep trying to upload my cart and it keeps telling me invalid cart. I have done the F7 and saved it but every time I choose the file it tells me it is invalid. Please help

P#68547 2019-10-05 22:58

Cart [#earthdefence-0#] | Code | 2019-10-04 | License: CC4-BY-NC-SA | Embed

[#earth defence-0#]
Here's Earth Defence by Indy, aged 7!

You are the buggy with the intergalactic catcher on top.Catch the meteors and asteroids before they hit the earth!

this is the working version - more bits and pieces may be added later!

P#68444 2019-10-04 10:40 ( Edited 2019-10-04 10:42)

Cart [#wepubosaya-0#] | Code | 2019-10-04 | License: CC4-BY-NC-SA | Embed

A timestables studying game for Scarlett!

P#68439 2019-10-04 06:11 ( Edited 2019-10-04 06:12)

Cart [#sirefogepu-0#] | Code | 2019-09-23 | License: CC4-BY-NC-SA | Embed

P#68060 2019-09-23 21:06

 
by Zero
Cart [#pong-0#] | Code | 2019-09-22 | License: CC4-BY-NC-SA | Embed

2 player pong game I made.
Player 1 (left) uses Z/X for up/down.
Player 2 uses U/D arrows.

P#67997 2019-09-22 14:23 ( Edited 2019-09-22 14:24)

Hi, my name is Chase, but you can call me Cheez...or even Scorch for that matter.

I am a musician who hopes to learn how to develop for the Pico-8. I've been making music since 2014, but didn't really take off until 2016. It's been great.

I also suffer from anxiety and I tend to get nervous and stuff. So, yeah.

I hope to have fun with you all though.

Sincerely,
Cheez

P#67958 2019-09-21 00:16

Cart [#hapiweropi-0#] | Code | 2019-09-20 | License: CC4-BY-NC-SA | Embed
1

Entry for LDJam a long time ago (2016?)

P#67942 2019-09-20 15:40 ( Edited 2019-09-20 15:41)

Cart [#nabapinofa-0#] | Code | 2019-09-20 | License: CC4-BY-NC-SA | Embed

so this is the basic working version of a space shooter by Indy aged 7; more versions with added bits to come!!

arrow buttons to fly, c button to shoot
when game is over, press enter and select restartcart to try again

P#67935 2019-09-20 11:28 ( Edited 2019-09-20 11:32)

I am trying to do a simple game of pong for class and am having trouble. I have got the ball and the paddle. Now I am having trouble making the 2 collide. I am trying to get the ball to turn a different color when collided with the paddle.
I am also having trouble coding to get my paddle to stop when it hits the end of the screen so it does not disappear. Any advice would be much appreciated. I have attached my code so far that I have been working on. Thank you

ball_x = 3
x_speed = 1
ball_y = 15
y_speed = 1
ball_round = 3
col = 7
x=1
x1=5
y=127
y1=1
speed=5

function _init()
cls()
end

function _update()
buttpress = false

if btn(0) then speed =-5 end
if btn(1) then speed+=5 end
if not (buttpress) then
speed = speed/1.7
end
x+=speed

ball_y = ball_y+y_speed
ball_x = ball_x+x_speed

if ball_x > 127
then x_speed = -2
end

if ball_x < 0
then x_speed = 2
end

if ball_y > 127
then y_speed = -2
end

if ball_y < 0
then y_speed = 2
end

end

function _draw()
cls()
circfill(ball_x,ball_y,ball_round,col)
rect( x, y, x+8, y+1, 8)
end

P#67908 2019-09-19 20:20 ( Edited 2019-09-19 20:21)

im noticing as i import 3d file (magicavoxel to qb) the white is missing- i wonder if there is a way to fix this/import the white areas of the model...

P#67712 2019-09-15 21:48

Cart [#celestebutitdoesntstart-1#] | Code | 2019-09-15 | No License | Embed
1

P#67692 2019-09-15 01:33

I have got a rectangle drawn on the screen but need help. When I move it left to right it gets bigger. I want it to stay the same size and just move. Can someone please help me with my code

x=1
x1=5
y=2
y1=2
speed=2

function _init()
cls()
end

function _update60()
if btn(0) then x=x-speed end
if btn(1) then x=x+speed end
end

function _draw()
cls()
rect(x,y,x1,y1,8)
end

P#67603 2019-09-12 22:20

I have an assignment where I have to make a ball move and make a paddle move. I cannot move onto the next step because I can't seem to get the paddle to move when i press the buttons. Any help would be appreciated. Here is what I have for a code so far.

ball_x = 3
x_speed = 1
ball_y = 15
y_speed = 1
ball_round = 3
col = 0

pad_x = 52
pad_y = 120
pad_dx = 0
pad_w = 24
pad_h = 3
pad_c = 7

function _init()
cls()
end

function _update()
ball_y = ball_y+y_speed
ball_x = ball_x+x_speed
col=col+1

pad_y = pad_y+pad_dx
pad_x = pad_x+pad_dx
pad_c=pad_c+1

buttpress = false

if btn(0)
then pad_dx =-5
end
if btn(1)
then pad_dx+=5
end
if not (buttpress) then
pad_dx = pad_dx/1.7
end
pad_x+=pad_dx

if ball_x > 127
then x_speed = -2
end

if ball_x < 0
then x_speed = 2
end

if ball_y > 127
then y_speed = -2
end

if ball_y < 0
then y_speed = 2
end
end

function _draw()
cls()
circfill(ball_x,ball_y,ball_round,col)
rectfill(30,10,3,8)
end

P#67598 2019-09-12 19:35

Hey! I'm DatOneBuilder. I used to be in Vox community (I took lessons about Vox and other related coding games, but took a large break from the game.) Sadly, I lost access to my previous account. My account old account can be found here. I'm going to be taking up some of my old projects but I will need to brush up on Vox as I have taken a long break from the game. Thanks!

P#67380 2019-09-08 00:49

I have done a game code for a red ball that I can move in a line. I have figured out the code for that. However, I am stuck on making it change a color when it hits the end of the pico 8 screen. I have searched it online and have had no luck. Can anyone explain what I need to do to get the ball to change color? Thank you
Here is my code so far without changing the color.

col=0
function _init()
cls()
xpos = 64
ypos = 64
col = 8
size = 5
end

function _update60()
if (btn(0) and xpos > 0) xpos -= 1
if (btn(1) and xpos < 127) xpos += 1
end
if xpos < 33 then col = 5
end
function _draw()
cls()
circfill(xpos, ypos, size, col)
end

P#67310 2019-09-05 23:38

I have used some of the basics taught in pico-8's manual to understand clipping, table iteration and random terrain generation using random functions.

This cartridge is a sample of those concepts in practice.

P#66857 2019-08-22 17:44

Cart [#smallfunsong-0#] | Code | 2019-08-21 | No License | Embed
2
Cart [#villagelevelsong-0#] | Code | 2019-08-21 | No License | Embed
2
Cart [#cavelevelsong-0#] | Code | 2019-08-21 | No License | Embed
2

These are my songs that I made! I'm new so don't judge.. Small fun song was a song I made with my cousin when she said I have 5 minutes to make her a song. And the other two are for future games I might make! I love 8-bit music so here is some. :D

P#66832 2019-08-21 06:59
View Older Posts
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-10-17 19:33 | 0.111s | 2097k | Q:181