Log In  
Follow
ssergiorodriguezz

You can find me on twitter: @srsergior
And at itch: https://srsergior.itch.io/
My personal portfolio is: https://srsergiorodriguez.github.io/code?lang=en

[ :: Read More :: ]

Cart #pgui-5 | 2024-05-08 | Embed ▽ | License: CC4-BY-NC-SA
25

A GUI library for Picotron!

It includes basic components: boxes, text boxes, text input, buttons, sliders, radio and multiple selection buttons, and color selecter. And layout components: vertical and horizontal stacks, dropdowns, a topbar and a scrollable container.

It can be useful to test game mechanics or to build app interfaces.

You can use this cart and see how it works or check the documentation on the github repository.

(I'll try to make a video on how to use it and post it here too :))

Here's one simple example:

include "pgui.lua"

function _init()
  -- Define the initial value of the slider
    slidervalue = 10
end

function _update()
  -- Refresh pgui each frame
    pgui:refresh()

  -- Create a slider and set its value back from its return value
    slidervalue = pgui:component("hslider",{pos=vec(190,20),value=slidervalue})
end

function _draw()
    cls(5)

  -- Draw the circle, its size is based on the return value of the slider
    circfill(240,140,slidervalue,8)

   -- Draw all pgui components  
    pgui:draw()
end

Let me know if you use it for any projects or if you have improvement ideas!

Note: keyboard text input is not currently working on the online version

Changelog:

1.0.1:

  • Added layers option
  • Improved dropdown (now the content is shown one layer on top)
  • Minor performance improvements

1.0.2:

  • Fixed offset error in scrollable and fixed button response miscalculations inside scrollable
  • Added flr option to hslider
  • Fixed minor layout adjustments
  • Added sprite_box component based on @MaddoScientisto's suggestion
  • Fixed color palette not being passed to children components

1.0.3

  • Performance update, now components consume less cpu
  • Refactored codebase to make it cleaner and easier to expand
  • Minor display improvements in hslider
  • Fixed color palette change function

P#147208 2024-04-23 20:47 ( Edited 2024-05-08 17:52)

[ :: Read More :: ]

Cart #bebopjukebox-0 | 2023-06-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
11

This is a sample jukebox of songs made with bebop, a music generator desktop app I created for making songs for videogames. With bebop you can generate songs in .wav format or export a function that saves the song in your Pico-8 cartridge in the sfx and pattern slots (either momentarily or permanently).

You can find the tool here: https://srsergior.itch.io/bebop

This jukebox has a couple of generated songs that show the type of music that bebop can make. I think that this tool can be useful for giving Pico-8 games that extra musical polish in fast game jams and other projects :)

(it is not an AI tool)

You can freely use any of the songs in this jukebox by downloading the cartridge and adapting the code to your project. Just, please, mention my itch account in your credits: https://srsergior.itch.io/

how to export from bebop to Pico-8

P#130455 2023-06-02 15:18 ( Edited 2024-04-09 20:24)

[ :: Read More :: ]

BLOKI

Cart #bloki-1 | 2022-12-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

This is my second Pico-8 game!

Instructions

This a 1 or 2 player game.

When a player makes a move the block underneath reduces one on its counter, and when it reaches 0 the block crumbles appart. The idea is to make the other player (human or computer) fall.

Controls

In 1 player mode, you can move with either the SEDF letters or with the arrow keys, in 2 player mode one player uses the SEDF letters and the other one uses the arrow keys.

1 player mode has three different levels of difficulty, I used a minimax algorithm to implement the AI.

Other games

I also did a game called POF, a speedrunning boss shooting game: https://www.lexaloffle.com/bbs/?tid=46519

P#121875 2022-12-05 23:12 ( Edited 2022-12-05 23:13)

[ :: Read More :: ]

POF

Speedrunning dueling game

Cart #pof-2 | 2023-05-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
14

Help POF shoot all nightmares away! Can you do it fast?

.

Rules

This is a casual speed duel game. Help POF kill all the monster nightmares as fast as possible and without losing all your lives. Every nightmare has its own behavior, so find the best strategy to defeat each one of them quickly. As you advance, you can buy new weapons and upgrade your stats, choose wisely to improve your times.

This is my first Pico 8 game, let me know what you think,
and don't forget to screenshot and share your best times in the comments!

Credits

Game design, coding and music: Sergio R G (Twitter: @srsergior)

Character design: Paula R G (Check her nice crochet amigurumis at @harucrochets)

Beta Testers: Miguel and Justin

P#106640 2022-02-10 04:13 ( Edited 2023-06-01 13:56)