This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--rotations by eis - kino | |
--globals | |
--The sprites, the position (x and y) of both star1 and star2 | |
star1 ={sprite=2, x = 58, y = 58} | |
star2 ={sprite=3, x = 0, y = 0} | |
degrees = 0 | |
function _update() | |
--Here we rotate star2 around star1 by giving rotate star1's position(x, y). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Build Game | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
pull_request: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Update Code - HaxeFlixel | |
* Kino Rose | |
*/ | |
class CutsceneState extends FlxState { | |
//Code from Before | |
override public function update(elapsed:Float) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CutsceneState extends FlxState { | |
//Additional code from before here | |
public static inline var TEXT_WIDTH:Int = 400 | |
override public function create() { | |
createSkip(); | |
createSceneText(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
//Imports for the FlxState | |
import flixel.addons.text.FlxTypeText; | |
import flixel.text.FlxText; | |
import flixel.FlxState; | |
// Type Information to create a delay that you want for each individual text that appears on screen | |
typedef SceneText = { | |
public var text:String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PlayerHUD extends FlxTypedGroup<FlxSprite> { | |
public function create() { | |
var myGameUIText = new FlxText(0, 0, 100, 'High Score: 0', 12); | |
//Sets the scroll factor of the game UIText; this prevents it from scrolling in either direction. | |
//Note: By default buttons have a scrollFactor of 0. | |
myGameUIText.scrollFactor.set(0, 0); | |
add(myGameUIText) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myObj = { | |
name: 'Timothy', | |
health: 3 | |
} | |
//JS Object Example | |
/* | |
const myObj = { | |
name: "Timothy", | |
health: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodemon --watch src -e hx,hxml,xml --exec haxe --times --connect 7010 compile.hxml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
haxe --wait 7010 |