GameMaker Studio 2 (2.3)
Icon

GMGrass - Dynamic 2D Grass

Fntrck

You must be logged in to obtain assets

Description

Gallery: link

GMGrass is a powerful yet simple-to-use library for creating and rendering awesome dynamic 2D foliage.

  • Procedurally generate or define every single blade of grass yourself
  • Physically simulated and customizable wind, turbulence and colliders
  • Cuttable/regrowable foliage
  • High-performance, can handle hundreds of thousands foliage objects
  • Cross-platform, written in GML 2.3 and GLSL ES 2.0
  • Documented and simple to use plug-n-play library (includes an example)

Example:

// Create
container = new foliage_container(x, y, x + 400, y);
container.verbuffer_begin();        // begin writing to vertex buffer
for(var i = 0; i < 1000; i++) {     // add thousand blades of grass
    container.verbuffer_add(sprGrassBlade, 0, random(1), 1, random(4), 16, random_range(0.04, 0.08) * choose(1, -1));
}

// Draw
container.render();

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 1.0.3. Published September 16, 2020

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top