SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Yet another Sonic Adventure mod (AnotherAdventureMod.wad) Details »»
Yet another Sonic Adventure mod (AnotherAdventureMod.wad)
Version: 1.0, by GlitchyGamer2401 (Former Mechatar) GlitchyGamer2401 is offline
Developer Last Online: Aug 2017

Category: Version: SRB2 Rating:
Released: 08-13-2017 Last Update: Never Installs: 1
Scripts Re-Useable Content Sprites/Graphics

Since I'm new here, I thought I might as well post a wad I've been working on from before I made this account.
It's a simple mod that makes the game slightly more like the adventure games and some snippets of Sonic Advance and Sonic 3, while trying to stay true to the vanalia SRB2. The important part of this wad is the new monitor sprite that I've drawn form scratch. There are a few replaced sounds and a few simple LUA scripts.

features-
-given Sonic homing attack
-Tails can drop out of flight with spin button
-Tails has hold-fly
-Tails and Knuckles can become super in single player
-Knuckles has multiability
-Knuckles has infinite glide when super
-Multiability when super
-has its own savedata



I am aware of the many Sonic Adventure mods on the forums, but as my first wad, I felt the need to post this.

-Added alternate version that only changes monitors

Download Now

File Type: rar AnotherAdventureMod.rar (330.6 KB, 267 views)
File Type: rar AnotherAdventureMod-monitors-only.rar (28.6 KB, 117 views)

Screenshots

Click image for larger version

Name:	screenshot.png
Views:	100
Size:	11.1 KB
ID:	11156  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 08-13-2017   #2
Prime 2.0
Actually a decent lazy bum
Moderator
 
Prime 2.0's Avatar
Default

Welcome to Releases!
__________________
Science tells us that nothing can be proven, only rendered more likely to be true. If we do not question what we already know, how can we know, much less admit, when we're wrong? Such things are vital to progress.
Prime 2.0 is offline   Reply With Quote
Old 08-13-2017   #3
GlitchyGamer2401
Former Mechatar
 
GlitchyGamer2401's Avatar
Default

Thanks, I wasn't expecting this to be released so quickly!
GlitchyGamer2401 is offline   Reply With Quote
Old 08-14-2017   #4
Lach
Latch? Lock?? Lack???
 
Lach's Avatar
Default

First of all—nice monitor sprites, at least in my opinion. Probably one of, if not the best looking Adventure-style graphic I've seen in SRB2. Kudos.

Secondly, I have a couple of little optimization tips for your Lua. The game runs through each MobjThinker hook and each ThinkFrame hook during every frame of gameplay. This means if I'm playing as Sonic, I'm still iterated through each every one of Tails' and Knuckles' thinkers, even if their code doesn't actually execute for me. I'd recommend merging all of the MobjThinkers into one large MobjThinker hook and all the ThinkFrame hooks into one large ThinkFrame. So instead of
Code:
addHook("ThinkFrame", do
    for player in players.iterate
        if player.mo and player.mo.skin == "sonic"
            //code and stuff
        end
    end
end)

addHook("ThinkFrame", do
    for player in players.iterate
        if player.mo and player.mo.skin == "tails"
            //code and stuff
        end
    end
end)
Just do
Code:
addHook("ThinkFrame", do
    for player in players.iterate
        if player.mo
            if player.mo.skin == "sonic"
                //All of Sonic's code
            elseif player.mo.skin == "tails"
                //All of Tails' code
            end
        end
    end
end)
That way you only iterate through every player once. It's not a huge difference in this case, but it's good practice and it is more efficient, especially if you have a lot of wads loaded.

Second protip: in a MobjThinker hook for MT_PLAYER, mobj.player.mo just points back to mobj. I.E., mobj.player.mo.skin is the same as mobj.skin. You want to avoid redundancy wherever possible since that's inefficient. It's also less typing which is a plus!
Lach is offline   Reply With Quote
Old 08-14-2017   #5
GlitchyGamer2401
Former Mechatar
 
GlitchyGamer2401's Avatar
Default

Ill keep that in mind if I make any larger wads, thanks for the tip.
GlitchyGamer2401 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.