Thread: Battle of the Knight V1.0 Demo!

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    Battle of the Knight V1.0 Demo!

    Okay, its a text game. I am still struggling to learn graphics programming. Im still a newbie, come on! In this game, your mission is to level up, slay some monster(you don't have to), and escape on the exit door, 2nd floor. It's going to have sounds and music, but i can't get sounds to work. Dev won't compile it with gnu. The monsters move around, well 2 do, the third just sits there. On the second floor, you will hear the monsters underneath you. Well, you figure it out. hit the 3 button whille battleing the zombie to steal potions.
    This war, like the next war, is a war to end war.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    ...

    not bad but it could be more interesting, maybe more comentary when you walk around, tell people what they are seeing as they walk.

  3. #3
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    I could do that. But i would like to use a map. I don't want to base it on the engine right now. Look at the source. Im a newbie, i make do with what i know, If, switch, while, rand(), int, char, string, and void.

    Edit:
    Remember, it's just a demo right now.
    Last edited by Blizzarddog; 03-06-2003 at 12:00 PM.
    This war, like the next war, is a war to end war.

  4. #4
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    yikes
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  5. #5
    |<o>| <--cyclopse LouDu's Avatar
    Join Date
    Mar 2003
    Posts
    137
    mines better how do you do the colored text ? i know it uses conio.h but i looekd at your source and cant figure it out
    Languages <> C++, HTML

    /*The Ledgend of Ludlow Coming to a PC Near
    You intro Cinenmatic Needed email me of
    Reply to one of my threads if you can make
    one, thats decent. */

  6. #6
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    If you're using borland I believe you have your own compiler-specific function. If not,

    Code:
    #include <iostream>
    #include <windows.h>
    using namespace std;
    
    void setColor(unsigned char color)
    {
         SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color);
    }
    
    int main()
    {
         setColor(FOREGROUND_RED);
         cout << "Red\n";
         setColor(FOREGROUND_GREEN);
         cout << "Green\n";
         setColor(FOREGROUND_BLUE);
         cout << "Blue\n";
         setColor(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
    
         return 0;
    }
    Last edited by abrege; 03-06-2003 at 06:47 PM.
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  7. #7
    |<o>| <--cyclopse LouDu's Avatar
    Join Date
    Mar 2003
    Posts
    137
    <---uyseing borland
    Languages <> C++, HTML

    /*The Ledgend of Ludlow Coming to a PC Near
    You intro Cinenmatic Needed email me of
    Reply to one of my threads if you can make
    one, thats decent. */

  8. #8
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Well then I think the function is textcolor() or something similar. If you want to know how Blizzard did it look at his DrawColorString function.
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  9. #9
    Registered User
    Join Date
    Oct 2002
    Posts
    118
    I think what would improve the game would be making it so you do not have to press enter after each move. Other than that it's pretty good newbie stuff.
    "The distinction between past, present and future is only an illussion, even if a stunning one."
    -Albert Einstein

  10. #10
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Well, i have a wave player to be released for my company. It can currently play 10 tracks. It uses getch(). The letdown is, you have to press the button twice.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Forming RTS Demo Team – Sixth Extinction
    By SteelRain4eva in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 06-08-2006, 08:47 PM
  2. Adventurers and Outlaws and new Demo
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 11-07-2004, 05:06 AM
  3. Second MoA Demo Tomorrow
    By harryP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-30-2002, 07:22 PM
  4. Turn based battle demo
    By Kirdra in forum Game Programming
    Replies: 0
    Last Post: 09-13-2002, 01:01 PM
  5. SkyLock graphics engine demo
    By jdinger in forum Game Programming
    Replies: 18
    Last Post: 06-26-2002, 07:58 AM