GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
131 stars 52 forks source link

Rectangular flood fill: Create fill objects that cover the rectangular area of target objects #166

Closed tristanbob closed 3 years ago

tristanbob commented 3 years ago

Describe the extension

Create fill objects that cover the rectangular area of target objects

How To Use:

Requirements:

Object variables (Fill objects):

Tips:

Checklist

Extension file

RectangularFloodFillExtension_1.0.0.json.zip

Game example

https://games.gdevelop-app.com/game-77cac788-e2c5-47dd-9820-e0eeaaa7cb4d/index.html

Video

https://user-images.githubusercontent.com/8879811/123202778-73420980-d472-11eb-8b79-35b206d0355b.mp4

Midhil457 commented 3 years ago

Hi!

This extension requires another extension ("Create multiple copies of an object") in order to function correctly

So, why don't you add the that function to this extension and remove it when dependencies are automated? The create copies extension only has a single function so it should be relatively easy. I tested it and it works without a problem

RectangleFillGrid

:)

tristanbob commented 3 years ago

@Midhil457 thanks for your great insight. I have made the changes you recommended:

Version 1.1.0

Extension file

RectangularFloodFillExtension_1.1.0.json.zip

Game example

Note: This also includes a handful of WIP extensions. RectangularFloodFill-1.1.0.zip

Midhil457 commented 3 years ago

Hi again,

again it's your choice

:)

4ian commented 3 years ago

Very nice! (as usual :)) @tristanbob do you want to do these latest changes according to @Midhil457 feedback? Then we can go ahead and add this 👍👍

tristanbob commented 3 years ago

Yes, I do. I expect I will get this updated tonight!

tristanbob commented 3 years ago

Thank you @Midhil457 for helping polish this extension!

Version 1.1.1

Extension file

RectangularFloodFillExtension_1.1.1.json.zip

Game example (UPDATED)

https://games.gdevelop-app.com/game-6ac7d6db-3d38-4f80-b7da-24dda6f726a3/index.html

Video (UPDATED)

https://user-images.githubusercontent.com/8879811/124223716-7d42b880-dac1-11eb-8e0b-0adf1880f5dc.mp4

4ian commented 3 years ago

Thanks both, great job as usual :) I've added the extension.