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 Keyboard | |
| import Mouse | |
| mpos : Signal (Int,Int) | |
| mpos = Mouse.position | |
| kpos : Signal {x:Int,y:Int} | |
| kpos = Keyboard.arrows | |
| draw1 : (Int,Int) -> Element |
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 Math.Vector2 (Vec2) | |
| import Math.Vector3 (..) | |
| import Math.Matrix4 (..) | |
| import Graphics.WebGL (..) | |
| import Mouse | |
| import Keyboard | |
| -- Define the mesh for a crate | |
| crate : [Triangle { pos:Vec3, coord:Vec3 }] | |
| crate = concatMap rotatedFace [ (0,0), (90,0), (180,0), (270,0), (0,90), (0,-90) ] |
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
| Elm = (function (){ | |
| //Begin elm-runtime.js | |
| 'use strict'; | |
| var Elm = ... | |
| }; | |
| //End elm-runtime.js | |
| Elm.MeteorHelpers = [A2,A3,A4,A5,A6,A7,A8,A9,F2,F3,F4,F5,F6,F7,F8,F9]; |
OlderNewer