Search:

Type: Posts; User: m00se123

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,810

    well i know i could do it that way, but my...

    well i know i could do it that way, but my classes are in .cpp files, and i thought you weren't supposed to #include cpp files, only header files. is there a way to do it this way, or should i just...
  2. Replies
    4
    Views
    1,810

    Class prototypes

    can you do class prototypes like functions. My problem is that i have two .cpp files and one uses a class from another. i have tile.cpp, which has the class tile, and i have layer.cpp, which has...
  3. Replies
    2
    Views
    1,197

    planning and organizing for bigger projects

    as my game projects become bigger i find im having trouble planning them out well and keeping them organized. what kind of sytems do you guys use for keeping your code organized, like how do you...
  4. Replies
    6
    Views
    3,836

    breakout style game collision detection

    i have gotten the paddle to ball and the wall collisions working, but i can't get the ball to block collisions working good. I think the prob is because i am usualy moving the ball 5 units at a...
  5. Replies
    109
    Views
    11,219

    are you using dbl buffer, cause when i use it...

    are you using dbl buffer, cause when i use it there is no blur at all. also if you want to see the source for the snake game i made w/ allgero just ask. it is pretty simple, so you should be able...
  6. Replies
    109
    Views
    11,219

    i just finished a game in allegro and this i what...

    i just finished a game in allegro and this i what i did to conrol game speed. you update the screen and keyboard input every loop, but you only change the objects position after so much time. heres...
  7. Replies
    3
    Views
    1,852

    my fist c++ game

    this is my first game in c++, it is a snake clone called nibbles. check it out and tell me what you think. i may add a few things, but it runs good now.
    ...
  8. Replies
    10
    Views
    1,075

    so i can't just us cin, why not?

    so i can't just us cin, why not?
  9. Replies
    10
    Views
    1,075

    yes im using allegro for my gfx and other things....

    yes im using allegro for my gfx and other things. And im not a complete dumb ass, im just a little comfused.
  10. Replies
    10
    Views
    1,075

    no im not programming w/ win32 api, i don't know...

    no im not programming w/ win32 api, i don't know that yet, but when i started i selected win32 app in msvc++ 6.
  11. Replies
    10
    Views
    1,075

    i could post the whole code, but it prolly...

    i could post the whole code, but it prolly wouldn't help, i will put a piece of it up..




    char player_name[30];

    void sort_high_scores(void)
    {
    int i;
  12. Replies
    10
    Views
    1,075

    i can't figure this out

    my game is 99.9 % complete and now i have a prob using cin.
    i just need to prompt the user for their name for high score, but when i use cin, nothing happens in my program. i compiles right. what...
  13. Replies
    1
    Views
    933

    nevermind just had to use strcpy(.....)

    nevermind just had to use strcpy(.....)
  14. Replies
    1
    Views
    933

    problem with array of strings

    heres the prob

    high_score_name[i] = high_score_name[i-1];


    when i compile it says "=": left operand must be l-value

    my array is defined as

    char high_score_name[10][30];
  15. Replies
    5
    Views
    1,585

    i tried time(), and it will only return whole...

    i tried time(), and it will only return whole seconds, it looks like gettime() does the same, only w/ hour min, sec, and i couldn't find any info on timegettime()
    can some help me out some more?
  16. Replies
    5
    Views
    1,585

    controlling game speed

    Im making a snake game and i need some help figuring out how to control the snake speed, and make it the same speed on all machines. i want the snake to move a couple times every second, or...
  17. Replies
    6
    Views
    1,041

    thanks for the help

    thanks for the help
  18. Replies
    6
    Views
    1,041

    reading/writing integers to a file

    i want to make a high score list for my game, but i can't figure out how to read and write integers from a file.
  19. Thread: help

    by m00se123
    Replies
    3
    Views
    815

    ok i figured it out x=20*((rand() % (SCREEN_X -...

    ok i figured it out
    x=20*((rand() % (SCREEN_X - 80)/20) + 2);

    thanks for your help
  20. Thread: help

    by m00se123
    Replies
    3
    Views
    815

    that creates numbers in the rt range, but they...

    that creates numbers in the rt range, but they are not factores of 20. also why is it SCREEN_X-80.
  21. Replies
    17
    Views
    2,086

    i don't know if i mentioned that my prog does...

    i don't know if i mentioned that my prog does end, it just doesn't ever make to the end. i used the exit function to get out, and before i call that i call my own function to clean everything up. ...
  22. Thread: help

    by m00se123
    Replies
    3
    Views
    815

    help

    ok i am having a little trouble generating random numbers betwen a range. i want the number to be between 40 and SCREEN_X-40 and also be a factor of 20. I had it working, but i somehow screwed it...
  23. Replies
    17
    Views
    2,086

    is this bad to do?

    i'm just wondering if it is bad to leave loops and then never finish them. For instance, if i was in the game loop, called the main menu, and then called the game loop, without every getting to the...
  24. Thread: help

    by m00se123
    Replies
    3
    Views
    881

    thanks for the help

    thanks for the help
  25. Thread: help

    by m00se123
    Replies
    3
    Views
    881

    help

    ok i have been programming for a while, but started learning c++ a while ago. i am working on a graphical snake game and have a lil prob. first i will show an example so you see my prob. this is...
Results 1 to 25 of 26
Page 1 of 2 1 2