Log In  
Follow
RyanB_Dev
[ :: Read More :: ]

Cart #sorter-7 | 2022-08-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

This is just a little tool I've been needing recently. I know there are websites for it but I was having trouble finding them so I thought, hey, I can make this myself and have some fun in PICO8 at the same time.

Go to new list to create a list of items. Go to lists to see all current lists (there is an example list included). From there you have the option to view, sort, edit (add and delete items), or delete a list.

In sort, you are given two random items from the list and are asked to choose your favourite. This continues until all the items have been ranked. You can then view the list in this new order.

The only thing I would have liked to add is the ability to have lists persist between runs. I haven't been able to find how to save a table of tables of strings, or if it's even possible. If anyone knows how to do this please let me know, I would love to add that feature, but if not it's fine as-is.

Let me know if you find any bugs please.

P#115194 2022-08-03 14:31 ( Edited 2022-08-08 02:01)

[ :: Read More :: ]

Cart #eggcollector-0 | 2021-08-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2


This is my port of an Android mobile game made by myself and my classmates for our Mobile Games unit.

P#95653 2021-08-04 18:24 ( Edited 2021-08-04 18:25)

[ :: Read More :: ]

Cart #countdowntemplate-0 | 2021-06-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I recently needed a countdown timer for a game I wanted to port but wasn't able to find a tutorial online. The code wasn't exactly difficult, but it would have saved me some time, so I figured I would upload the template I made for myself so others could use it.

This will show the timer on screen in total seconds (set to the highest maximum number by default) and in digital clock format (00:00:00).

-- countdown timer
-- by ryanb_dev

-- hours:minutes:seconds
-- max 32767 seconds
-- 9:06:06

function _init()
    timer = {
        text = "",
        hours = 0,
        minutes = 0,
        seconds = 0,
        active = true,
        seconds_left = 32767,
        math_seconds = 0,
    }
    last_time = time()
end

function _update60()    
    if (timer.active) then
        timer_update()
    end
end

function _draw()
    cls()
    //actual seconds
    print(timer.seconds_left)
    //clock format
    print(timer.text)
end

function timer_update()
    timer.text = ""

    timer.seconds_left -= time() - last_time
    timer.math_seconds = timer.seconds_left
    last_time = time()

    timer.hours = flr(timer.math_seconds / 3600)
    timer.math_seconds -= timer.hours * 3600

    timer.minutes = flr(timer.math_seconds / 60)
    timer.seconds = flr(timer.math_seconds % 60)

    timer.text = timer.text.."0"..tostr(timer.hours)..":"

    if timer.minutes < 10 then
        timer.text = timer.text.."0"..tostr(timer.minutes)..":"
    else
        timer.text = timer.text..tostr(timer.minutes)..":"
    end

    if timer.seconds < 10 then
        timer.text = timer.text.."0"..tostr(timer.seconds)
    else
        timer.text = timer.text..tostr(timer.seconds)
    end

    if (timer.seconds_left <= 0) then
        timer.active = false
    end
end
P#93658 2021-06-17 15:16

[ :: Read More :: ]

Cart #supervolcanodemo_v1-1 | 2021-02-15 | Code ▽ | Embed ▽ | No License

This is a demo for a game I did for class which I hope to expand on in my free time, when I actually have some of that again lol.

You play as the volcano god of an island city. When foreign ships carrying missionaries of another god arrive at your shores and convince the villagers to convert and stop their worship of you, you get revenge by destroying the city with your fireballs.

X to fire a shot
Goal is to destroy as much as you can in 10 shots
Some areas give more points than others

P#87652 2021-02-15 02:42 ( Edited 2021-02-15 02:58)

[ :: Read More :: ]

Cart #picopong3modes-0 | 2020-12-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

This is my first foray into pico-8, which I started yesterday after my teacher showed the class the basics. My code's probably messy because I prioritized learning the ropes and getting the game working. I might fix it up later.

Game modes are:

  • Single player - hit the ball against the opposite wall, with the ball's speed increasing over time. Tracks the high score per cartridge boot.
  • Two player - play against a friend in classic Pong.
  • VS Computer - play against an AI with easy, medium, and hard difficulties.

All modes currently feature endless gameplay.

P#85598 2020-12-20 02:09 ( Edited 2020-12-20 02:11)

Follow Lexaloffle:          
Generated 2024-04-18 15:16:42 | 0.074s | Q:25