Sunday, December 13, 2009
Sunday, November 29, 2009
Saturday, November 28, 2009
Sunday, November 15, 2009
Game Rules and Logic
Rules
1. If player don't know how to play the game, they can go to instruction section.
2. The instruction is very simple and easy to understand since the target audience are kids.
3. Press space bar to shoot the enemy.
4. Use the arrow keys to move the hero back and forth and to make him jump.
5. To fight with the main enemy, player must shoot few times to kill him.
6. Main goal is to kill the entire enemy and win.
7. Player cannot hit the enemy or he will die.
8. There's only one life given so the player must be careful.
9. If they die, they can always play again.
10. When player win the game, he has save the country and people can live in peace.
Logic
1. This game is made to kill some time. Kids who feel bored can play thi sgame.
2. It gives player the spirit to win and to fight for the country.
3. Player need to focus while playing the game and act fast.
References
Character Design
As I mention in my presentation last week, my concept is ninja assassin. So the game will take place in a bamboo jungle.This is how the enemy gonna look like. Just a simple vector illustration. There will be about 10 of them and they will move back and forth.
I got this sample cartoon from here.
As I mention in my presentation last week, my concept is ninja assassin. So the game will take place in a bamboo jungle.This is how the enemy gonna look like. Just a simple vector illustration. There will be about 10 of them and they will move back and forth.
I got this sample cartoon from here.
Friday, November 13, 2009
Action Script
I got the coding from here.
I am going to use coding for the Hero, keys to move, shoot the enemy and the map format. It's kind of hard to understand. But I'm learning :)
for example, codes for the map is
ob.lastshot=getTimer();
game.bulletcounter++;
if (game.bulletcounter>100) {
game.bulletcounter=0; }
var name = "bullet"+game.bulletcounter;
game[name]= new game.Bullet; game[name].id=game.bulletcounter; game.bullets.push(game[name]);
if (ob.dirx or ob.diry) {
game[name].dirx= ob.dirx;
game[name].diry= ob.diry;
}
game[name].xtile= ob.xtile;
game[name].ytile= ob.ytile;
game.clip.attachMovie("bullet", name, 10100+game.bulletcounter); game[name].clip=game.clip[name];
game[name].x = (ob.x+game[name].dirx*ob.width);
game[name].y = (ob.y+game[name].diry*ob.height);
game.clip[name]._x = game[name].x;
game.clip[name]._y = game[name].y;
}
I am going to use coding for the Hero, keys to move, shoot the enemy and the map format. It's kind of hard to understand. But I'm learning :)
for example, codes for the map is
myMap = [Shoot:
[1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1]
];
For creating the bullets and giving bullets all the data they need for successful deadly flights, we will use new function called "shoot":
function shoot (ob) {ob.lastshot=getTimer();
game.bulletcounter++;
if (game.bulletcounter>100) {
game.bulletcounter=0; }
var name = "bullet"+game.bulletcounter;
game[name]= new game.Bullet; game[name].id=game.bulletcounter; game.bullets.push(game[name]);
if (ob.dirx or ob.diry) {
game[name].dirx= ob.dirx;
game[name].diry= ob.diry;
}
game[name].xtile= ob.xtile;
game[name].ytile= ob.ytile;
game.clip.attachMovie("bullet", name, 10100+game.bulletcounter); game[name].clip=game.clip[name];
game[name].x = (ob.x+game[name].dirx*ob.width);
game[name].y = (ob.y+game[name].diry*ob.height);
game.clip[name]._x = game[name].x;
game.clip[name]._y = game[name].y;
}
Subscribe to:
Posts (Atom)