Coder Social home page Coder Social logo

keeveegames / quicksort.gml Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 67 KB

array_sort function using a modified quicksort algorithm, for GameMaker Studio 2.2

License: MIT License

Game Maker Language 100.00%
array gamemaker gamemaker-studio gamemaker-studio-2 gml gms gms2 quicksort quicksort-algorithm sort

quicksort.gml's Introduction

Hi there ๐Ÿ‘‹

Donate Twitter Follow

I am Nikita Musatov (also known as MusNik and KeeVee Games) a full-time professional GameMaker developer located in Armenia. I do videogames, assets for GML programmers, open-source libraries/examples, and contract freelance work! Worked on ScreenPlay, Norland, Voidigo, RetroMania Wrestling, Cookie Swirl World and other projects.

GIF

  • ๐Ÿ‘จโ€๐Ÿ’ป Currently working on GooWee.gml ? and GmProto ?
  • ๐Ÿ•น Producer and Lead Programmer of Close Your Eyes
  • ๐Ÿ“ฆ Assets I made: on Marketplace and Itch.io
  • ๐Ÿ’พ Other languages I know and work with: C++, C#, Javascript, GLSL, Java, etc.
  • ๐Ÿ“– Visit my Portfolio and Showcase
  • ๐Ÿ“ซ Contact to hire me or ask questions: [email protected]

Contributions: GameMaker-HTML5, GMEdit, painfully-learned-lessons, tex-pack, buffer-zlib.

Notable repos:

Name Description
OKColor.gml

OKColor is a color management library for GameMaker written in pure GML that implements the new "industry standard" OKLab/OKLCH perceptual color models, that give better results than standard RGB/HSV. It's simple to use with only one OKColor class and a bunch of methods providing setting the color, models conversion, mixing and getting the color for rendering.

Example

ArrayList.gml

The most complete list class for GameMaker Studio 2.3+. GC-friendly, [] accessor, 50+ functions (add, remove, insert, contains, find, sort, shuffle, reverse, copy, clone, etc.) and reference as array.

list = new ArrayList();

list.add("howdy", "ho", "world", "!").remove_at(1); // method chaining is also supported
list.array[0] = "hello";
DuplicateSequence.gml

Create a deep copy of Sequence and modify its properties in-game without changing the original resource! Useful for using sequences as templates for graphics elements and UI with changeable placholders.

var seq_new = sequence_duplicate(seq_orig);
seq_new.tracks[0].keyframes[0].channels[0].text = "Hello World";
// this will not change the original sequence property!
DeepCopy.gml

Deep clone class instances, anonymous structs and arrays nested in any order!

var thing = new Class();
thing.something = { first : [0, 1, 2], second : [3, 4, 5] };

// will return a new Class instance with the identical values but new references
var new_thing = deep_copy(thing);
DeepCopy.gml

Base class for custom exceptions replicating a structure of system exceptions and adding better support of try-catch and exception_unhandled_handler for these custom exceptions.

The class is generating all the necessary exception fields and populates data for script, line and stacktrace ones. Makes output on error windows nicer and more meaningful on handled exceptions. Also adds better support for YYC.

foreach.gml

foreach() loop implementation on GameMaker Studio 2.3+ for arrays, ds_lists, ds_maps, ds_stacks, ds_queues, ds_priorities and structs. Syntax is pretty neat and straightforward:

foreach(collection as (item) {
    // do things with item
});

quicksort.gml's People

Contributors

keeveegames avatar

Stargazers

 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.