Giter VIP home page Giter VIP logo

godot-3-2d-fake-snow-particles's Introduction

Godot 3 2D Fake Snow Particles

Godot v3.x release v1.0.0 MIT license

A script to simulate snow particles ❄️.

Godot 3 2D Fake Snow Particles banner

Table of contents

Variables

Name Type Default
emitting bool false
amount int 200
visibility_rect Rect2 Rect2(0.0, -100.0, 320.0, 180.0)
colors PoolColorArray [Color(1.0, 1.0, 1.0, 1.0)]
min_velocity float 10.0
max_velocity float 50.0
timer_wait_time float 5.0
preprocess bool false

Variables

emitting

export (bool) var emitting = false setget _set_emitting

If true, particles are being emitted.

Name Type Default Setter
emitting bool false _set_emitting

amount

export (int) var amount = 200 setget _set_amount

The number of particles.

Name Type Default Setter
amount int 200 _set_amount

visibility_rect

export (Rect2) var visibility_rect = Rect2(0.0, -100.0, 320.0, 180.0) setget _set_visibility_rect

Controls the visibility of the particles.

Name Type Default Setter
visibility_rect Rect2 Rect2(0.0, -100.0, 320.0, 180.0) _set_visibility_rect

colors

export (PoolColorArray) var colors = [Color(1.0, 1.0, 1.0, 1.0)] setget _set_colors

The color/s of the particles.

If there is more than 1 color, these colors will be applied randomly \ on the "background" particles along with the main color.

Name Type Default Setter
colors PoolColorArray [Color(1.0, 1.0, 1.0, 1.0)] _set_colors

min_velocity

export (float) var min_velocity = 10.0 setget _set_min_velocity

The possible minimum velocity of the particles.

Name Type Default Setter
min_velocity float 10.0 _set_min_velocity

max_velocity

export (float) var max_velocity = 50.0 setget _set_max_velocity

The possible maximum velocity of the particles.

Name Type Default Setter
max_velocity float 50.0 _set_max_velocity

timer_wait_time

export (float) var timer_wait_time = 5.0 setget _set_timer_wait_time

The amount of time (in seconds) until the next cycle of particles is emitted.

Name Type Default Setter
timer_wait_time float 5.0 _set_timer_wait_time

preprocess

export (bool) var preprocess = false

If true, visibility_rect will be full of particles when loading the scene.

Name Type Default
preprocess bool false

🗒️ Changelog

See CHANGELOG.

👤 Author

  • hiulit

🤝 Contributing

Feel free to:

🙌 Supporting this project

If you find this project helpful, please consider supporting it through any size donations to help make it better.

Become a patron

Suppor me on Ko-Fi

Buy me a coffee

Donate Paypal

If you can't, consider sharing it with the world...

Share on Twitter

... or giving it a star.

Thank you very much!

📝 Licenses


Powered by GDScriptify.

godot-3-2d-fake-snow-particles's People

Contributors

hiulit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.