A downloadable library

Download NowName your own price

Version 3 is in development. Progress: 80%

JenScripts is a GameMaker Studio 2 library designed for rapid prototyping and development of procedurally generated levels. It contains over 60 iterative functions that can be combined with flexible parameters to create varied terrain. JenScripts supports geometric shapes, randomized distributions, and other algorithms to produce a limitless variety of patterns within a 2D grid. The grid can then be interpreted as object indices or tilemap data to convert into terrain in your room.

Want to create a lake? Try jen_ellipse and jen_near. Want to create a river? Try jen_wander_direction or jen_wander_line. Want to create a cave? Try jen_automata. Want to create a maze? Try jen_maze_prim or jen_maze_backtrack. Want to create a building? Try jen_grid_room. Want to create an island? Try jen_heightmap_sampling. Something more complicated? Combine the functions together to form terrain that fits your ideal design, using optional arguments for extra flexibility.

Features:

  • Create lines, shapes, and blobs.
  • Create a wandering path between two points or in a direction.
  • Maze generation with Prim’s Algorithm or Backtrack Algorithm.
  • Cave generation with Cellular Automata.
  • Heightmap generation with Average Sampling or Gradient Scattering.
  • Copy sections of your rooms to incorporate hand-crafted content.
  • Tilemap support and programmatic autotiling.

Documentation: JenScripts Documentation (With example code!)

Active Support: Post a comment here OR on the GMC Forum Thread. Or post an issue on GitHub. If you happen to have a contact for Cloaked Games on Discord that works as well!

Supported Versions:

  • GameMaker Studio 2 (GML 2.3 )
    • v2.0.0 requires GML 2.3.0
    • v2.0.1 requires GML 2.3.3
    • v2.0.2 requires GML 2023.8 (not tested)
StatusReleased
CategoryOther
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
AuthorCloaked Games
Made withGameMaker
Tags2D, GameMaker, generation, gml, library, Procedural Generation, procgen
Code licenseMIT License
MentionsCloaked Games 2024

Download

Download NowName your own price

Click download now to get access to the following files:

jen_scripts_2.0.2 (2023.8).yymps 66 kB
jen_scripts_2.0.1 (2.3.3).yymps 45 kB
jen_scripts_2.0.0 (2.3.0).yymps 47 kB

Development log

Comments

Log in with itch.io to leave a comment.

This is great! I would like to see the generation code in the screenshots

( 1)

Thanks! An excellent suggestion, I'll see what I can do when I next update the screenshots--probably after the v3 release.

I've been absolutely loving this! However, after the GameMaker 2023.8 update, jen_grid_instantiate_layer is no longer working for me

Glad it's useful! I'm still working on a big update so can't guarantee support for 2023.8 quite yet. But, I should be able to help you out. Are you seeing a specific error?

I believe I fixed this issue, at least for jen_grid_instantiate_*. Please try importing the new v2.0.2 version and let me know if that works.

The issue was the change from number to ref for assets, so the is_real() check was always returning false. I replaced it with object_exists().

( 1)

Thank you so much! This fixed the problem I was having! I wasn't getting any specific errors, no, just that the objects weren't there when the terrain generated.

( 1)

super happy to have found this!

Glad it's useful! Let me know if you run into any issues.

( 1)

no issues so far, honestly its amazing. Im working on a roguelike and one of my only real issues has been understanding procedural generation and making it look good, im just not great at it. But this library of functions and how easy they are to get started using... wow. thank you.

( 1)

oh