Before the programming part of your game comes, what is the point? Do you have it laid out (goal, rules, players, etc.)? Will it be console? Win32?
(There's a book for this, there's a book for everything.)
Hi, I'm trying to make a simple rts game in c++. Im hoping it's possible. I havn't coded anything at all for it atm, it was a fairly new idea. I understand the basics of c++ i got a book to help me. My question is, however, would i code an ai system in the game (which would really make it the game loop i guess?) or would i code it in some AI coder program?
Thanks for the comments!
Bump??????
Last edited by Jorndel; 06-09-2013 at 06:39 AM.
Before the programming part of your game comes, what is the point? Do you have it laid out (goal, rules, players, etc.)? Will it be console? Win32?
(There's a book for this, there's a book for everything.)
Last edited by FingerLickin'Good; 06-09-2013 at 07:09 AM.
Goal: destroy enemy base first. Players: 2;1 human, 1 AI. I have all the rules writen down. Just a win32 application in the cmd box. I have a c++ through game design book, however im only halfway through. Im not sure if it goes over AI...
What is the process you go through to beat the enemy? (ie: battleship, random guesses; mastermind, logic or something of that sort; connect-4, place 4 pieces in a consecutive line)
Last edited by FingerLickin'Good; 06-09-2013 at 08:58 AM.
The easiest way to create an AI is to just create a bunch of conditional statements that keep being looped through for each possible situation.
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
Hmm. You would start with a number of units, a factory and a main base area. You start by placing your units (a max of say 5 spaces from the main base) i guess the battle ground will be an array and to place characters, you simply enter in coordinates. Any way. Its like an rts game. So the rounds would go by turns. First your turn (start with upgrade stage, then move stage, then attack stage)
---------- Post added at 11:15 AM ---------- Previous post was at 10:30 AM ----------
Hmm. That seems like it would take a while... I wouldnt even know where to start
the best choice is a machine learning. google for it, there is a lot of samples. It would be quiet useful for you to implent the system of such kind.
And if everything is ok it will pwn every single player in your game(with small subset of meaning characteristics)
~FALLEN~ (06-10-2013)
You may see it as a pre-mature optimization but when you're writing your own runtime, STL, etc it's not so evil..
Regardless, there's plenty of other implementations I have for atoi that was just one of them.
---------- Post added at 02:43 AM ---------- Previous post was at 02:41 AM ----------
I personally prefer neural networked "learning".. but I guess the type of "learning" you should use is dependent on the type of task you wish to preform.
Last edited by ~FALLEN~; 06-10-2013 at 01:47 AM.
dimast (06-10-2013)
There is optimize code, there is fast code, there is size code and then there is beautiful code or what i call artist code. Because he had all those lines, doesnt mean he wasn't going for something from it, for example, lets say u wanted convert a texture from RGB
u can simple use a while loop coping all the texels or u can use SSE/AVX instructions, clearly the SSE/AVX instructions are way more code, but they are WAY faster.
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
~FALLEN~ (06-21-2013)