Author |
Message |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Fri Nov 14, 2008 6:32 pm Post subject: Cool Game |
|
|
Here's a game I coded when I was bored out of my mind....
Moving - directional arrow keys
Objective - to collect all the points before the enemy catches you
Special features - cool shimmering affect, enemies crash when they collide
please comment
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Game.rar |
Filesize: |
270.57 KB |
Downloaded: |
330 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Sat Nov 15, 2008 4:45 pm Post subject: RE:Cool Game |
|
|
Cool effects and whatnot, but why does it speed up when I come close to an enemy? Is it because their acceleration speeds up or does it just happen that way?
Cool game though.
|
|
|
|
|
![](images/spacer.gif) |
S_Grimm
![](http://compsci.ca/v3/uploads/user_avatars/18926424384e6d86e5cf4d6.jpg)
|
Posted: Sat Nov 15, 2008 5:31 pm Post subject: RE:Cool Game |
|
|
A suggestion : Keep track of how many enemies you vaporized.
A Comment. Great game. the effects of the enemies blowing up was spectacular.
|
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Sat Nov 15, 2008 8:46 pm Post subject: Re: Cool Game |
|
|
Thanks for the comments SNIPERDUDE and A\V !
SNIPERDUDE wrote:
Cool effects and whatnot, but why does it speed up when I come close to an enemy? Is it because their acceleration speeds up or does it just happen that way?
Cool game though.
This is because I move the enemy using trig (I get the arctan of the angle formed between the player and the enemy) and i have a 'speed' attached to every enemy. This speed is calculated as follows:
enemy.speed = max (2, 250/(distance between player and enemy))
This means that the closer the enemy is to you, the faster it moves. And to ensure that the enemy never stops moving, I make it's speed 2 if 250/(distance between player and enemy) < 2.
AV wrote:
A suggestion Keep track of how many enemies you vaporized.
A Comment. Great game. the effects of the enemies blowing up was spectacular.
Funny you say that, cuz I just added that today!!!
I was thinking about adding more features, but I need some ideas....
Cud u guys help me out?
Thanks a bunch
|
|
|
|
|
![](images/spacer.gif) |
DanielG
|
Posted: Sun Nov 16, 2008 3:30 am Post subject: RE:Cool Game |
|
|
You could make the game more interesting by you being able to lay mines, which can act like the enemies, only they don't move and don't kill you (only explode when an enemy lands on them).
I can't think of anything else now, or any restrictions to the above to make them work well (improve the game, not to allow infinite mines or too few).
|
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Sun Nov 16, 2008 12:14 pm Post subject: Re: Cool Game |
|
|
thanks DanielG...thats a great idea! Being able to place mines of some sort before the game starts...I'll look into that...
|
|
|
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Sun Nov 16, 2008 4:02 pm Post subject: RE:Cool Game |
|
|
Good game
To make this harder why not increase the size of you 'man' circle thing ;p; by like the curent points you have so if you have 5 points increase the size of your 'man' 5 points *5
So it's bigger 25 on x and 25 on y
|
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Sun Nov 16, 2008 4:37 pm Post subject: Re: Cool Game |
|
|
copthesaint wrote:
Good game
To make this harder why not increase the size of you 'man' circle thing ;p; by like the curent points you have so if you have 5 points increase the size of your 'man' 5 points *5
So it's bigger 25 on x and 25 on y
cud u be a bit clearer, copthesaint?
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Mon Nov 17, 2008 8:45 am Post subject: RE:Cool Game |
|
|
You know the yellow circle you use to move arround?
When you obtain a point make the yellow circle a bit bigger and make the collition range a bit bigger also.
then maybe that would make it harder + It would be a good effect.
also if you wanted you could make the level bigger.
Questions.
Is this a project for marks?
Are you releasing code?
|
|
|
|
|
![](images/spacer.gif) |
petree08
|
Posted: Mon Nov 17, 2008 9:26 am Post subject: Re: Cool Game |
|
|
pretty cool,
The blur effect has been used alot on this site (meh i've used it alot to , found it on the forces source code)
quick question are you finding slopes or vectors when you calculate the AI's path?
here is an example of attraction using slopes that i posted a while back
http://compsci.ca/v3/viewtopic.php?p=129442&highlight=#129442
|
|
|
|
|
![](images/spacer.gif) |
S_Grimm
![](http://compsci.ca/v3/uploads/user_avatars/18926424384e6d86e5cf4d6.jpg)
|
Posted: Mon Nov 17, 2008 11:26 am Post subject: RE:Cool Game |
|
|
what copthesaint means is everytime your point count goes up, your radius of the player also goes up. I think that having it go up by 1 every time the player gets a point would make it too large, maybe every 2 or 3 points?
|
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Mon Nov 17, 2008 3:48 pm Post subject: Re: Cool Game |
|
|
copthesaint wrote:
You know the yellow circle you use to move arround?
When you obtain a point make the yellow circle a bit bigger and make the collition range a bit bigger also.
then maybe that would make it harder + It would be a good effect.
also if you wanted you could make the level bigger.
Questions.
Is this a project for marks?
Are you releasing code?
Sure, I'll add that and see how it is. Thanks
And, no, this is not for marks. Its just a small game that took me a about 30 min to code (without including coming back to the program and adding changes). I will release the code if people want to see it.
petree08 wrote:
pretty cool,
The blur effect has been used alot on this site (meh i've used it alot to , found it on the forces source code)
quick question are you finding slopes or vectors when you calculate the AI's path?
here is an example of attraction using slopes that i posted a while back
http://compsci.ca/v3/viewtopic.php?p=129442&highlight=#129442
I take the arctan of the angle formed from the enemy to the player. I then increment enemy(i).x by round (cosd (e (i).angle) * e (i).speed) and enemy(i).y by round (sind (e (i).angle) * e (i).speed).
|
|
|
|
|
![](images/spacer.gif) |
petree08
|
Posted: Wed Nov 19, 2008 12:54 pm Post subject: RE:Cool Game |
|
|
very nice, i used slopes in my earlier days but angles are a lot nicer to work with .
|
|
|
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Wed Nov 19, 2008 6:05 pm Post subject: RE:Cool Game |
|
|
angles are a lot better to work with than slopes.
|
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Wed Nov 19, 2008 10:13 pm Post subject: Re: Cool Game |
|
|
SNIPERDUDE wrote:
angles are a lot better to work with than slopes.
I agree
|
|
|
|
|
![](images/spacer.gif) |
|