Views: 705,615,535
19 users online: ATalkingChair, bandicoot, BTD6_maker, o Decoy Blimp, Dr. Tapeworm, edgar, Eevee, idol, o Koopster, o LethalBrownies, LHB, LMPuny, o Manofer, Matheus2653, MiniMawile303, o Mirann, Nachtion, o Noivern, RanAS - Guests: 66 - Bots: 134Users: 36,862 (1,445 active)
Latest: Firu
Tip: The lowest row of 16x16 tiles in a level do not appear. Avoid having a low platform that looks like a bottomless pit.Not logged in.
Details for Tower of Heaven fan
SMW Blocks - Tower of Heaven fan
File Name: Tower of Heaven fan
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
Posted by: EcTo -
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 -
i cant get the uberasm to work so i guess i'm not using this block
Posted by: o Hobz -

Wind blocks does not accelerate. My fan blocks leave the player with momentum after leaving the block.
Posted by: GreenHammerBro -
What's the difference between this and the Wind Blocks?
Posted by: chineesmw -
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 -
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...

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

... 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 -
H.carrell on an ipad
Good block
Posted by: H.carrell on an ipad -
Pink Gold Peach
GHB, i'm your fan
Posted by: Pink Gold Peach -

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

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

Total queries: 26


Follow Us On

  • Facebook
  • Twitter
  • YouTube


  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • MFGG
  • Gaming Reinvented