This file contains hidden or 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; | |
import kha.Color; | |
import kha.Framebuffer; | |
import kha.Game; | |
import kha.Image; | |
import kha.Scaler; | |
import kha.input.Keyboard; | |
class Empty extends Game |
This file contains hidden or 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
import Color (..) | |
import Graphics.Collage (..) | |
import Graphics.Element (..) | |
import Keyboard | |
import Signal | |
import Text | |
import Time (..) | |
import Window | |
{-- Part 1: Model the user input ---------------------------------------------- |
This file contains hidden or 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
override public function update(dt:Float) { | |
var now = Timer.stamp(); | |
var memString : String; | |
this.times.push(now); | |
while (this.times[0] < now - 1) { | |
times.shift(); | |
} | |
This file contains hidden or 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
;;; Initialize MELPA | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) | |
(unless package-archive-contents (package-refresh-contents)) | |
(package-initialize) | |
;;; Install fsharp-mode | |
(unless (package-installed-p 'fsharp-mode) | |
(package-install 'fsharp-mode)) |
NewerOlder