Search:

Type: Posts; User: Drac

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    5,233

    By default Visual Studio sets the working...

    By default Visual Studio sets the working directory to be the folder which contains the solution file (.sln file). If you put the bitmap in that folder you should be able to access it using...
  2. I would agree with whiteflag that the compile...

    I would agree with whiteflag that the compile time cost of constructing a templated class is in most cases not worth small amount of syntactic sugar it produces. Maybe without auto I might consider...
  3. Thread: help please!!!!!

    by Drac
    Replies
    3
    Views
    899

    printf only accepts c-style string, that is const...

    printf only accepts c-style string, that is const char * typed strings. std::string has a method, c_str that will provide a c-style version of the string.


    printf("Hello name\n", name.c_str());
  4. Thread: Game advice

    by Drac
    Replies
    4
    Views
    1,548

    First you have to decide how customizable you...

    First you have to decide how customizable you want your weapons to be. In many games the weapons could just be one class defined by different values ex:

    BulletType
    FireAngleVariance...
  5. Replies
    2
    Views
    3,201

    Yes it should either be COLOR or COLOR0. COLOR1...

    Yes it should either be COLOR or COLOR0. COLOR1 would output to a second rendertarget in slot 1, but you cannot output there without also assigning a COLOR0 which goes to slot 0, which is the...
  6. Thread: Ramp game

    by Drac
    Replies
    9
    Views
    3,778

    Collision detection is no easy issue. It may be...

    Collision detection is no easy issue. It may be worth your time to look into a 2D physics engine like box2d.
  7. Thread: typedef issue

    by Drac
    Replies
    4
    Views
    1,576

    Thank you, I'm still figuring out the subtleties...

    Thank you, I'm still figuring out the subtleties of templates.
  8. Thread: typedef issue

    by Drac
    Replies
    4
    Views
    1,576

    typedef issue

    template<typename Type>
    class GetTypeRegister
    {
    public:
    typedef Type::InnerClass type;//Errors on this line
    };
    int main()
    {
    }
  9. Replies
    10
    Views
    6,522

    I'm still not seeing the part where it changes...

    I'm still not seeing the part where it changes direction, but there is one dormant issue.

    You want to be using '+' not '+='. By using += you are changing the value of gamePaddle.location. The...
  10. Replies
    10
    Views
    6,522

    Oh I got my conditions flipped around didn't I,...

    Oh I got my conditions flipped around didn't I, it should always be moving right. I still don't quite get the logic for check and set ball. Don't you want to change the direction of the ball upon...
  11. Thread: Audio

    by Drac
    Replies
    9
    Views
    2,012

    I've heard very good things about FMod as well,...

    I've heard very good things about FMod as well, although I haven't used it.
  12. Replies
    10
    Views
    6,522

    So if it is colliding it moves right, and if it...

    So if it is colliding it moves right, and if it isn't colliding it moves left. Unless it is colliding a lot it seems like it will be moving left most of the time.
  13. Replies
    8
    Views
    2,166

    If you think you can handle it start with C++. ...

    If you think you can handle it start with C++. I've heard some people who say Python is a good place to start. I can't vouch for that though. C++ isn't the most beginner kind language, so be...
  14. Replies
    11
    Views
    1,971

    I almost wonder if this is a troll, but I'll...

    I almost wonder if this is a troll, but I'll bite.

    I've had to read that 5 times, and I'm still not sure if I get it. I didn't bother trying to read the rest, and that should be reason enough...
  15. Replies
    6
    Views
    7,222

    According to the DirectInput documentation, if...

    According to the DirectInput documentation, if you are using a keyboard for typing or a mouse for navigation (ie. all games that don't use joysticks or controllers) you should use Windows Messages. ...
  16. Replies
    11
    Views
    1,971

    My questions as well. Who has assigned this...

    My questions as well. Who has assigned this project while giving you so little direction? Even making asteroids in DirectX will be very difficult for a beginning programmer.

    And by console do...
  17. Replies
    8
    Views
    2,435

    Pretty much. Luckily ShaderX2 has a couple...

    Pretty much. Luckily ShaderX2 has a couple chapters on this. The advanced lighting and shading chapter deals with light on objects. I would use shadow maps for relatively easy shadows, and there...
  18. Replies
    7
    Views
    3,031

    Your logic for finding out the side seems a bit...

    Your logic for finding out the side seems a bit off, and where is 16 coming from? This is an imperfect method of attack however. To get it right all the time you will have to take into account the...
  19. Replies
    3
    Views
    1,279

    The problem here is that you are always...

    The problem here is that you are always incrementing the animation once very update. So in this sense it is always animating as fast as possible. You'll need to put in code like Wazaa's to make it...
  20. Replies
    8
    Views
    2,435

    Speaking of ShaderX2, it's out of print and now...

    Speaking of ShaderX2, it's out of print and now free for download off of GameDev.net.
    http://www.gamedev.net/reference/programming/features/shaderx2/Introductions_and_Tutorials_with_DirectX_9.pdf
  21. Replies
    21
    Views
    5,062

    XP

    I think he's doing the emoticon XP with a lower case x so it doesn't look quite right.
  22. Replies
    6
    Views
    1,298

    Does the window close after you enter your input?...

    Does the window close after you enter your input? This is very likely since it will flow immediately to the return. You can slow it down by putting a getchar() before return which will wait for you...
  23. Replies
    24
    Views
    4,682

    Don't expect that changing the pointers to...

    Don't expect that changing the pointers to references will help much with your problem because the compiler will effectively turn references into pointers(if I'm remembering correctly).
  24. Replies
    7
    Views
    1,505

    Sounds like that could be solved with the '&'...

    Sounds like that could be solved with the '&' operator.
  25. Replies
    6
    Views
    5,547

    Well if you just use my lines they won't work...

    Well if you just use my lines they won't work because there is no main function declaration.
Results 1 to 25 of 72
Page 1 of 3 1 2 3