Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,490,838
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-27-24 03:17 AM
Guest: Register | Login

0 users currently in SMW Hacking | 1 guest | 1 bot

Main - SMW Hacking - More Blocktool Omega goodness New thread | New reply


Sukasa
Posted on 10-15-07 03:05 AM (rev. 3 of 10-17-07 01:55 AM) Link | Quote | ID: 67714


Red Birdo
Level: 92

Posts: 516/2112
EXP: 7689783
Next: 67154

Since: 02-19-07

Last post: 4448 days
Last view: 3220 days
So, I got the main BTO code done (65c816, at least). Now, one thing that was suggested to me was an 'API' or sorts, basically a bunch of predefined routines so that people would have as easier time making blocks. I don't have many ideas for routines, but here are the ones I have currently.

  • Kill Mario
  • Hurt Mario
  • Change MAP16 Block
  • Create "Block Shatter" effect


Now, the first 2 and last one would probably just be defining the preexisting SMW routines, as well as possibly changing the MAP16 block. Basically, usage woudl go something like this

code
code
JSR SOME_API_CALL
code
code


So, my questions are;
  1. What other routines or functions could anyone suggest, and
  2. Any comments on the idea of a "Standard Block API?"


  3. This below is the list of currently planned API routines, and any parameters

    KILL_MARIO
    HURT_MARIO
    ALTER_MAP16 New_Block
    EXPLODE Blink
    STUNABOVE
    BRICKBOUNCE Custom Sprite ID (It's the easiest way. Yeah, I'm lazy.)
    CREATE_SPRITE Sprite_ID Is_Custom

smwedit
Posted on 10-15-07 04:07 AM Link | Quote | ID: 67716


Goomba
Level: 14

Posts: 2/27
EXP: 10995
Next: 2076

Since: 07-03-07

Last post: 5821 days
Last view: 5032 days
Here are some predefined routine suggestions:
  • Create the brick bounce effect (with some ram addresses to tell what block to turn back into, what palette, and tile number)
  • Stun sprites on top of the block

Smallhacker
Posted on 10-15-07 08:09 AM Link | Quote | ID: 67729


Panser
Swedish weirdo times eleven

Level: 42

Posts: 208/339
EXP: 494502
Next: 26860

Since: 02-19-07
From: Stockholm, Sweden

Last post: 5185 days
Last view: 5185 days
Posted by Sukasa
KILL_MARIO
HURT_MARIO
ALTER_MAP16 New_Block
EXPLODE



The explode subroutine takes a parameter (A, IIRC) that determines whether or not the block should blink when exploding.

____________________
SMW Central

blackhole89
Posted on 10-15-07 02:17 PM Link | Quote | ID: 67736


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 677/4196
EXP: 21534113
Next: 302488

Since: 02-19-07
From: Ithaca, NY, US

Last post: 472 days
Last view: 84 days



What happened to my suggestion of making a subroutine to call another block's handler code by ID offset or absolute ID (without changing the actual map16 number of the current block)?

____________________



Sukasa
Posted on 10-16-07 05:55 AM Link | Quote | ID: 67813


Red Birdo
Level: 92

Posts: 517/2112
EXP: 7689783
Next: 67154

Since: 02-19-07

Last post: 4448 days
Last view: 3220 days
Missd it, I'll add it in with the others.

Smallhacker
Posted on 10-16-07 10:17 AM Link | Quote | ID: 67820


Panser
Swedish weirdo times eleven

Level: 42

Posts: 209/339
EXP: 494502
Next: 26860

Since: 02-19-07
From: Stockholm, Sweden

Last post: 5185 days
Last view: 5185 days
Hm... "Create sprite"? ...or is it easier to just use the default subroutine for that?

____________________
SMW Central

Sukasa
Posted on 10-17-07 01:54 AM Link | Quote | ID: 67839


Red Birdo
Level: 92

Posts: 519/2112
EXP: 7689783
Next: 67154

Since: 02-19-07

Last post: 4448 days
Last view: 3220 days
Posted by Smallhacker
Hm... "Create sprite"? ...or is it easier to just use the default subroutine for that?


Easiest to make the original routine easily accessible.

blackhole89
Posted on 10-17-07 04:35 AM Link | Quote | ID: 67842


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 685/4196
EXP: 21534113
Next: 302488

Since: 02-19-07
From: Ithaca, NY, US

Last post: 472 days
Last view: 84 days



How about an extended ALTER_MAP16 routine that takes an X and Y offset from the current block, so you could, for instance, have it alter the block above or two blocks below?

____________________



boingboingsplat
Posted on 11-05-07 02:29 AM (rev. 2 of 11-05-07 03:05 AM) Link | Quote | ID: 69183


Giant Koopa
[PREFSTRING:wonderful bounciness]
Level: 74

Posts: 67/1292
EXP: 3633921
Next: 19623

Since: 07-23-07
From: Michicola

Last post: 4842 days
Last view: 4805 days
How about a routine that creates a glitter trail after it? Like after you collect a coin.

____________________
 

Main - SMW Hacking - More Blocktool Omega goodness New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.021 seconds. (341KB of memory used)
MySQL - queries: 67, rows: 96/96, time: 0.015 seconds.