Circling Boo Buddies API

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
S1eth
Spiny
Spiny
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Circling Boo Buddies API

Postby S1eth » Sat May 14, 2016 11:33 am

This is an API for creating the boo buddy circles from Super Mario World and Super Mario Maker.

Version history:
Spoiler: show
1.0.0
  • Initial release
1.0.1
  • fixed incorrect boo hitboxes
1.0.2
  • Boo Buddy Circles will now be drawn even when the game is paused.

Download



Features
  • Super Mario World and Super Mario Maker-style boo circles.
  • Boo graphics from SMW, SMB3 or SMB1
  • Spinjump/Link downstab/Yoshi bouncing (optional)
  • Can be killed with the kuriboh shoe or starman(single player only) (optional)
How to use:

1. Download and unzip into your level's graphics folder.
2. Load the API into your lunadll.lua file with local booBuddies = API.load("booBuddies");
3. Configure spinjumping and what your boo circles will die to.
4. Create boo circles.

Example:

Code: Select all

local booBuddies = API.load("booBuddies");

local myBooCircles = {};

function onStart()
	booBuddies.diesTo = {shoe = true, starman = true};
	booBuddies.canSpinjump = true;
	
	myBooCircles[1] = booBuddies.create({x = -159760, y = -160432, preset = "SMM"});
	myBooCircles[2] = booBuddies.create({x = -159472, y = -160304});
		
	myBooCircles[3] = booBuddies.create({x = -158992, y = -160432, preset = "SMM", style = "SMB1", layer = "Boo Layer"});
	myBooCircles[4] = booBuddies.create({x = -158704, y = -160304, style = "SMB1", layer = "Boo Layer"});
	
	myBooCircles[5] = booBuddies.create({x = -157904, y = -160176, preset = "SMM", style = "SMB3"});
	
	myBooCircles[6] = booBuddies.create({x = -157136, y = -160304});
	
end
Functions:

booBuddies.create (returns a BooCircle object)

mandatory arguments:
x and y coordinates

optional arguments:
preset: "SMM" or "SMW"(Default) provides default arguments for boo circle creation.
style: "SMW", "SMB3", "SMB1" or "SMM-SMW". Determines the graphic style used for the boos.
section: Circle will only be drawn when the player is in the section. If no section is provided, it tries to find the section based on the coordinates.
layer: Name of the layer. If the layer is hidden, the circle is hidden as well.
circleRadius: radius of the boo buddy circle
angularSpeed: speed at which it rotates
angularDirection: "clockwise"/"CW" or "counterclockwise"/"CCW". Determines the direction in which the circle spins.
numberOfBoos: by default 10 boos in the SMW preset, 8 boos in the SMM preset
booRadius: size of an individual boo
booFrameTime: ticks spent per animation frame
booSpacing: distance between individual boos in degrees.
angle: starting angle of the circle

BooCircle functions:

BooCircle:kill()
BooCircle:delete()

Notes;

If you want to use killable SMB1-style boos, copy the effect-94.png file into your graphics folder. This replaces the SMB3 boo death animation.
Last edited by S1eth on Wed Jun 08, 2016 2:05 pm, edited 3 times in total.

User avatar
snoruntpyro
Pokey
Pokey
Posts: 223
Joined: Sun Oct 11, 2015 9:36 am
Contact:

Re: Circling Boo Buddies API

Postby snoruntpyro » Sat May 14, 2016 12:32 pm

Woah, this is super neat! This'll be amazing for ghost house levels.
Spoiler: show
Image
Spoiler: show
Image

User avatar
Kevsoft
Ripper II
Ripper II
Posts: 374
Joined: Sun Jul 27, 2014 8:03 am

Re: Circling Boo Buddies API

Postby Kevsoft » Sat May 14, 2016 1:29 pm

You might want to add this to the PGE Wiki.

User avatar
Willhart
Banned
Posts: 368
Joined: Thu Apr 10, 2014 2:18 am

Re: Circling Boo Buddies API

Postby Willhart » Sun May 15, 2016 2:41 pm

This looks great. I like how customizable it is.

S1eth
Spiny
Spiny
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: Circling Boo Buddies API

Postby S1eth » Mon May 16, 2016 4:32 pm

Added this to the PGE wiki: http://wohlsoft.ru/pgewiki/BooBuddies.lua

Also applied some bugfixes. (mainly hitboxes)
If anyone downloaded this, please update to the latest version.

User avatar
PROX
Mouser
Mouser
Posts: 1823
Joined: Sun Jul 06, 2014 8:50 pm
Chat Username: PROX

Re: Circling Boo Buddies API

Postby PROX » Mon May 16, 2016 11:31 pm

well this is very useful to me :P Expect to see this in my episode
I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

If it makes sense then it must make dollars

Youtube Channel: ProxyHax O.O

Please do not use my stuff until I release it. Thank you.

My Graphics Pack:
Image

World Map Pack: viewtopic.php?f=31&t=20173

User avatar
WerewolfGD
Wart
Wart
Posts: 3265
Joined: Tue Dec 02, 2014 2:28 am
Flair: Legalize Awooo!
Current Project: Howling
Chat Username: Alagirez
Contact:

Re: Circling Boo Buddies API

Postby WerewolfGD » Tue May 17, 2016 7:33 pm

Oh yes finally i can make a circling boo gimmick with this. I will use this later.
Yea... I'm back, but with different view.

Known also as Camacho or Harvey36Dice.
Also a furry

Image
Awooo!
If you want to talk with me, go here : Alagirez#2056

S1eth
Spiny
Spiny
Posts: 54
Joined: Sat Apr 23, 2016 10:44 am

Re: Circling Boo Buddies API

Postby S1eth » Wed Jun 08, 2016 2:01 pm

Version 1.0.2 patch notes:

Boo Buddy Circles will now be drawn even when the game is paused.

Horikawa Otane
Lakitu
Lakitu
Posts: 485
Joined: Sun Jan 05, 2014 2:02 am

Re: Circling Boo Buddies API

Postby Horikawa Otane » Sat Jun 11, 2016 8:58 pm

This will be included in the upcoming beta release and will be placeable and configurable within PGE.

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Circling Boo Buddies API

Postby PixelPest » Sat Jun 18, 2016 12:49 pm

I just came to the realization, could something similar to this be used for rotating coin circles?

User avatar
Quantix
Ripper II
Ripper II
Posts: 328
Joined: Tue Jan 26, 2016 5:04 pm

Re: Circling Boo Buddies API

Postby Quantix » Sat Jun 18, 2016 12:54 pm

PixelPest wrote:I just came to the realization, could something similar to this be used for rotating coin circles?
Now that you mention it, that's a great idea!
viewtopic.php?f=69&p=286856#p286855

Generic Quote Collection:
Spoiler: show
Skant wrote:The egg will fuck you if you don't catch it
rockythechao wrote:f6 is an over-the-counter generic run-of-the-mill store-brand bootleg knockoff f5
some people wrote:The021stYoshiFromThe021stCentury: Who would win, a tophat wearing a tophat, or hoeloe wearing hoeloe?
Hoeloe: yes
glitch4: f6
rockythecomet: that's a trick question
rockythecomet: a top hat wearing a hoeloe
Waffles & Stuff (timocomlita) wrote:No matter what you do, it's impossible to get rid of the impossible.
Petrifying wrote:Piss off with your sex doll SMBX 2.0
Enjl wrote:it puts a twist on classic 4 step level design which i like to call "2 and a half steps backwards design"

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Circling Boo Buddies API

Postby PixelPest » Sat Jun 18, 2016 1:07 pm

Quantix wrote:
PixelPest wrote:I just came to the realization, could something similar to this be used for rotating coin circles?
Now that you mention it, that's a great idea!
Thanks! Rotating platforms would be super cool too

User avatar
Sambo
Blooper
Blooper
Posts: 189
Joined: Fri Jan 24, 2014 6:43 pm
Current Project: SMBX2, Mario & the 7 Orbs

Re: Circling Boo Buddies API

Postby Sambo » Sun Jun 26, 2016 9:28 pm

S1eth wrote:Version 1.0.2 patch notes:

Boo Buddy Circles will now be drawn even when the game is paused.
How did you do that?

User avatar
Kevsoft
Ripper II
Ripper II
Posts: 374
Joined: Sun Jul 27, 2014 8:03 am

Re: Circling Boo Buddies API

Postby Kevsoft » Mon Jun 27, 2016 4:39 am

Sambo wrote:
S1eth wrote:Version 1.0.2 patch notes:

Boo Buddy Circles will now be drawn even when the game is paused.
How did you do that?
Putting rendering-code into the onDraw event, which is called even if you have your game paused.

Westretroman
Nipper Plant
Nipper Plant
Posts: 702
Joined: Tue Mar 29, 2016 6:50 pm

Re: Circling Boo Buddies API

Postby Westretroman » Sat Jul 16, 2016 11:12 am

I can't get this working, I dunno how to even get the boo circles to spawn.

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Circling Boo Buddies API

Postby PixelPest » Sat Jul 16, 2016 11:35 am

Westretroman wrote:I can't get this working, I dunno how to even get the boo circles to spawn.
Read the example and documentation

Westretroman
Nipper Plant
Nipper Plant
Posts: 702
Joined: Tue Mar 29, 2016 6:50 pm

Re: Circling Boo Buddies API

Postby Westretroman » Tue Jul 19, 2016 10:19 pm

PixelPest wrote:
Westretroman wrote:I can't get this working, I dunno how to even get the boo circles to spawn.
Read the example and documentation
Already did that, got confused and stuck.

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Circling Boo Buddies API

Postby PixelPest » Tue Jul 19, 2016 10:25 pm

Westretroman wrote:
PixelPest wrote:
Westretroman wrote:I can't get this working, I dunno how to even get the boo circles to spawn.
Read the example and documentation
Already did that, got confused and stuck.
It says in the documentation and shows exactly how to do so as well in the example. It's the booBuddies.create() function

Westretroman
Nipper Plant
Nipper Plant
Posts: 702
Joined: Tue Mar 29, 2016 6:50 pm

Re: Circling Boo Buddies API

Postby Westretroman » Tue Jul 19, 2016 10:30 pm

PixelPest wrote:
Westretroman wrote:
PixelPest wrote: Read the example and documentation
Already did that, got confused and stuck.
It says in the documentation and shows exactly how to do so as well in the example. It's the booBuddies.create() function
How the heck do I use the create to spawn it in SMBX? do I need to use a separate lua file?

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Circling Boo Buddies API

Postby PixelPest » Tue Jul 19, 2016 10:31 pm

Westretroman wrote:
PixelPest wrote:
Westretroman wrote:
Already did that, got confused and stuck.
It says in the documentation and shows exactly how to do so as well in the example. It's the booBuddies.create() function
How the heck do I use the create to spawn it in SMBX? do I need to use a separate lua file?
Read. The. Documentation. I just told you to use the booBuddies.create() function. Look at the arguments in the documentation. Look at the example


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests