Banner
Views: 583,739,354
Time: 2017-11-20 07:07:40 AM
6 users online: Bad luck man, JonKaruzu, MercuryPenny, Najeraldo, o RealMarioGamer, Sixcorby - Guests: 26 - Bots: 210Users: 33,001 (1,432 active)
Latest: Petrifying
Tip: Add decorations to the overworld. Don't leave large empty grass or sea regions.Not logged in.
Details for Tower of Heaven fan
SMW Blocks - Tower of Heaven fan
File Name: Tower of Heaven fan
Added: 2016-05-30 09:58:04 PM
Authors: GreenHammerBro
Act As: 25
Includes GFX: Yes
Description: This is a fan from tower of heaven that launches the player up. Unlike boost blocks, this one is acceleration-based, meaning that the player doesn't "bounce" upwards, rather gradually rises up and launches the player.
Tags: acceleration, physics, platformer, tower of heaven
Rating: 4.9 (Votes: 7)
Download: Download - 4.99 KiB
194 downloads
  Submit Update
Screenshots
Image
Koopster
tbh if a block is inefficiently coded to the point of using uberASM code when it's not needed at all, I question if it's worth accepting.
Posted by: o Koopster - 2017-05-13 01:28:15 AM
Hobz
i cant get the uberasm to work so i guess i'm not using this block
Posted by: o Hobz - 2017-05-13 12:59:59 AM
GreenHammerBro
@chineesmw

Wind blocks does not accelerate. My fan blocks leave the player with momentum after leaving the block.
Posted by: GreenHammerBro - 2016-07-22 07:05:09 AM
chineesmw
What's the difference between this and the Wind Blocks?
Posted by: chineesmw - 2016-06-12 02:04:14 AM
GreenHammerBro
Sorry. It's because that when using all offsets of a block, the acceleration is more rapid. This is because touching multiple offsets would execute the block's code multiple times per frame.
EDIT: Also, for the sound effects, blocks can't really tell if the sound is currently playing and also cannot detect when you leave the block, therefore, uberasm and freeram is needed.

I'll update it to reuse the same byte, the bit idea was a smart move.
Posted by: GreenHammerBro - 2016-05-31 12:27:11 AM
JackTheSpades
So... this block.
It works so I accepted it but I'm really not happy with it.

The code doesn't seem to work on gamemode14 at all. Either that or I'm just doing it wrong but I know for a fact that changes to $15 in gamemode14 have no effect since it runs before the controller is updated, so the whole...

Code
	LDA #$80
	if !Setting_HoldJump == 1
	  TRB $15            ;>Clear the hold jump button
	endif
	if !Setting_HoldJump == 2
	  TSB $15
	endif


... is useless in gamemode14. While on that topic, why not put the LDA inside the if?
Anyway, putting minor coding related things aside (such as using BRA .return instead of just RTS) I have two real problems with this code:

1. The wast of a freeRAM. If all you're doing is using freeRAM as a flag to check if something has happened (LDA !flag : BEQ .skip) you really don't need a second freeRAM address, just set the bits of the first address for different meanings:

!Freeram_Fanned = $60 ; ---- --si
; i=inside block
; s=sfx played

2. The use of uberASM. I know there are certain things you can't do using just block code, but here it just seems wasteful. Basically, all your block does is set a flag and let uberASM do all the rest. This is more of a personal oppinion but I always hate it when I download a block and see if I have to patch something else to make it work.
Anyway, back to topic, in this blocks case, I don't get it. Since, if you remove the SFX sound effect (which gets pretty anoying after a while anyway) you can do everything inside the block code without using uberASM at all, by simply copying the code between .AccelUp and .OffRan to where LDA #$01 : STA !Freeram_Fanned is.
Not only does that remove the need for uberASM but also for any freeRAM..

Gotta admit though, with the SFX, you probably need it. Even so, I'd like this a lot more if the code was layouted in a way that the block works on it's own and you have the option to use freeRAM + uberASM for the sound effect.
Posted by: JackTheSpades - 2016-05-30 10:11:04 PM
H.carrell on an ipad
Good block
Posted by: H.carrell on an ipad - 2016-05-30 08:47:42 AM
Pink Gold Peach
GHB, i'm your fan
Posted by: Pink Gold Peach - 2016-05-27 01:28:51 AM

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

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


Total queries: 27

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented