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

Less than 3 weeks left to snag a copy of From Below Pocket before it goes back in the vault! Sale ends October 16th, 2023! https://shop.matthughson.com/

🚨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

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

Play our game, Bloodless, and complete the Help Tomoe quest to unlock the Bloodless sticker pack!

Start the quest: http://gamejolt.com/#quest

Game Jolt has given out all of their free Steam keys!

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!

Happy Video Game Day! 🎮

Celebrate by completing our quests!

(They'll be in your quest log until September 19th.)

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

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

@GabrieleGiuseppini has added exclusive Floating Sandbox avatar frames, stickers, and backgrounds for all of you!

Set sail to the shop and collect 'em all! https://gamejolt.com/#shop

#gjbroadcast

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!