Show Posts
|
|
Pages: 1 ... 5 6 [7] 8 9 ... 14
|
|
122
|
Community / Sports / Re: paintball game
|
on: November 02, 2012, 05:24:45 AM
|
|
Been perfecting the a.i, mostly so he doesn't run out of the screen. Might just make a video later.
|
|
|
|
|
124
|
Community / Sports / Re: paintball game
|
on: November 01, 2012, 07:40:43 AM
|
|
Hi! I've been devin' and've gotten some a.i into the game and the enemy that shoots when you get close. There's a "timer" that goes up to 100 and then shoots. He walks around randomly and when you get with in range he stops and shoots. He has the same range of view as you.
Thanks for reading.
|
|
|
|
|
125
|
Community / Sports / Re: paintball game
|
on: October 31, 2012, 07:05:31 PM
|
Hi! I've been devin' some, I've made a level, simple graphics(which is final because drawing is hard), shooting and I've rendered an enemy. My current things to do is A.I, power-ups, health-bars, health packs, more levels, main menu, some more graphics for different levels. Here's an image of the game in it's current state. I have like six more hours because I'm at a "lan" party at my friends house. We basically just sit up and do random shit. 
|
|
|
|
|
128
|
Community / Sports / paintball game
|
on: October 31, 2012, 07:08:46 AM
|
|
I don't have a name yet. It's going to be a paintball game where you shoot people. There is going to be powerups and 5-10 levels. You fight A.Is, if I have time I'll might make a co-op mode.
Edit: This is all made with pure SDL and C++.
|
|
|
|
|
137
|
Developer / Technical / Re: Random A.I movment?
|
on: October 26, 2012, 12:30:03 PM
|
Are you calling srand() anywhere? rand() will give you the exact same sequence of values every time for a given seed, and it'll have the same starting seed (1) every time you execute your program unless you specify a different one. The most common pattern I see is srand(time(NULL)) at the beginning of your main() function. However, I've heard quite a lot of woes from people about rand(), including performance concerns, poor randomness, and inconsistent behavior. It might not be a bad idea to have a different random number generator on hand. Here's the one I use, based on RANROT. I fixed it, thanks.
|
|
|
|
|
138
|
Developer / Technical / Random A.I movment?
|
on: October 26, 2012, 11:49:29 AM
|
Hi! I'm trying to make an enemy move randomly around the screen and shooting when it gets close. I know how to do the shooting part and I know how to do random movement. But it does the same thing everytime I run it. Here is the code: random += 1;
if(random == 100) { direction = ( (int)rand() % 4 + 0); } if(random == 200) { random = 0; } cout << direction << " \n";
if(direction == 1) { enemyX += 1; } if(direction == 2) { enemyX -= 1; } if(direction == 3) { enemyY -= 1; } if(direction == 4) { enemyY += 1; } The random decides when it's going to do the random movement, and direction is the one who decides movement. Thanks for any help 
|
|
|
|
|
140
|
Community / DevLogs / Re: Sentoki's quest
|
on: October 23, 2012, 08:33:11 AM
|
Well, I've been gone, for long. I've been working on multiple projects since this and have learnt how to do more stuff(animation, powerups, health bar). So I'm reviving this!
First of, I'm redoing graphics and adding animation, health bar, power-ups and more levels. I'll might add some other stuff along the way because concentrating is hard.
Stay tuned for more updates  Nope, the code is to ugly. TL:DR I rage quit from this project
|
|
|
|
|