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
/*! | |
* | |
* welcome to wavepot | |
* ------------------ | |
* | |
* this is a live editor. you create a function named `dsp` | |
* that accepts the parameter `t`, the coefficient of time, | |
* which you use to generate a single sample (range -1..1) | |
* |
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
/*! | |
* | |
* welcome to wavepot | |
* ------------------ | |
* | |
* this is a live editor. you create a function named `dsp` | |
* that accepts the parameter `t`, the coefficient of time, | |
* which you use to generate a single sample (range -1..1) | |
* |
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
/*! | |
* | |
* welcome to wavepot | |
* ------------------ | |
* | |
* this is a live editor. you create a function named `dsp` | |
* that accepts the parameter `t`, the coefficient of time, | |
* which you use to generate a single sample (range -1..1) | |
* |
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
{"pistes":[{"type":"sqr","notes":[{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":9,"o":2,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":0,"o":3,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":0,"o":0,"g":0,"type":0},{"n":9,"o":2,"g":1,"type":0},{"n":9,"o":2,"g":0,"type":0}],"volume":0.1,"harmonic":0},{"type":"arp","notes":[{"n":9,"o": |
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
using UnityEngine; | |
using System.Collections; | |
public class CameraControl : MonoBehaviour { | |
public float translateScale = 20; | |
public float rotateScale = 1; | |
public float zoomScale = 100; | |
private Vector3 _lastHitPoint; |
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
function RayCastCamera(fov,resolution) { | |
this.fov = fov; | |
this.resolution = resolution; //How Many ray should we cast and draw; | |
} | |
RayCastCamera.prototype.render = function(map, pos, angle, walls) { | |
ctx.fillStyle = "black"; | |
ctx.fillRect(0,0,width,height*0.5); //The Top of the Screen is black | |
ctx.fillStyle = "grey"; | |
ctx.fillRect(0,height*0.5,width,height*0.5); // The bottom is grey |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(10); |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
//robot.clone() | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(10); |
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
Data.Building = [] | |
Data.Building[0] = { | |
image: (new Image()),//.src="Assets/tree.png", | |
printX: 0, | |
printY: 32, | |
printW: 32, | |
printH: 64, | |
map: [1], | |
width: 1, | |
height: 1, |
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
{ | |
"data": { | |
"author": "", | |
"website": "", | |
"about": ".", | |
"title": "", | |
"lang": "en-US", | |
"version": "1", | |
"date": "01-01-2013", | |
}, |