Search:

Type: Posts; User: Ion Blade

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,497

    ah i figured it out. here's an example of what i...

    ah i figured it out. here's an example of what i did (just for reference heh) :



    bool S_IS_DOWN = false;

    void GetInput()
    {
    if (key[KEY_S] & !S_IS_DOWN)
    {
  2. Replies
    2
    Views
    1,497

    Keyboard question with allegro

    Hi..

    my problem is with keyboard input using allegro. what i'm trying to do is fairly simple...i have a Status indicator box that you can toggle on and off. right now i have it set up so that...
  3. Thread: life<=0

    by Ion Blade
    Replies
    5
    Views
    1,085

    a good place to put it would be right after a...

    a good place to put it would be right after a hit/attack occurs, and it says "the monster dealt x damage". if the player dies, do your "you are dead" message and break out of the loop, otherwise keep...
  4. Replies
    4
    Views
    921

    ahhh i thought at one point i wasn't assiging...

    ahhh

    i thought at one point i wasn't assiging a size to the commands, and couldn't figure out how to go about doing it then forgot it lol.

    anyway that worked, thanks
  5. Replies
    4
    Views
    921

    Tried that, compiler just gave an error. The...

    Tried that, compiler just gave an error. The problem is an illegal operation, invalid page fault.
  6. Replies
    4
    Views
    921

    Problems with getline

    I have a program that wants to read in 30 strings from a text file and store each string in an element of an array.

    The array is declared as this...



    char *command[MAX_COMMANDS]; //commands...
  7. Replies
    13
    Views
    1,717

    whoops, didn't log in right

    whoops, didn't log in right
  8. Replies
    7
    Views
    1,240

    char templine[72]; using win98, and...

    char templine[72];



    using win98, and dev-c++ v4.9.7.5 compiling with mingw32
  9. Replies
    7
    Views
    1,240

    Doesn't work. here's what i did: ...

    Doesn't work.

    here's what i did:


    while(!DFile.eof())
    {
    DFile.getline(templine,1);
    cout<<templine;
    cout<<endl;
  10. Replies
    7
    Views
    1,240

    woops, didn't log in correctly :rolleyes:

    woops, didn't log in correctly :rolleyes:
  11. Replies
    6
    Views
    3,926

    Using a timer in allegro

    I have started trying to learn Allegro, so i'm quite new to it, and it is really my first experience with an API.

    What i want to do is similar to this (pseudo-code) :



    while (!exit)
    {
    ...
  12. Replies
    3
    Views
    1,218

    It's hard for me to explain it... i'll try my...

    It's hard for me to explain it... i'll try my best


    In my connect four game, i have a char (defined char board [8] [7]) to keep all the values of the board.

    Each space is either equal to O for...
  13. Replies
    3
    Views
    1,218

    Elements of an array in a struct?

    I have no idea if this is explained in a tutorial, but is it possible to make each element of an array part of a struct?

    Like:



    char myChar [10];

    myChar [6] = 'A';
    myChar [6].isChanged =...
  14. Replies
    10
    Views
    6,252

    I noticed a bug in the code that would allow 4...

    I noticed a bug in the code that would allow 4 players to play in iron man mode if you selected 4 player mode and then switched to iron man. I fixed it, and here is the latest version of the program...
  15. Replies
    10
    Views
    6,252

    Thanks for the replies :D :) Kliner, ai would...

    Thanks for the replies :D :)

    Kliner, ai would be pretty cool, but i don't have the will to work on it because it would seem daunting to me. you, or anyone however can try and implement ai into my...
  16. Replies
    10
    Views
    6,252

    Advanced connect four game

    Hi..

    this is my first "real" game in c++. It is connect four, only beefed up with features and options. At this stage, only a couple of the options work, and only a few modes work correctly...
  17. Replies
    2
    Views
    1,728

    Connect Four game...need help

    I am making a connect four game in console mode.
    I have just written the function that determines what to do when the current player drops their piece in a row.

    Here's what it is:



    void...
  18. Replies
    6
    Views
    1,492

    Yay, it worked...but now when i try to run the...

    Yay, it worked...but now when i try to run the program, it says "alleg40.dll not found".... ? :confused:

    oh never mind, i got it.... i was wondering what that new Dll folder was all about. Thanks
  19. Replies
    6
    Views
    1,492

    problem is still there.

    problem is still there.
  20. Replies
    6
    Views
    1,492

    Problems getting allegro to work.

    Hey.
    I am using DevC++ 4.01 and i recently downloaded the allegro 4.0 self install exe from their site...it is all installed and everything, but here is my problem.



    #include <allegro.h>
    ...
  21. Replies
    8
    Views
    9,442

    thanks for all the replies :)

    thanks for all the replies :)
  22. Replies
    8
    Views
    9,442

    Arrow Key menus in console mode

    hi.

    What i am trying to do is make a menu for a game (in console) that looks like this:

    GAME TITLE BLAHBLAH

    + Play Game
    Options
    Exit
  23. Replies
    7
    Views
    1,187

    Why not just... #include ...

    Why not just...


    #include <iostream.h>
    #include <fstream.h>
    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
  24. Thread: new line

    by Ion Blade
    Replies
    3
    Views
    1,637

    Maybe you have to declare strLine like this: ...

    Maybe you have to declare strLine like this:



    char strLine[10];


    and then it may work. I dunno if cin.getline likes the 'string' declaration...
  25. Replies
    14
    Views
    3,136

    i have an hd that stores exponential amounts...

    i have an hd that stores exponential amounts beyond yours, because MY dad works for aliens with superior technology. OOPS, I HAVE TO RU... *bang*
Results 1 to 25 of 36
Page 1 of 2 1 2