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

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!

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!

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!

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

#gjbroadcast

Big news for From Below (NES) and From Below Pocket (GB) physical editions!

Full Update: https://mailchi.mp/9df0515acedb/from-below-update-3

Short Version: Both NES and GB will start shipping next week!

Woohoo!!! #nesdev #gbdev

Dive into the cozy post-apocalyptic open world of Critter Cove!

Gentleman Rat Studios (@GR-Rob ) describe it as β€œa little bit Animal Crossing, a little bit Stardew Valley. Maybe even a little bit Windwaker, too."

Wishlist the game: https://bit.ly/CritterCove

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

🚨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

Mae Borowski is the main character of Night in the Woods! It's an adventure game that tells the story of her return to her hometown of Possum Springs. She was confirmed as canonically pan in a social media post by the game's creator Scott Benson.

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!