Search:

Type: Posts; User: Serapth

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,293

    It sounds more like you need something like SFML...

    It sounds more like you need something like SFML, which you can see in action in this tutorial.

    It's a 2D game engine, built over top of OpenGL.
  2. Start by reading this...

    Start by reading this, it will give you recommendations on what libraries and books to look into.

    2D wise, you are going to be looking at SFML, SDL or a similar 2D library, assuming you already...
  3. Replies
    14
    Views
    2,450

    You are putting the horse before the cart reading...

    You are putting the horse before the cart reading an OpenGL book right now. Thats somewhat akin to reading a book about calculus before you have learned numbers. You need to start at the beginning;...
  4. I am struggling a bit with your question. It...

    I am struggling a bit with your question. It sounds like what you are looking for are game triggers based on proximity.


    If you are using an engine, such as Unity, UDK, CryEngine, etc... such...
  5. Replies
    1
    Views
    4,921

    That is because SFML doesn't support mp3. It is...

    That is because SFML doesn't support mp3. It is a license encumbered format ( aka, SFML would have to pay money to support it ), so they didn't.


    Either find an .ogg file, or convert your mp3 to...
  6. Replies
    15
    Views
    3,373

    Or use wstring. #include ...

    Or use wstring.



    #include <string>
    #include <iostream>


    int main(int argc, char* argv[])
    {
  7. Replies
    15
    Views
    3,373

    #include #include int...

    #include <string>
    #include <iostream>


    int main(int argc, char* argv[])
    {
    std::string stringDemo = "Hello";
    char c = 'v';
    stringDemo += c;
    std::cout << stringDemo; // prints Hellov
  8. Read this error message: (perhaps a semicolon...

    Read this error message:

    (perhaps a semicolon is missing after the definition of 'student')


    Then read it again, and again.
  9. I only see two new calls in that fragment. Clone...

    I only see two new calls in that fragment. Clone probably isn't meant to be deleted locally, so it makes sense to "leak". The other new, well... that's the source of his error. :)

    You are right...
  10. As was mentioned earlier, the binaries provided...

    As was mentioned earlier, the binaries provided by SFML don't work in Visual Studio 2010. Assuming you are using 1.6, I have libraries compiled for Visual Studio 2010 available here. Once you have...
  11. This is one of those areas where abstract...

    This is one of those areas where abstract examples really make learning a concept much more difficult, then if they provide real world, not completely contrived examples.


    You would use a pointer...
  12. Replies
    10
    Views
    1,515

    I believe the formal term is "hell".

    I believe the formal term is "hell".
  13. This is very true, but there is another thing to...

    This is very true, but there is another thing to keep in mind. Very often, the artist no longer has the ability to grant you use of their music, as once a recording deal is involved, it's generally...
  14. Replies
    14
    Views
    5,355

    No worries, not insulted, it is hard to gauge...

    No worries, not insulted, it is hard to gauge knowledge levels; especially in forums.

    Besides, although I've been coding for quite some time, there is nothing to say I'm good at it. :)
  15. Thread: Favorite IDE?

    by Serapth
    Replies
    51
    Views
    4,130

    Poll: Damn those new fangled electric lights, my...

    Damn those new fangled electric lights, my candles cast a much better light! * shakes angry luddite fist at the new fangled lights! *


    Not much point actually responding to the poll, as only 1...
  16. Replies
    14
    Views
    5,355

    It's funny as my career has gone on and I've...

    It's funny as my career has gone on and I've moved through different positions, how much this has changed. When I first got out of University ( or the horrid code I wrote before ), I was exactly...
  17. Replies
    16
    Views
    4,149

    Very true. The only downside to caching of...

    Very true. The only downside to caching of pointers is if the object you cached expires. This is why auto_ptr and it's kin are so incredibly powerful ( and a topic I need to cover at some point! )....
  18. Replies
    8
    Views
    2,168

    Which, DX11 or XNA? As the first I agree with...

    Which, DX11 or XNA?

    As the first I agree with completely, the later, I could see it being abandoned in a heart beat if accountants at MS thought that was the way to go, especially as the guy...
  19. Replies
    8
    Views
    2,168

    I don't think Direct X 11 is going anywhere, it...

    I don't think Direct X 11 is going anywhere, it is just going to become "yet another part of the Windows API". This to a degree makes sense, as with the move to a programmable pipeline, the need for...
  20. Replies
    16
    Views
    4,149

    The reality is, it was just demonstrative code. ...

    The reality is, it was just demonstrative code. It points out elsewhere in the same section that a) failure isn't handled properly b) it is slow.

    Perhaps the even more grave sin, there aren't...
  21. Replies
    14
    Views
    5,355

    First off, why did you make stateID an int...

    First off, why did you make stateID an int instead of a STATE?

    As a general rule of thumb, function pointers are a C thing. If you are using them, your class design is flawed. Again, just a...
  22. Replies
    16
    Views
    4,149

    Ahh, yeah, that would be the downside to...

    Ahh, yeah, that would be the downside to cut-and-pasting that here, eh?


    The chapter it came from is here:
    Game From Scratch C++ Edition Part 7


    The actual code was:
  23. Replies
    16
    Views
    4,149

    Casting in C++ In C++, you type cast an object...

    Casting in C++
    In C++, you type cast an object if you want it to be treated as an object a different type.


    When it comes to classes, a C++ object can be cast to either it's own type, or any...
  24. Replies
    1
    Views
    3,074

    You can sleep the thread (...

    You can sleep the thread ( Application.Thread.Sleep() I believe, but truth is, you dont want to do this.

    Your best bet is to alter your game logic. In XNA on update, you are passed the delta in...
  25. Got a budget for this? If you do, Mindstorm...

    Got a budget for this?

    If you do, Mindstorm Lego is about as perfect as you can get. They get to see real world cause and effect, Mindstorm has a "for kids" programming interface, but then later...
Results 1 to 25 of 48
Page 1 of 2 1 2