I hereby claim:
- I am gsimas on github.
- I am simasgs (https://keybase.io/simasgs) on keybase.
- I have a public key ASDvfzTGiM6CpeycWiLoZmIHpe-6yLBUzGr3cHaMyXgGWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
RECEBER ARQUIVOS GOOGLE DRIVE / SPREADSHEETS / FORMULARIO | |
- - - - - - - - - - - - - - - | |
Gustavo Simas da Silva | |
Email: gustavosimassilva@gmail.com | |
*/ |
/* | |
Emon.cpp - Library for openenergymonitor | |
Created by Trystan Lea, April 27 2010 | |
GNU GPL | |
modified to use up to 12 bits ADC resolution (ex. Arduino Due) | |
by boredman@boredomprojects.net 26.12.2013 | |
Low Pass filter for offset removal replaces HP filter 1/1/2015 - RW | |
*/ | |
// Proboscide99 10/08/2016 - Added ADMUX settings for ATmega1284 e 1284P (644 / 644P also, but not tested) in readVcc function |
var upPressed:Boolean = false; | |
var downPressed:Boolean = false; | |
var leftPressed:Boolean = false; | |
var rightPressed:Boolean = false; | |
bola.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey); | |
stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed); | |
stage.addEventListener(KeyboardEvent.KEY_UP, fl_UnsetKeyPressed); | |
function fl_MoveInDirectionOfKey(event:Event) |
onClipEvent (load) { | |
_x = 0; | |
_y = 0; | |
speed = 5; | |
} | |
onClipEvent (enterFrame) { | |
endX = _root._xmouse; | |
endY = _root._ymouse; | |
_x += (endX-_x)/speed; | |
_y += (endY-_y)/speed; |
stop(); | |
onEnterFrame = function(){ | |
if(Key.isDown(Key.LEFT)){ | |
personagem.direcao = "esquerda"; | |
if(personagem._x <200){ | |
colisao._x +=personagem.vel; | |
fundo._x +=personagem.vel; | |
mover._x +=personagem.vel; | |
magma._x +=personagem.vel; | |
} else { |