Home

Awesome

ArrayClass

Better arrays/ds_lists for GameMaker Studio 2.3

ArrayClass is a library that improves the developing experience and reduces frustration when working with arrays.

It's main focus is not performance, but rather handiness for developer

Maintained by @evolutionleo

Features:

Getting Started:

Importing into an existing project

Exerimenting/Learning API

Some Examples:

Adding Values:

GM arrays:

arr[array_length(arr) - 1] = item

Array Class:

arr.add(item)

Looping:

GM arrays:

for(var i = 0; i < array_length(arr); i++) {
  foo(arr[i], i)
}

Array Class:

arr.forEach(foo)

Deleting values:

GM arrays:

for(var i = pos; i < array_length(arr) - 1; i++) {
  arr[i] = arr[i + 1];
}

Array Class:

arr.remove(pos)

P.s. a new commit erased the old README file, so I was forced to write a new one :(