Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Putting 'sprites' of the flowers moving #11

Open
FranciscoWallison opened this issue Jul 13, 2022 · 0 comments
Open

Putting 'sprites' of the flowers moving #11

FranciscoWallison opened this issue Jul 13, 2022 · 0 comments

Comments

@FranciscoWallison
Copy link
Owner

FranciscoWallison commented Jul 13, 2022

Working with gimp when creating animations
In image size
Width: 192
Height: 68
X and Y Resolution: 72,000
Before converting always leave the Quality in Interpolation as the value None

Dicas
var canvas; - //o elemento canvas sobre o qual desenharemos
var ctx; - //o "contexto" da canvas que será utilizado (2D ou 3D)
var dx = 50; - //a taxa de variação (velocidade) horizontal do objeto
var x = 30; - //posição horizontal do objeto (com valor inicial)
var y = 0; - //posição vertical do objeto (com valor inicial)
var WIDTH = 1000; - //largura da área retangular
var HEIGHT = 340; - //altura da área retangular
var tile1 = new Image(); - //Imagem que será carregada e desenhada na canvas
var posicao = 0; - //Indicador da posição atual do personagem
var NUM_POSICOES = 6; - //Quantidade de imagens que compõem o movimento

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant