Banner
Views: 875,034,524
Time:
25 users online: 0ne_bins211, badummzi, ChrizStylez, codfish1002, cozyduck, Darktlion, Darolac, DoodleMyNoodle, Gammed Z, GGMadMan, Gulaschko, le4che, Mr Esc, Mr. MS, OnlySpaghettiCode, OrangeBronzeDaisy, Pimpf98, qantuum, RPG Hacker, simon.caio, TheJank, Triforce7,  xHF01x, Y.Y., yogui - Guests: 67 - Bots: 72 Users: 48,792 (2,460 active)
Latest: Santali
Not logged in.
Quake code
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Quake code
Pages: « 1 » Link
Anybody know the quake code (for stop mario) found in sledge bro and ground pound koopa and how should insert??
What place should insert that code??
JSL $0286BF might work. I haven't tried it though.


--------------------


 
Code
			LDA #TIME_TO_SHAKE
			STA $18BD


As for where to place it, that's mostly common sense, and depends on your sprite. You obviously don't want it to keep Mario stunned all the time, so don't place it right at the start of the MAIN routine or something.
I need make the sprite 32x32
In the sprite function (perhaps main routine),where should put??

;===================================
;Sprite Function
;===================================

RETURN: RTS

SpriteCode:
JSR Graphics
LDA $14C8,x ;\
CMP #$08 ; | If sprite dead,
BNE RETURN ;/ Return.
LDA $9D ;\
BNE RETURN ;/ If locked, return.

JSR SUB_OFF_SCREEN_X0 ; Handle offscreen.

LDA $1588,x
AND #$03
BEQ NoFlip
LDA $157C,x
EOR #$01
STA $157C,x
NoFlip:
LDY $157C,x
LDA XSPD,y
STA $B6,x
JSL $01802A
JSL $01A7DC
BCC skip
jsl $00f5b7
skip:
RTS
XSPD: dcb $08,$F8
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Quake code

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