- iOS - iPhone 3GS
- 320x480, 256MB = 3x2
- iOS - iPhone 4
- 640x960, 512MB = 3x2
- iOS - iPhone 4S
- 640x960, 512MB = 3x2
- iOS - iPad
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 vuf = new VeryMicroFramework("idOfCanvas"); | |
vuf.add('intro_screne', { | |
init: function() | |
{}, | |
update: function(delta, time) | |
{}, | |
draw: function(context, delta, time) | |
{}, |
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) { | |
}; | |
var infos = { | |
'other_pos': [], | |
'my_pos': [], |
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(100); |
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) { | |
}; | |
var is_scanning = true; | |
var is_blocking = false; | |
var angleTarget = 0; | |
var lastTarget = [0,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
//code inspired by http://www.ragestorm.net/tutorial?id=22 | |
var Vect = function(x, y) | |
{ | |
this.x = x || 0; | |
this.y = y || 0; | |
} | |
var Rect = function(pos, size, angle) | |
{ |