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
| //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 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
| //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 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
| 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 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
| { | |
| "data": { | |
| "author": "", | |
| "website": "", | |
| "about": ".", | |
| "title": "", | |
| "lang": "en-US", | |
| "version": "1", | |
| "date": "01-01-2013", | |
| }, |
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
| "1":{ | |
| "text":"Hello", | |
| "choices":{ | |
| "say hello back":2, | |
| "kill him":3 | |
| } | |
| }, |
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
| function MainLoop() { | |
| } |
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
| var compteur = 0 | |
| function MainLoop() { | |
| Game.update(); | |
| Game.draw(); | |
| compteur++; | |
| if (compteur>=60) { | |
| compteur = 0 | |
| //ton code |
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
| PathFinding = {} | |
| PathFinding.go = function(sx,sy,ex,ey) { | |
| this.list = [] | |
| this.Cl = [] | |
| this.ex = ex; | |
| this.ey = ey; | |
| this.sx = sx; | |
| this.sy = sy; | |
| var num = PathFinding.dist(sx,sy,ex,ey); |
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
| window.addEventListener("load",function () { | |
| var postComment = document.getElementById('postComment') | |
| postComment.addEventListener("submit",function(e) { | |
| e.preventDefault(); | |
| var xhr = new XMLHttpRequest(), | |
| data = new FormData(postComment); | |
| xhr.open("POST","/postCom"); | |
| data.append("withJSON","true") | |
| xhr.addEventListener("load",function() { | |
| document.getElementById("submit").disabled = false; |
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
| blink { | |
| @-webkit-animation: blink 2s infinite; | |
| -o-animation: blink 2s infinite; | |
| animation: blink 2s infinite; | |
| } | |
| @keyframes blink{ | |
| 0% {opacity: 0;} | |
| 49% {opacity: 0;} | |
| 50%{opacity: 1;} |
OlderNewer