HackJam voting closes in
Views: 961,101,765
18 users online: bandicoot, bd90492, detdu, dogemaster, drspork, Green Jerry,  Hooded Edge, janklorde, Jonathan Retrogamer, katun24, Knight of Time, Leo,  LMNtals, Royal Nico TS, ShadowAlexandre, SpaghettiJohn,  Teows,  Thomas - Guests: 96 - Bots: 81 Users: 53,195 (2,292 active)
Latest: jjnanobot22
Tip: The lowest row of 16x16 tiles in a level do not appear, unless the "Allow viewing full bottom row of tiles" box is checked in the #lm{MARIO69} menu. Be mindful of this when designing levels!
Not logged in.
Chest Block by Freitasth
Forum Index - Valley of Bowser - Moderation Questions - Blocks - Chest Block by Freitasth
Pages: « 1 » Link
File Name: Chest Block
Submitted: by Freitasth
Authors: Freitasth
Act As: 025
Includes GFX: Yes
Description: A block that behaves like a chest! If Mario presses up, the chest will be opened and an item will be deposited in your Item Box.

Attention: Only ONE chest can be placed per level, if you want to place more chests in a single level, change the Free Memory in the .asm file, it is simple and practical.
Tested with:

• Lunar Magic 3.11
• GPS V1.4.1
• Snes9x v1.60

The block itself works as intended. However, there are a few issues that I'd like to see addressed before the block is accepted.

The main issue is the way it's implemented - specifically, the use of freeRAM. Making it so that a different freeRAM address is required for every different chest block in a level is very restricting, and there's an easy workaround which doesn't require freeRAM at all. Simply making the map16 tile the chest changes to, act like a 25 (air) tile, will stop the player from opening the chest again, since the block's code won't be running after it changes tile. This will change it so that the chest can be re-opened if you enter a sublevel then return to the original level with the chest, but if preventing that is important then making use of item memory would also achieve the same effect without freeRAM.

Other minor issues, which aren't reasons for rejection but I'd like to see addressed:

• Lack of SA-1 compatibility: While this isn't a requirement for submitted blocks, the addition of SA-1 functionality is preferred, especially considering it would be easy to implement in this block (you just need to add "|!addr" without quotation marks on to the end of $1DFC and $0DC2).
• When checking if a value is 0 or not, you do not need to do CMP #$00. Just loading the address sets the flag to indicate if it's 0 or not, so you can immediately do the BEQ label without checking the specific value first.
• The description included with the block isn't very specific - as per block submission guideline 7, an appropriate description should be included with the block. Something along the lines of "This block is a chest that will put an item in Mario's item box when opened." would be a more suitable description.

Once these adjustments are made, the block can be accepted.
Pages: « 1 » Link
Forum Index - Valley of Bowser - Moderation Questions - Blocks - Chest Block by Freitasth

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

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


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