Welcome to SomaliNet Forums, a friendly and gigantic Somali centric active community. Login to hide this block

You are currently viewing this page as a guest. By joining our community you will have the ability to post topics, ask questions, educate others, use the advanced search, subscribe to threads and access many, many other features. Registration is quick, simple and absolutely free. Join SomaliNet forums today! Please note that registered members with over 50 posts see no ads whatsoever! Are you new to SomaliNet? These forums with millions of posts are just one section of a much larger site. Just visit the front page and use the top links to explore deep into SomaliNet oasis, Somali singles, Somali business directory, Somali job bank and much more. Click here to login. If you need to reset your password, click here. If you have any problems with the registration process or your account login, please contact us.

LONG SERIES OF HTML5 GAMES: chapter1 part5

Qaybta Xirfada Sayniska iyo iwm

Moderators: Moderators, Junior Moderators

OUR SPONSOR: LOGIN TO HIDE
User avatar
afisoone
SomaliNet Super
SomaliNet Super
Posts: 5387
Joined: Wed Jul 22, 2009 9:46 pm
Location: We all want to become president even though Amisom controls Mogadishu

LONG SERIES OF HTML5 GAMES: chapter1 part5

Postby afisoone » Fri May 22, 2015 4:07 pm

Wow we almost there to end the long haul of chapter1 folder.. The rest will be easy when we finish this chapter... Ok..

Now we are going to put stuff keenStageka(); This function will load the image.. We will linke to another function called updateStageka();

let's do it...
function keenStageka()
{


updateStageka();

}
Beautiful: How easy is going to get.. So now let's build the updateStageka(); inside this function we will add three things
1. animation anigoo sticmaaleen requestAnimationFrame.. it has two parameters, we will fill it..
2. we will set how the arrow runs in the canvaska
3. we will add another function la dhaho hadbaSawir();
let' do it..
function updateStageka()
{
window.requestAnimationFrame(updateStageka, canvaska);

arrow.x++;

hadbaSawir();


}
Hayaay: So now what we did is simple. We said animate the 15 per second the canvaska iyo wax kasto ku jira updateStageka();
So that is how the animation will take place...
Now we need to build hadbaSawir();

ok let's do it..
function hadbaSawir()
{



}
Here is the trick question:

Toloow muxuu ka koobanyahay hadbaSawir()?


Su'aashaas waxaan ka jawaabi doonaa casharka soo socdo.
<<Previous Lesson

OUR SPONSOR: LOGIN TO HIDE

Hello, Has your question been answered on this page? We hope yes. If not, you can start a new thread and post your question(s). It is free to join. You can also search our over a million pages (just scroll up and use our site-wide search box) or browse the forums.

  • Similar Topics
    Replies
    Views
    Last post

Return to “Careers - Engineering, Science & Computers”

Who is online

Users browsing this forum: No registered users and 1 guest