Log In  
Follow
st33d
:: Unfold ::

Cart #gundrops-0 | 2023-03-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Get as many blue detonators as you can.
Get the + for more weapon

Controls

Single Stick:

Arrow keys / d-pad to move
Z / πŸ…ΎοΈ to shoot
X / ❎ to toggle direction lock

Dual Stick Sort Of:

Arrow keys / d-pad to move
S, E, D, F to shoot
(we're cheating by using the 2-player controls because I honestly thought I would be satisfied with single stick, but here we are)

P: Pause Menu
From the pause menu you can swap move/shoot keys and turn on "autopause" for a more turn-based experience.

Made for 7 Day Roguelike Challenge 2023.

P#127145 2023-03-14 21:33 ( Edited 2023-03-14 21:35)

:: Unfold ::

I wanted to take a screenshot and draw it back to the screen like a sprite.

This is useful for screen transitions, like in Bubble Bobble where you scroll up to the next level.

The nice folks on the Pico-8 discord helped me put together this, which copies the screen to 0x8000 (the extended map location in 2.4+). Then when we want to draw it we copy it over the whole sprite sheet, draw that like a sprite, then reload the original sprite sheet.

Cart #screengrab_sprite-0 | 2023-01-16 | Code ▽ | Embed ▽ | No License
1

function _init()
    cls()
    -- make something to screengrab
    for x=0,127,8 do
        for y=0,127,8 do
            rect(x, y, x+7, y+7, flr(rnd(16)))
        end
    end
    target_x, target_y = 0,0
    screengrab()
end

function _update()
    -- test we can draw the screengrab to a different place
    target_x = (target_x + 1) % 128
end

function _draw()
    cls()
    -- copy to sprite sheet location
    memcpy(0x0000, 0x8000, 8192)
    -- draw it to screen
    sspr(0, 0, 128, 128, target_x, target_y)
    -- restore the sprite sheet
    reload(0x0000,0x0000,8192)
    -- debug where the screen should be painted to
    rect(target_x, target_y, target_x + 2, target_y + 2, 7)
    -- check we reloaded the sprite sheet
    spr(0, target_x, target_y + 8)
end

-- copy the screen to extended map location
function screengrab()
    memcpy(0x8000,0x6000,8192)
end

Other methods could be used like using memcpy to paint direct from memory - which would be a lot faster. This thread may offer some help with that.

If anyone would like to improve on this example please do. There's not a lot of posts on the subject that offer any working examples so the more the merrier.

P#124407 2023-01-16 19:43 ( Edited 2023-01-16 23:56)

:: Unfold ::

Cart #vomvomcastle-1 | 2021-10-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
25

The castle is yours - but first you must puke all over it!

Controls

Player 1
Left / Right: arrow keys
Jump: Z, N, C
Puke: X, V, M

Player 2
Left / Right: S, F
Jump: Left Shift, Tab
Puke: A, Q

Player 2 can join at any time by pressing the 2nd player jump or puke button.
2 players are not necessary to complete the game.

A dev-log for the game is here: https://twitter.com/st33d/status/1436396564046614529

P#98433 2021-10-09 13:45 ( Edited 2021-10-09 23:05)

:: Unfold ::

Cart #stomp-6 | 2021-08-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
19

Controls

walk: left,right
stomp: down / X
jump: up / O

Stomp!

A turn-based-platformer-roguelike. The objective is to get a high score in 300 turns (10,000 is good).

Use your stomp to set rocks rolling, spikes falling, and bombs exploding.

Score Card

Wall: 10
Rock: 20
Wall, Drill: 50
Wall, Bomb: 80
Gem: 500
Worm: ???
Gold Worm: ???

You get half-points for anything you destroy with your amazing stomp - find other ways to destroy stuff.

Please post your best score if you choose to comment.

P#95024 2021-07-18 12:56 ( Edited 2021-08-19 17:36)

:: Unfold ::

Cart #cardinal_pirate-0 | 2021-03-13 | Code ▽ | Embed ▽ | No License
3

Controls

Arrow keys to move. Z to wait. X to toggle menu.

Cardinal Ramship Pirate

You have descended into Bordered Space in pursuit of the famed Big Golden Chest. The area has many guardians but you have a time crystal and a pirate ramship...

Ram into other ships to damage them. Only the fastest moving ship deals damage.

Use the menu to change equipment - each provides different advantages and disadvantages. Scrap items to regain lost health and fuel - some will even increase your maximum health and fuel capacity.

Made for the 7 Day Roguelike Challenge, 2021.

-

Check out my other carts if you want just the code for the menu or physics.

P#88933 2021-03-13 19:56

:: Unfold ::

Cart #cardinal_menu-1 | 2021-02-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

I wanted a nice simple menu system for pico-8 so I decided to recreate an old UI I made ages ago in Flash (my game Red Rogue uses it).

The Cardinal Menu only uses arrow keys to navigate. The menu is made of branches. Each item in a branch points to either a string (providing a description panel), a function in your code, a new branch, or nothing (disabled).

The purpose of this system is to make it as fast as possible to build a menu and add options.

In the demo you can see what each option does and there's a demonstration of an inventory system.

The menu system alone is 712 tokens.

This is about as basic I could make it without adding too much noise to the code, but I welcome suggestions for improvements and optimisations.

Cart #cardinal_menu-2 | 2021-02-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

A quick update...

Let's say you're in a shop and you have 5 gold. A sword is 5 gold and an axe is 10 gold. You want the menu to say the axe option is disabled. So now you can define a menu item that checks if it's disabled - you just point it at a function that gives an answer.

I also added a selection animation for input feedback and trimmed down my math. The menu alone is now 800 tokens but at least it's a round number and easy to build a crafting system with.

P#87982 2021-02-21 20:02 ( Edited 2021-02-22 23:47)

:: Unfold ::

Cart #flipknight-0 | 2020-12-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
126

I maintained a tweet-log whilst developing this, if you're curious:

https://twitter.com/st33d/status/1335279243371143170​

P#85732 2020-12-24 12:28 ( Edited 2020-12-24 12:43)

:: Unfold ::

Cart #cgprospector-0 | 2020-03-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Controls

Arrow keys to move. Z or X to fire.

Walk into a gun to equip it. Collect gold / fuel / light / more guns.

The desktop build works with a gamepad plugged in (tested on Windows 10).

Cardinal Gun Prospector

You have beamed down your remote droid to loot the famed Monster Caverns. You only have enough juice to beam down a simple pop-gun next to you but plenty of weapons are left around from previous visitors. Get in there and loot as much gold as you can!

Made for the 7 Day Roguelike Challenge, 2020.

P#73757 2020-03-08 19:11

:: Unfold ::

Cart #numberwang-0 | 2020-03-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Been putting this together rather rapidly. Not only am I fast running out of tokens with no room for polish, I'm finding the gameplay a bit dull.

The idea is that you can only attack on higher ground. Same for the monsters. This is sort of interesting because it leads to a fair bit of dancing around to find a spot where you can attack. But I'm honestly just back-tracking whenever I meet a monster. Changing the numbers as a result of attacks keeps me and the monsters moving, but not in a way I find interesting.

I tried bigger maps with scrolling, but a grid of numbers trundling along is a great source of motion sickness. This idea seems better suited for a much smaller map. I'd probably make more use of the spells by virtue of accidentally looking at them.

Hopefully there's still time left in 7DRL to hack this apart and make something else. But I've gotten this far so I thought it fair to show what I've done.

P#73607 2020-03-02 08:41

:: Unfold ::

Cart #recursive_shadowcasting-0 | 2020-02-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
11

What's a roguelike without some lighting? #7DRL is fast approaching so I thought I'd re-familiarise myself with pico8. I've ported shadowcasting before but someone on this forum has already done that for me. Unfortunately it's not in cart format where I can see it in action. So let's fix that.

I did some small changes:

  • "cast" gets used for a lot of things so I called it fov instead
  • Recursive shadowcasting calculates within a square, which looks ugly. I've added a distance check to slice off those hard corners.

Here's the url of the original post: https://www.lexaloffle.com/bbs/?pid=28780

Obviously I'm not looking at pico8's map, just one I've generated. But one could modify it to taste. I'm also being quite wasteful because I only need to iterate through the keys in "visible", but I wanted to be certain there were no bugs and this proves the point.

P#73376 2020-02-23 16:03 ( Edited 2020-02-24 10:39)

:: Unfold ::

Cart #pakpok-1 | 2021-10-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
135

Left,Right to move.
Z,X to jump. Hold jump to glide.

Wanted to make something with the game-feel-onomatopoeia of "pak-pok". There's a lot of this in games (eg: Mario turtle shells) but the "pok" usually ends in death.

My last cart-game featured a lot of death so I felt like making something nice instead. But then I kinda needed spikes. Sorry. It's a little bit violent, but no one dies.

This game is built on top of the simple platformer engine I posted here: https://www.lexaloffle.com/bbs/?tid=35086

Thanks to the following for helping test the game: Mark Foster, Hafiz Azman, Dugan, Paul Jeffries, Martin Ferenc, German Gonzalez

P#67558 2019-09-11 18:57 ( Edited 2021-10-22 19:08)

:: Unfold ::

Cart #cratesncrushers-1 | 2021-09-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
19

Version 0.2

Pros

  • Ledges (top only).
  • Moving platforms.
  • Crates that can push crates on moving platforms whilst you stand on top.
  • Reads the map as level geometry.
  • The above features can be removed to retrieve tokens.
  • Can probably be optimised.

Cons

  • No slopes.
  • 2618 tokens (the raw engine is 1711 but you still need to make a player, enemies, update, etc).
  • First come, first served resolution: You only get 1 collision contact (you have to be creative to get more).

Updates

Updated this page and rewrote the engine to use less tokens and be more extendable. Only saved 252 tokens sadly but every little helps.

P#66704 2019-08-15 20:27 ( Edited 2021-09-07 19:35)

:: Unfold ::

Cart #metrash-2 | 2019-08-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
39

METRASH

A top-down-shooter metroid-like.

Cursors keys to move, Z / X to fire.

1 hour or less playtime, does not save.

This is my first Pico-8 project. Apart from the class definition (which I abstracted) I wrote the whole thing from scratch in 2 weeks of spare time. This meant it turned into more of a shmup odyssey than a metroidvania. I will have to listen to a lot of feedback before I know what weapons, monsters, and topography would have worked better.

Let me know what you'd expect from a sequel.

P#66332 2019-08-03 12:15 ( Edited 2019-08-08 07:37)

Follow Lexaloffle:          
Generated 2023-11-28 09:45:23 | 0.085s | Q:59