<commit_before>/**
* This script is a demonstration of how you can create sprite game objects in Kiwi.
*
* A sprite is a regular/general purpose game object that you would have in Kiwi. With a sprite you can do:
* - Animation using a spritesheet
* - Listen for click/touch events
* - Scale/Rotate
**/
var Sprite = new Kiwi.State('Sprite');

Sprite.preload = function () {
    this.game.stage.resize(800, 250);
    // Load out saloon background and ninja
    this.addImage('pirate', 'assets/static/pirate.png');
}

Sprite.create = function () {
    /**
    * Kiwi.GameObjects.Sprite.
    * - Parameter One - State that this gameobject belongs to.
    * - Parameter Two - Texture that this static image is to have.
    * - Parameter Three - OPTIONAL - X coordinate - Defaults to 0
    * - Parameter FOUR - OPTIONAL - Y coordinate - Defaults to 0
    * - Parameter FIVE - OPTIONAL - Enable input component - Defaults to false
    *
    * Note: Don't worry if you have told a sprite that you don't want to use the input. It can always be created later.
    **/
    this.pirate = new Kiwi.GameObjects.Sprite(this, this.textures.pirate, 300, 30);
    this.addChild(this.pirate);
    //var v = this.game.renderer.filters.addFilter(Kiwi.Filters.VignetteFilter);
    //var d = this.game.renderer.filters.addFilter(Kiwi.Filters.DotscreenFilter);
    //d.enabled = false;
    //v.enabled = false;
    this.game.renderer.filters.addFilter(Kiwi.Filters.VibranceFilter,{level:0});
}

function callback() {
    console.log("callback");
}
//Create's a new Kiwi.Game.
/*
* Param One - DOMID - String - ID of a DOMElement that the game will reside in.
* Param Two - GameName - String - Name that the game will be given.
* Param Three - State - Object - The state that is to be loaded by default.
* Param Four - Options - Object - Optional options that the game will use whilst playing. Currently this is used to to choose the renderer/debugmode/device to target
*/
if (typeof gameOptions == "undefined") {
    gameOptions = {};
} else {
    gameOptions.bootCallback = callback
}
var game = new Kiwi.Game('game', 'KiwiExample', Sprite, gameOptions);

<commit_msg>Removed WIP from sprite example<commit_after>/**
* This script is a demonstration of how you can create sprite game objects in Kiwi.
*
* A sprite is a regular/general purpose game object that you would have in Kiwi. With a sprite you can do:
* - Animation using a spritesheet
* - Listen for click/touch events
* - Scale/Rotate
**/
var Sprite = new Kiwi.State('Sprite');

Sprite.preload = function () {
    this.game.stage.resize(800, 250);
    // Load out saloon background and ninja
    this.addImage('pirate', 'assets/static/pirate.png');
}

Sprite.create = function () {
    /**
    * Kiwi.GameObjects.Sprite.
    * - Parameter One - State that this gameobject belongs to.
    * - Parameter Two - Texture that this static image is to have.
    * - Parameter Three - OPTIONAL - X coordinate - Defaults to 0
    * - Parameter FOUR - OPTIONAL - Y coordinate - Defaults to 0
    * - Parameter FIVE - OPTIONAL - Enable input component - Defaults to false
    *
    * Note: Don't worry if you have told a sprite that you don't want to use the input. It can always be created later.
    **/
    this.pirate = new Kiwi.GameObjects.Sprite(this, this.textures.pirate, 300, 30);
    this.addChild(this.pirate);
      
}

//Create's a new Kiwi.Game.
/*
* Param One - DOMID - String - ID of a DOMElement that the game will reside in.
* Param Two - GameName - String - Name that the game will be given.
* Param Three - State - Object - The state that is to be loaded by default.
* Param Four - Options - Object - Optional options that the game will use whilst playing. Currently this is used to to choose the renderer/debugmode/device to target
*/
if (typeof gameOptions == "undefined") {
    gameOptions = {};
} 
var game = new Kiwi.Game('game', 'KiwiExample', Sprite, gameOptions);


{'fraction_non_alphanumeric': 0.10541092394078612, 'fraction_numerical': 0.006891271056661562, 'mean_word_length': 3.069574247144341, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2206991', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1165, 'n_words': 451}