Banner
Views: 934,000,676
Time:
14 users online:  Carld923, dirty, ElderSubZero, FrozenQuills, GrumpyWalrus, Hooded Edge, Qwoll,  RussianMan, Sariel, Shuttles, Sir_Danny_TM, The Central Scrutinizer, will___, Worl - Guests: 76 - Bots: 204 Users: 52,112 (2,121 active)
Latest: bob_ahhh123
Tip: When using custom palettes, remember that certain colors in palettes 0 and 1 will also affect the status bar.
Not logged in.
Details for Coding a Graphical Bar, with Base ASM (v5.00)
Documents - Coding a Graphical Bar, with Base ASM (v5.00) Link - Show random
File Name: Coding a Graphical Bar, with Base ASM (v5.00)
Added:
Version History: View
Authors: HammerBrother
Platforms: SNES
Games: SMW
Type: Tutorial
Language: English
Description: This contains a template for displaying a value of something as a graphical bar on the HUD. See readme on how to use.

Github: https://github.com/GhbSmwc/SMW-Graphical-bar-display
Tags: bar, health bar, hud, sa-1
Rating: No rating
Download: Download - 1.00Ā MiB
44 downloads
Screenshots
Previous 
 Next
MarkAlarm
Moderated with:
- Windows 10 Home
- Google Chrome

Incredibly thorough documentation on graphical bars with tons of examples. There's a lot here so I might've missed something but it's overall quite solid. Hopefully people find this useful.
Posted by:  MarkAlarm - | Link
HammerBrother
Black Goku Yes, just edit the defines that would point to JSL !SharedSubroutineDefines to instead a label that would point to its code (a subroutine within the sprite code ASM) or Pixi's routines folder (must be %SubroutineFilenameFromRoutinesFolder()). And then move (cut/copy, then paste) the code to its code or in the routines folder.

I prefer the shared subroutines patch because it makes it accessible on any ASM resource (like have a bar for the HUD and as a sprite) than just uberasm tool or pixi. Another reason is that you cannot call a subroutine within another, separate subroutine file in a daisy chain -like fashion:

Originally posted by uberasm tool - readme.txt
Code
The second one is that you can't call other libraries codes from a
library file. For example, if you have a windowing HDMA code and you
need to call a sqrt routine, which is located on the math library, you
can't do that, because UberASM Tool can't guess what labels each file
will generate nor what labels each library .asm file will depend from
each other. So unfortunately the library files are pretty much
isolated from each one.
Posted by: HammerBrother - | Link
Black Goku
Is there some way to use the boss health mether without the Shared Subroutines Patch?
Posted by: Black Goku - | Link
HammerBrother
OAM (sprite tile) support added.
Posted by: HammerBrother - | Link

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks