My RTS Game

This is a discussion on My RTS Game within the Game Programming forums, part of the General Programming Boards category; Hey! I've finally got enough of my newest project, a real-time-strategy game, finished so that I can give you all ...

  1. #1
    Registered User harryP's Avatar
    Join Date
    Sep 2002
    Posts
    124

    My RTS Game

    Hey!

    I've finally got enough of my newest project, a real-time-strategy game, finished so that I can give you all a demo. Actually, I'm thinking real-time-strategy isn't quite the correct category...it'll probably end up being more turn-based, I've yet to see.

    Anyway, it's got a little manual with it to help everyone out. It's fairly basic right now, and the game itself will stay basic (I don't think I could handle allowing 100 different types of units and such...). But you can create new armies, build towns, explore land hidden by Fog of War (I was really excited when I got that working ), stuff like that.

    It's in the console...still. I'm still really hesitant to move into Windows, because I really don't like it's interface. But once I finish the console version, if enough people find it decent enough to want a Windows version, I'll give it a shot.

    But all comments, criticisms, what be it are welcome. I'd kinda like input before I get too far into it. Thanks, and I hope you enjoy it!

    Brendan
    Attached Files Attached Files
    Draco dormiens nunquam titallandus.
    Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    awesome.

    seriously, out of all the "games" that people put up on this board, that one is actually pretty good (especially since it is in console).

    keep up the good work.
    My Website

    "Circular logic is good because it is."

  3. #3
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    highly impressive. it could do well with a move to windows, since the input is a little awkward in console. but other than that it looks as if you have a good game on your hands.

    if you want to move it to windows but are hesitant because you dont like programming in windows, id be more than happy to help. ive been wanting to work on an RTS for a while but i havent found anyone that will tackle it with me.
    I came up with a cool phrase to put down here, but i forgot it...

  4. #4
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    It's awesome! I don't think it would have as much flair in windows, though. People seem to expect more from windows apps, like graphics, but then again, if you can draw some up, go ahead. If anything don't forget to post this in the "Post your best games here thread", when this thread is old and done.

    Suggestions:
    1. I didn't look at the manual, so I didn't know how to get resources. There should be a button. Everything else (i think), I picked up, which is a sign of a good game.

    2. I will look at the code and post more stuff, but since I haven't yet, my input is as good as <insert bad thing here>
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  5. #5
    Registered User harryP's Avatar
    Join Date
    Sep 2002
    Posts
    124
    Wow. Thanks both of you . '...', thank you for your offer. I'm definitley thinking about it, and there are 2 reasons why I haven't quite decided: first, whether I do it in Windows or not, I'd like to complete my console version first. I've kind of made it my last big project in console-mode, at which point I plan on moving to Windows and the Windows API graphical functions. I know they're slow and all, but I've done some Windows stuff already using them, so I'm kind of familiar with them. After that, I suppose DirectX or OpenGL. Anyways, the second reason is, this game is kind of like a personal goal of mine. I don't plan on programming for a living, it's just a side hobby, but it is my goal to create one good, fun game in C++. This game so far has already been a learning experience for me, and I expect I'll gain a wealth of knowledge on it still (AI is sounding rather daunting at the moment, plus a good pathfinding algorithm. I'm thinking of A*). So for now, I think I'd like to continue on it by myself. However, if I do move it to Windows, I think I'll take up on your offer. Thanks .

    Wow, that was a whole lotta rambling lol. But glad you like it. I'm working on the battle system currently, and the ability to train armies. Fun stuff

    Brendan
    Draco dormiens nunquam titallandus.
    Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html

  6. #6
    Registered User harryP's Avatar
    Join Date
    Sep 2002
    Posts
    124
    Oh and Stan, I didn't include code with it. It is FAR too messy for me to do that right now. I'll post it with my final game though. These are supposed to be great learning tools so. But it uses the console graphics library I made and everything, and that's a whole lot of other code, so I didn't want to mess with that right now.

    As to the resources: simply building a town gives you more resources. So I guess you could say there is a button for that: "Build", then "Town" .

    Brendan
    Draco dormiens nunquam titallandus.
    Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html

  7. #7
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    There is a way you can move it to Windows without having to deal with the Windows API crap. SDL

    SDL is a wonderful API that will handle windows for you...all you have to do is make your normal main ( ) function and go on coding.

    Of course there would be some conversion from console to SDL, but when you do go Windows, I suggest SDL.

    So keep SDL in mind when you decide to take your game from DOS to Windows.
    My Website

    "Circular logic is good because it is."

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    195
    Very very nicely done console game!

    Could you please post up your code for the Midieval Conquest thing? How did you get the mouse functions in Console?

  9. #9
    Registered User harryP's Avatar
    Join Date
    Sep 2002
    Posts
    124
    Hey, that SDL thing sounds great! Thanks for mentioning that, DavidP! And to KneeGrow, as I've said, my code is far too messy and there are too many files for me to try and put all together right now. When I finish the game, it'll include the full source code.

    I integrated the mouse through a wrapper graphics library I made for the console. It basically simplifies a lot of the Windows functions and allows lots of functionality. You can get a link to it in my sig, it's called the Console Graphics Library. The version you can download now though is NOTHING compared to what I've done to it recently. I need to re-upload the thing, because I made some major updates to it. But feel free to check it out.

    Brendan

    P.S. Thanks for all the positive feedback
    Draco dormiens nunquam titallandus.
    Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html

  10. #10
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    Wow, that's really cool

    Probably the first RTS written in console that I've seen...good job .

    Oh, and I agree with the other posters...port it to Windows.
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  11. #11
    Registered User
    Join Date
    Sep 2003
    Posts
    1

    Game

    Nice.. Thats def. one of the best games ive seen here(not that i have tons of experience). Good Job

  12. #12
    Registered User harryP's Avatar
    Join Date
    Sep 2002
    Posts
    124
    Thanks everyone! It's kida nice to know that people seem to like it and there isn't really anything to even do in it yet lol. I'm working on a battle system right now. Basically, you can do a "quick battle" in which the computer computes the outcome quickly and the losing unit dies. You can also do a real-time battle where you zoom down into the battlefield and watch the armies have at each other. It's a little difficult, but I think I'll get it soon. Then I plan on putting in enemy AI. The most daunting thing for me is actually pathfinding, because I find A* rather confusing, but I'll work on it some more and see what I can do. Thanks guys!

    Brendan
    Draco dormiens nunquam titallandus.
    Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html

  13. #13
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Oh yeah, this is off topic a bit, but if you don't want to learn Win32 API, because you know how crappy it is and all, there are plenty of cross-platform libraries to do windowed applications. My favorite is QT. To find out more about it, go to www.trolltech.com

    Oh yeah, and you know OpenGL games? You don't even need to know Win32 API to make games of that calibre, you could use GLUT, or maybe AllegroGL. Don't be discouraged of your ability because you don't know Win32 API, I haven't made anything more in Win32 API than a few simple apps, and all my DX crap when I was messing around with that.

    edit: If you are going to be making stuff for windows, scratch QT. I didn't realize that the Windows version isn't free, like every other platform's version of it . GTK+ is still pretty good.
    Last edited by frenchfry164; 10-26-2003 at 11:56 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-08-2010, 12:08 AM
  2. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 05:48 PM
  3. Need book to program game into multiplayer...
    By edomingox in forum Game Programming
    Replies: 3
    Last Post: 10-02-2008, 10:26 AM
  4. C# - Building a SCUMM-like game.. questions
    By Iyouboushi in forum Game Programming
    Replies: 0
    Last Post: 05-24-2008, 11:54 PM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-25-2002, 12:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21