Loading...
2,428
2 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

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

🚨1 WEEK LEFT!🚨 🚨GAMEBOY PREORDER!🚨 Last chance to get a copy of this brand new Game Boy game, From Below Pocket, as well as the NES version!πŸ¦‘ After this week, the game will be out of print, likely for YEARS. πŸ“† https://frombelowgame.com #gbdev #nesdev

An NES crossover!

The Kraken from my first NES game, "From Below", will make a cameo as one of the bosses in my next NES game, "Super Sunny World"🌞

Super Sunny World is a new pixel platformer, and a love letter to the original Super Mario Bros.πŸ„

WISHLIST!

@TofuPixel is a Jolter to Watch and a pixel artist from England who works on indie games. She likes horror, nature, and funny animals! Follow @TofuPixel before the quest ends on April 15 and you'll get Coins!

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

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

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

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!

We've updated the trending section of the Game Jolt Shop! http://gamejolt.com/#shop

Snag a new avatar frame and a sticker pack or two!

Remember, every purchase supports our creators and our community!

Support creators, shop on Game Jolt! #broadcast

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!