POW Shoe! (v 1.1)

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

danski
Goomba
Goomba
Posts: 2
Joined: Wed Feb 10, 2021 2:54 pm
Pronouns: he/him

POW Shoe! (v 1.1)

Postby danski » Wed Feb 10, 2021 3:20 pm

A fun little custom powerup that turns Kuribo's Shoe into an earthquake machine. Make sure to import the graphics and notepad into your level/episode folder.

Image
https://drive.google.com/drive/folders/ ... sp=sharing

New tweaks:
- Now two-player compatible!
- Animation slightly improved

Let me know if you find any bugs or have any suggestions. Otherwise, happy stomping!
Last edited by danski on Sat Feb 13, 2021 2:06 am, edited 1 time in total.

MegaDood
Charged Spiny
Charged Spiny
Posts: 1804
Joined: Wed Nov 01, 2017 2:43 am

Re: POW Shoe!

Postby MegaDood » Thu Feb 11, 2021 4:15 am

Oh this is really neat! It looks like it could be used for some puzzle levels, especially involving reset doors.

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: POW Shoe!

Postby MrDoubleA » Thu Feb 11, 2021 5:59 am

Pretty neat, although the code is weird in some places. A few notes:
- You shouldn't load any image every time you draw it, it should be stored in a variable (and Graphics.draw is a bit outdated)
- player:harm() won't work if the player has invincibility frames
- It doesn't account for forced states or being dead
- You can use player.mount instead of player:mem(0x108,FIELD_WORD)

.. but overall, nice!

danski
Goomba
Goomba
Posts: 2
Joined: Wed Feb 10, 2021 2:54 pm
Pronouns: he/him

Re: POW Shoe!

Postby danski » Thu Feb 11, 2021 2:09 pm

MrDoubleA wrote:
Thu Feb 11, 2021 5:59 am
Pretty neat, although the code is weird in some places. A few notes:
- You shouldn't load any image every time you draw it, it should be stored in a variable (and Graphics.draw is a bit outdated)
- player:harm() won't work if the player has invincibility frames
- It doesn't account for forced states or being dead
- You can use player.mount instead of player:mem(0x108,FIELD_WORD)

.. but overall, nice!
Thanks for the feedback. Much appreciated! Knowing player.mount is a thing would have saved me a lot of time searching the wiki in my other scripts! What do you recommend I use instead of graphics.draw?

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: POW Shoe!

Postby MrDoubleA » Fri Feb 12, 2021 5:56 am

danski wrote:
Thu Feb 11, 2021 2:09 pm
MrDoubleA wrote:
Thu Feb 11, 2021 5:59 am
Pretty neat, although the code is weird in some places. A few notes:
- You shouldn't load any image every time you draw it, it should be stored in a variable (and Graphics.draw is a bit outdated)
- player:harm() won't work if the player has invincibility frames
- It doesn't account for forced states or being dead
- You can use player.mount instead of player:mem(0x108,FIELD_WORD)

.. but overall, nice!
Thanks for the feedback. Much appreciated! Knowing player.mount is a thing would have saved me a lot of time searching the wiki in my other scripts! What do you recommend I use instead of graphics.draw?
The Sprite class is a good option (documented in its file, sprite.lua). Also, are you using the new docs?


Return to “LunaLua”

Who is online

Users browsing this forum: Petal [Bot] and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari