Giter Club home page Giter Club logo

agk-examples's Introduction

AGK Examples

A collection of mini AGK projects that I've created, some were created for no reason other than being curious.

Convert Material Icons To Subimages

This script takes the downloaded Material Icons (you get them from here: https://github.com/google/material-design-icons/tree/master/png) and converts them to subimages so that you can easily load them in to your project. An example how to use them can be found in the Material Icons project mentioned below (which can also be found in this group of AGK examples)

With this script you can convert all icons to subimages, or just a selection of icons that you want for your project. There's examples, and comments at the top of the script showing how to do this.

The icons provided in the original repository are coloured black. This script inverts the colour so that they are saved as white. Having them white makes it easier to colour the icons however you want in your project.

Database Connection

This project contains the AGK script and PHP files required to connect to a MySQL database on a webserver. For more details please read the projects README file.

Material Icons

This script contains all of the Material Icons converted for AGK use. There is a folder for each type i.e.: baseline, outlined, round, sharp, and twotone.

Change iconsPath$ to point to the set you want to use.

Two sizes for each set have been provided. 48px and 96px. The 96px is recommended if you're starting to notice blurry icons when scaling up the 48px version. Keep in mind that the 96px version will make your app a little larger because the image sizes are larger.

You can use these icons in OryUI if you want to replace the default icon set which is currently baseline 48px. If so, only copy and replace the *.png, and *.txt files from the desired style and size i.e. twotone/96px folder into media/OryUIMedia/Material-Icons. Don't copy the folder, just the files within it.

In your app you are only likely to use one style and size, so you would only need to copy that style and size folder. There's no need to copy all styles and sizes in to your project as that will just make your overall app size larger.

To see all of the available icons and their names, visit: https://material.io/resources/icons

Missing Commands

This is a single file containing a number of functions/commands that are missing from AGK. These use a similar naming convention to what TGC use so there is a chance that some of these may clash if they do release commands in the future with the same name. These aren't all mine, some were lifted from the help files, discord, or the forum.

All functions/commands have been written to work with #option_explicit

Pixel Art To Sprite Art

This script contains a simple function that reads any image and converts it to pixel art built from coloured sprites. It works best with images that have large blocks of the same colour in i.e. a pixel art image, or an Arkanoid type game level screen.

What could it be used for?

Could be used for designing levels that use simple colour blocks laid out in a number of different designs.

License

All of these projects are open-source software, licensed under the MIT license.

agk-examples's People

Contributors

kevincrossdcl 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.