Jump to content

WIP DuckDuck


ruslanfan
 Share

Recommended Posts

Hello everyone!

I am working on a game for two players. Mechanic is simple, players starting from center and move to opposite direction by hitting left or right arrow button. The winner is who first will reached edge of screen.

Here is working demo

image.thumb.png.06c4f8379087c00c4414a4461ee205b5.png

Yeah, visually game is far away from nice and cool, but i think i am in right direction.

I will try to not forget to write posts in this topic.

?

Today i kinda proud of myself for this "for loop" because it's short and smart ha-ha 

 for(i=0;i<move.length;i++){
            for(k=0;k<move.children[i].length;k++){
                game.add.tween(move.children[i].children[k]).to({
                    x:width/2,
                    y:height/2,
                    width:0,
                    height:0  
                }, game.rnd.integerInRange(1000,5000), ease, true);
            }
        }

Just look at this before and after:

image.thumb.png.7dc0789b79611b0eec9e7b4fb893c74f.png

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...