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
<html> | |
<body> | |
<fieldset> | |
<input id="cor1" type="color" /> | |
<input id="cor2" type="color" /> | |
<button id="btn">Gradiente!</button> | |
</fieldset> | |
<canvas id="canvas"></canvas> | |
<script> | |
var in1 = document.getElementById("cor1"); |
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 Megatron = function() { | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); | |
robot.ahead(100); | |
robot.rotateCannon(360); |
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 Robot = function(){} |
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 CrazyGiroscope = function() { | |
var becameDistant = true; | |
var Robot = function(robot) { | |
robot.rotateCannon(-20); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); |
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 SexMachine = function() { | |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
//robot.rotateCannon(90); | |
}; | |
var state = 0; | |
var lastFound = 0; | |
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 CrazyGiroscope = function() { | |
var becameDistant = true; | |
var Robot = function(robot) { | |
robot.rotateCannon(-20); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); |
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
=> Estrutura do zip: | |
nome_do_layout.zip | |
index.html <= TEM CONVENÇÕES | |
style.css | |
style-estilo1.css | |
style-estilo2.css | |
images/ | |
estilo1/ | |
screenshot.png (imagem de demonstração do layout) | |
(imagens do estilo 1) |
NewerOlder