Encerrado

Simple "Ball Game" Javascript Application

The goal of this "app" is control a ball with the keyboard using events.

The HTML for this site is already completed as well as most of the Javascript. All necessary files are included.

Add a keyboard event listener that changes the speedX and speedY using the WASD keys:

'W' increase SpeedY

'S' decrease SpeedY

'A' decrease SpeedX

'D' increase SpeedX

Add an event listener to the window that calls one function to update the speed.

Make sure the SpeedX and Speed Y never go too fast.

In the draw function, change the x and y position using the speedX and speedY variables.

If the circle is outside the canvas then move it to the other side. For example, if the ball is over the right side of the canvas, then move it to the other side. Make sure the ball is all of the way off the edge before moving it, otherwise it may pop.

Habilidades: Javascript

Ver mais: application game javascript, canvas application, canvas over, canvas javascript, event javascript, javascript speed, html canvas add, draw simple app, html javascript app game, game draw, javascript draw function, javascript game html, simple keyboard, circle draw, simple game using html, speed game, simple windows application javascript, draw javascript simple, simple javascript game php, moving ball, simple draw, update canvas, javascript control, html simple keyboard, simple game ball java

Acerca do Empregador:
( 3 comentários ) East Lansing, United States

ID do Projeto: #5081502

8 freelancers estão ofertando em média $41 para este trabalho

renardpaul

Hello, I can add a JavaScript event function to implement WASD keyboard movements as per your description. Thanks, Paul

$110 USD in 3 dias
(18 Comentários)
4.9
oscar9969

Hello, I would like to help you with this project. Could yo please check private messages. Thank you

$30 USD em 1 dia
(3 Comentários)
4.6
divdesign

HI, I have a similar jquery game [url removed, login to view] Thanks, Darko DIV agency

$66 USD in 3 dias
(10 Comentários)
3.6
Alfateck

This seems a fun project. I will do it for you in the next 24 hours (when i will get a 2 hours break...), and came back to you to show my result. Best regards, Alex.

$25 USD in 3 dias
(2 Comentários)
2.9
VhanguArt

Can be done, so far this is the key hook process! var step=0.5; var maxs=10; var dia=radius*2; function proc(e){ var key=[url removed, login to view]; var tx=speedX; var ty=speedY; //alert([url removed, login to view]); if(key==119)speedY-=s Mais

$30 USD in 3 dias
(2 Comentários)
2.8
pgal

I think that your app could be finished within 1-2 hours. I am ready to start immediately. best regards, pgal

$18 USD em 1 dia
(8 Comentários)
2.4
gdragomir

Hello, I can help with the javascript for the ball movement as I already have an identical script made in the past. I can provide a demo in a few hours. Thanks

$25 USD em 1 dia
(0 Comentários)
0.0
andreyaleixo

Ainda não foi fornecida uma proposta

$25 USD in 2 dias
(0 Comentários)
0.0