New Political Flash Game – taterboy
October 8th, 2008 | Filed under: Flash AS2 to AS3

I like to at least add a post once a week, but this past friday I had an idea for a quick flash project. Like everything quick, it never is. Finally here is the result of that idea.

WhackyVoting


It is a whack-a-mole styled game based on a scenario that voter turnout in the upcoming election is so great that the ballets could not be contained in the ballet boxes. They are over stuffed and popping out everywhere. Your job is to pick one of the major party candidates (John McCain or Barack Obama) and guard their votes. Being a good partisan citizen, you are only concerned about the votes for your candidate/party and have to let all the others go free. Ballets also contain images of vice presidental candidates as well as party logos, so you have to pay attention. The game adds up the scores for partisan votes and deducts points for crossing the isle (how dare you!). Each Candidate is given a score based on each players score. So the more people that play for one candidate, the higher their score. Current scores and stats are right on the home page.

The game is built with AS3 in Flash.

Enjoy
Sorry no source is available for this game yet.

Technorati Tags: , , , ,

Related Posts:

|

4 Comments »

  1. Hi!This is exactly the type of game i am working for my final year rpoject. I simply could not figure out how do i actually make item to appear randomly at a random timing. Please help me. Thank you.

    Comment by June — November 4, 2008 @ 8:01 pm

  2. Check out this post first, http://www.taterboy.com/blog/2008/07/shuffle-objects-or-random-order-in-flash/

    You can make an array by hand or generate it with code. This game has random candidates and random boxes that they pop out of. I wanted to make sure each candidate had equal exposure. The candidate list is an array to instruct how many times each candidate, party logo and even some null values, to break things up, appears. I shuffled this array using the technique in the link above.

    Then I created a timer, each time the timer cycles, I increment through the array and pull the next candidate from the shuffled array.
    Then randomly choose a box number to have the candidate pop out of.
    If there are 6 boxes, the code would look like this.

    var boxID:int = Math.random()*6;
    Then tell the box with the id that matches boxID to pop up the candidate pulled from the array.

    var currentBox:Object = getChildByName(”box” + boxID);

    Then set a boolean for that box id to true. I know that my timer cycle could end before the box i s empty again,
    so the next time my timer cycles, there are some added checks to make sure my random boxID does not match a currently active box.

    while( this["box" + boxID + "status"] == true){
    boxID = Math.random()*6;
    }

    Random is a really cool way to add some interest and variation into the gameplay. But if random is not controled the gameplay between each game can become very inconsistent.

    If you have specific questions let me know.
    Post a link to your game when you get it done, thanks.

    Comment by taterboy — November 5, 2008 @ 8:32 am

  3. HI,i really thank you for your effort.However, for my game it does not come out from boxes. The item that will appear is a bug. It will appear on the stage randomly and it will disappear for 4 sec for each bugs. but they appear and disappear at different timing. I know this is quite simply but my AS3 is really not that good. Thank you for your time.

    Comment by June — November 23, 2008 @ 6:10 pm

  4. I made a new post on the subject here with sample code. Hope this helps and I did not take to long.
    http://www.taterboy.com/blog/2008/12/a-simple-game-engine-using-random/

    Comment by taterboy — December 1, 2008 @ 1:05 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment