Loading...
2,429
3 years ago

Here's a fun little NES programming trick I was shown tonight.

The problem: how to hide sprites that pass over HUD at the bottom of the screen?

The HUD isn't actually on a separate layer or anything, so how can I get sprites to go behind it? ๐Ÿงต


Solution: At the moment the HUD starts drawing, clear all the sprite graphics to blank tiles.

Technically, the sprites continue to render over the HUD, but now they are just empty squares!

Turns out that this is exactly how how Super Mario Bros 3 handled things!

In great company ๐Ÿ˜



3 comments

Loading...

Next up

When making games on the NES, nothing is easy!

With a LOT of help from the #nesdev Discord, I was able to clean up the seam above the status bar.

Also there's some new (temp) art, and I even perform the forbidden mid-frame palette update for extra colors!

MASSIVE Game Boy Homebrew GIVEAWAY! We're giving away physical copies of 4 new Gameboy games to 1 winner! From Below is on sale NOW: http://shop.matthughson.com ๐Ÿšจ ENTER HERE: https://twitter.com/matthughson/status/1710641131590221843 ๐ŸGiveaway ends Oct 11th 11:59PM PT

Time is almost up on a new GAME BOY and NES title!โฒ๏ธ

Only 2 week left to pick up a physical copy of "From Below Pocket" for the Game Boy, and "From Below" for the NES! ๐Ÿฆ‘

Both come complete in box with free global shipping! ๐Ÿ“จ

shop.matthughson.com

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt!ย 

Head over to the shop to collect yours ๐Ÿ‘‰ https://gamejolt.com/#shop

"Ghost Piece" is now available in From Below Pocket via a "patch/hack" for anyone interested! It comes with the game when purchased on itch.io! Warning: It's very untested, and probably has perf issues. ๐Ÿ˜… https://mhughson.itch.io/from-below-pocket/devlog/617249/ghost-pโ€ฆ

Play @pm-studios ' Bandit Trap Open Beta!

Grab your rocket chairs, vacuums, and toilet tornadoes! Report one more time for our final beta! Live through March 23rd 6 am CET.

Complete quests based on the game!

Play the beta: https://bit.ly/BanditTrapBeta

Here's something you don't see in every NES game:

A platformer with ZAPPER support! Super Sunny World allows a 2nd player to kill enemies with the Zapper Gun.

#nesdev

It's the FINAL push for From Below!

shop.matthughson.com

Sale ends 11:59PM PT!

If you know folks who love Game Boy, Tetris, NES, or Homebrew... LET THEM KNOW!

If you're on Reddit, Discord, social media... anything: Every share makes a HUGE difference!

BIG NEWS: Your Bandit can wear a Game Jolt hat and shirt in Bandit Trap!

Defend your home or steal treasure in the open beta: https://bit.ly/BanditTrapBeta

It ends on March 23rd at 6 am CET!

Only 48hrs left to pick up my new game for your Nintendo Game Boy & NES!๐Ÿฆ‘

https://shop.matthughson.com

Preorder ends Oct 16th, 11:59PM PT! Do not miss it!๐Ÿ—“

$60USD w/FREE SHIPPING!๐Ÿ’Œ

Compatible with EVERY model of Game Boy, including Super Game Boy!