Log In  
Log In  

Cart [#50452#] | 2018-03-15 | License: CC4-BY-NC-SA | Embed
26

Suzie and Bob are trapped in a merciless world. Can you fight your way out?

Gameplay Elements

  • Random maps
  • Multiple biomes

  • Multiple enemies
  • Multiple weapons (but one at a time!)
  • Loop-based difficulty
  • Supports keyboard/mouse

Controls


Keyboard:

  • arrow keys: move & gun direction
  • bttn 1: fire & lock direction
  • bttn 2: pick up weapon

Mouse (selected in option menu):

  • arrow keys: move
  • mouse: gun direction
  • left click: fire
  • right click: pick up weapon

Note: any resemblance with a famous Vlambeer game must be purely accidental...

Changelog


1.2:

  • fixed: woobly sprites
  • fixed: actors stuck on corners
  • fixed: warp in/out effect
  • changed: impact feedback
  • changed: health upgrade on loop

1.1:

  • fixed: unexpected god mode
  • fixed: boss hp
  • fixed: boss attack
  • changed: tweaked game speed
  • change:balanced high level gameplay (loop)

1.0:

  • preview version

Dev Log


2nd finished game (last was Thunderblade). Took 4 months to complete & refine.
Un-minified source available on Github:
freds72/pico8/carts/nuke.p8

Tech Highlights
JSon Rules!
All entities (actors, weapons, particles, levels) defined using json (worth 3500 tokens!). A lightweight parser (450 tokens) converts strings into lua tables.

Entities are created using a parent template with support for:

  • lua references
  • random values
  • method & attributes override

Rotating Sprites
Player weapon (and couple of other sprites) are rotated in real-time using an optimized sprite routine. It is fast enough to allow ~10+ sprites on screen (before tanking FPS!)

Performance
An actor map is maintained each frame. It allows immediate bullet/actors lookup.
Only player/npc collisions are checked to ensure player cannot zip through enemies.

A-* path is refreshed for a single npc per frame. It ensures a large number of npc’s can be created without too much cpu stress.

Sprites are added to buckets matching their y pixel coordinate.
Saves both cpu and tokens as no global sort is required :]

Toolchain
Cart is minified using picotool (19k compressed). All json attributes are replaced by their short equivalent using output from minification script:
cat nuke.p8 | minify | replace > nuke_mini.p8

Missing In Action:

  • RPG aspects (upgrades/xp/abilities...)
  • Good music (for total lack of musical skills!!)
  • Scoreboard

Credits

P#48516 2018-01-24 15:49 ( Edited 2018-03-15 21:52)

Damn, this is awesome! I had a lot of fun figuring out strategies and whatnot, and finally beating 1-4 (I've never played the original).

P#48517 2018-01-24 17:16 ( Edited 2018-01-24 22:16)
:: Felice

I hate to sound like an idiot, but I can't figure out how the controls work.

P#48533 2018-01-25 04:05 ( Edited 2018-01-25 09:05)

Added a controls section :)

P#48536 2018-01-25 05:39 ( Edited 2018-01-25 10:39)
:: Felice

Ah! I was wondering why the mouse wasn't working, even though it appeared to be in the gif. Thanks!

P#48539 2018-01-25 05:57 ( Edited 2018-01-25 10:57)
:: Felice

Okay, now that I can play properly, I must say: fantastic game. :)

I did notice mobs getting stuck on walls at times. You might have an off-by-one issue in your a* implementation.

P#48540 2018-01-25 06:02 ( Edited 2018-01-25 11:02)

I’ll probably start another thread on the a-* bug. Seems to be linked with rounding issues (I have a standalone repro sample).

P#48542 2018-01-25 06:30 ( Edited 2018-01-25 11:30)
:: ash

wow! Nuclear Throne is one of my favorite games. What a trip to find an homage of it here. Great job capturing the style of the original in such a tiny package

P#49582 2018-02-23 21:00 ( Edited 2018-02-24 02:00)

Tks - How far did you go?

P#49598 2018-02-24 07:53 ( Edited 2018-02-24 12:53)

This is very nice. How long did this take to make?

P#49599 2018-02-24 08:10 ( Edited 2018-02-24 13:10)

Something like 4 months, about 1h/day (a good deal of it during commute time).

P#49601 2018-02-24 09:29 ( Edited 2018-02-24 14:29)
:: Felice

Now that's making great use of otherwise-wasted time.

P#49626 2018-02-24 21:58 ( Edited 2018-02-25 02:58)

Very nice. Great use of commute time there.

P#49679 2018-02-25 17:54 ( Edited 2018-02-25 22:54)

[Please log in to post a comment]

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-12-14 19:14 | 0.047s | 4194k | Q:58