Search:

Type: Posts; User: M.Richard Tober

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thank you so much laserlight! I split them into...

    Thank you so much laserlight! I split them into proper header/source file pairs, and everything compiled without a peep. (Well, -Weffc++ made a peep about wptr not being initialized in the...
  2. Class Definitions have Interwoven Dependency

    Hello, I have an exercise from my text that defines a StrBlob class, then a StrBlobPtr class to hold weak pointers to the StrBlobs. This is from C++ Primer (5th Edition) and coincidentally, the...
  3. Thanks!

    Thanks guys. Grumpy, your code still compiled for me, and is very close to my original test-case, but I think I got it now. I was confusing creating an instance of the object with actually using it...
  4. Implications of an explicit constructor taking a std::initializer_list

    What are the design considerations of an explicit constructor which takes an initializer list vs a non-explicit constructor (which takes an initializer_list).

    Example:

    explicit...
  5. Well, it's a little hacky, but here's the...

    Well, it's a little hacky, but here's the finished solution:

    // Beginning of the code for bullet on bullet collisions.
    auto playerShotIter = PlayerBullets.begin();
    ...
  6. Nested Loop that may potentially delete iterators of inner & outer vectors

    Heya all, long time no see. Anyhow, I've got a situation where a vector of sprites* is checked against another vector of sprites*. If the pair being checked intersect, I'd like to delete them both. I...
  7. Sorry VA, lemme add salvage the thread with some...

    Sorry VA, lemme add salvage the thread with some valuable resources:

    SFML 2.0 RC just finished by Laurent Gromila: SFML 2.0 RC
    Excellent online book on modern OpenGL shading: Learning Modern 3D...
  8. I made a blog, comments and critiques welcome!

    Hey guys, I made a blog so I could share my code with people easier (in IRC for example) and sort of keep a record of my progress for myself.

    I just started it today, but anyone's welcome to have...
  9. Replies
    6
    Views
    1,565

    Hi Aaron and welcome to Cprogramming.com's Game...

    Hi Aaron and welcome to Cprogramming.com's Game Area! It looks like you've decided to program games in C++! Excellent!

    Notes:
    - Get in the habit of using the string type from the <string>...
  10. I'm plotting to steal Salem's brain...

    Salem's right, JM. Your loop will trigger when any event is detected - and though the check for the "Key Press & Escape Key" is correct, the second check is incomplete. You're not checking for a...
  11. Ahh, thank you!

    Thank you both Raigne and VirtualAce! You're suggestions are appriciated, and though I'm at the extent of my programming ability in this project - you've both shown some excellent areas to move into....
  12. Replies
    2
    Views
    1,361

    Wrote code to form a MUD, like wrote the code for...

    Wrote code to form a MUD, like wrote the code for DikuMUD, etc - or simply authored area's for said MUDs?
    index_header up since 1994 and still going. :) If I think about it too long, I may go find...
  13. Final Word

    The final optimized Area.Draw: (Comments encouraged)


    void Area::Draw(sf::RenderWindow &Screen, Coord Cam, std::vector<sf::Sprite>& Terrain, std::vector<sf::String>& Messages)
    {
    static bool...
  14. I got it.

    This particular roadblock - the failure to cull the western edge of the viewable screen.

    I spent 18 hours looking for a math error. An off-by-one, or perhaps a float-to-int convertion someplace -...
  15. Quick Reply, I used to use SDL (available in C)...

    Quick Reply, I used to use SDL (available in C) and switched to SFML (available in C, C++ natively). Not everyone knows about it, but Laurent Gromilia is the maintainer. He's super responsive and the...
  16. Thank you!

    Good Call! http://dl.dropbox.com/u/38587998/2DTileEngine It's Linux Binary. Jotti's down for maintenance, but the only dangerous thing about my programs is terrible formatting. :)
    If anyone needs a...
  17. Thank you so much!

    =D Thank you so much for your time Phantomotap - I'm getting there.

    Well, I don't have a good fetch from "persistent storage/load to memory - save to persistent storage/unload from memory"...
  18. Thank you for the advice! I am also excited about...

    Thank you for the advice! I am also excited about tile games, and also believe the problem is the representation and access of the zones once in memory. Small suggestions like yours are all I ask...
  19. 2d Tile Engine, Scrolling, with Dynamic Terrain/Tile/Zone Generation

    Hey all. The code I've made for this project is massive, convoluted and horrifying. Of course I'll share it on request! =-D Basically this:

    2D Tile Based Screen - fine.
    Scrolling 2D Tile Based...
  20. Replies
    5
    Views
    3,808

    I solved it more or less. I restructured and...

    I solved it more or less. I restructured and rethought the taxonomy for my classes. This in turn seemed to alleviate some sort of circular name clash. Wish I knew more, but at least it's cleaned up....
  21. Replies
    5
    Views
    3,808

    My Errors without the constructor: ||===...

    My Errors without the constructor:


    ||=== Test, Debug ===|
    include/world.h||In constructor ‘Zone::Zone()’:|
    include/world.h|24|warning: ‘Zone::ZoneCoords’ should be initialized in the member...
  22. Replies
    5
    Views
    3,808

    Wow... It should need , but was compiling...

    Wow... It should need <string>, but was compiling without it... well - here is the constants.h for acedemic practices.
    Note: Code::Blocks has been flaking out on me a lot lately. Not usually things...
  23. Replies
    5
    Views
    3,808

    Structure requires Constructor

    I get a warning about initializing the Zone structure's two components (Zone::ZoneCoords & Zone::ZoneMap), then an error stating "synthesized method 'Zone::Zone()' first required in World's...
  24. [Solved]

    if (KeyArray[sf::Key::W]) BallCoords.y -= SPEED * App.GetFrameTime();

    I've gone through and started adding in things like this. I ran several tests for frame rate, both constrained by my monitor's...
  25. I'm using SFML's App.SetFramerateLimit() function...

    I'm using SFML's App.SetFramerateLimit() function set to 30 frames per second. This -should- be enforcing a 33 millisecond time frame. I can confirm the main loop is constrained to 30 runs per...
Results 1 to 25 of 56
Page 1 of 3 1 2 3