Log In  

Cart #cursed_sword-13 | 2021-06-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cursed Sword


There is a place deep in the wilds where worlds collide. Above a buried dimensional rift, priests of chaos built a temple to harness its power for themselves, delving ever nearer to the rift. But a foolish high priest entered the rift itself and returned wielding a sword he could neither sheathe nor cast away. The sword demanded blood and he slew his entire priesthood to sate the blade, lest it destroy him too. With no one left to sacrifice, the sword slew him in turn. The sword has since passed from host to host, wreaking destruction and death. And through cruel fate, the cursed sword now rests in your hand. Can you cast it back from whence it came, or will its curse claim you too?


Cursed Sword is a simple roguelike based on Krystman's game Porklike, and his youtube tutorial Pico-8 Hero. It is currently a work-in-progress, and I am still working out some of the kinks.

How to play

  • Goal: Find the stairs to get closer to the rift on Floor B12!
  • Killer Sword: Your sword demands blood! Kill enemies for more ⧗, or your sword will drain your ♥ with every step!
  • Combat: Enemies move when you move! Bump them to attack!
  • Treasure: Bump chests and vases to see what's inside!
  • Menu: Press (X) button to open a menu, (X) button to make a selection, and (O) button to go back!
  • Keyboard Controls: (X) button = X, (O) button = Z/C
  • Gems: The priests crafted magic gems that can be slotted into your sword. Open the inventory menu with (X) to equip them!
  • Luck: Increase your luck to dodge more attacks, get better treasure, and more!


Deepest thanks to Krystian Majewski of LazyDevs academy for the use of his game Porklike as an engine for this game. Much of the code of this game was designed by him, and I thank him especially for his ingenious level procedural generator, and the binary signature technique.

Thanks to Maddog22, who conceived many of the power gems and tested the game thoroughly. Thanks, MD!

The JSON parser program was designed by tylerneylon, adapted by feneric, which tylerneylon has released into the public domain. Feneric's adaptation of it is released under the GPL v3 license.

Some enemy artwork (tiles 192-203,208-213,224-31) licensed from Oryx Design Labs, www.oryxdesignlab.com. These designs are not released under this game's license, and Oryx Design Labs reserves all rights.

The rest, I suppose, was designed by me!

Dev Notes:

I wrote most of the code in this game while holding my newborn son, Leo. He is the co-producer of this game, as he made it impossible for me to move for long periods of time while I held him.

The code of this game is a Frankenstein mess, and it's because a lot of it is just hacking the engine developed by Krystman. I innovated a few things, but the problems with the code are mine, not his! In particular, if I could do it again, I would have followed Krystman's tutorial to the letter, and then gone back and start from scratch armed with what I learned. So, in short, my apologies for the code being substandard in places, that is my fault, not Krystman's. In particular, I regret the use of too many global variables to control logic flow, and too many big dumb if-then statements for state machines. My next game will be better!

One thing that is interestingly different from Porklike is the use of a JSON parser. I wanted this game to be data driven, and to have a really easy way of editing those data when a change was necessary. I think that worked out very well, and allowed for the gems to be procedurally generated in an object-oriented way.

EDIT 1: some values weren't being properly reset after a game over. This has been fixed!

P#93257 2021-06-09 15:43 ( Edited 2021-06-11 00:08)


this is very nice! did you follow the Porklike tutorial?

P#93260 2021-06-09 17:03

Love the ways you updated the original mechanics from Porklike and took it in a new direction. I've played a lot of the Porklike mods/variations/homages and this is my favorite so far.

P#93263 2021-06-09 18:31

This is great, I love me a good porklike-like!

P#93271 2021-06-09 20:58
:: cjgib

Thanks everyone! This was based on the Porklike tutorial! Porklike is a great game, with a great tutorial! Also, Porklike-like describes this game perfectly :)

P#93280 2021-06-09 23:25

I'll keep an eye out for when you release this, it is looking to be a great game!

P#93313 2021-06-10 18:14
:: cjgib

Thank you! I have some more features in mind before I call it good!

P#93337 2021-06-11 02:25
:: alexc

This is very well done, good job.

P#93369 2021-06-12 05:18
:: cjgib

@alexc Wow, thanks so much, and thanks for playing!

P#93401 2021-06-13 04:19

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-06-13 14:18:08 | 0.035s | Q:25