• Content count

  • Joined

  • Last visited

Community Reputation

851 Good

About tetriarch

  • Rank

Personal Information

  1. SDL SDL 2: Implementing Sprite Clips

    this is your issue.. SDL's SDL_Texture struct is designed to be treated as a pointer only. Basically SDL dynamically allocates space in memory for that structure and returns pointer. So, you cannot dereference it. So basically if you created SDL_Texture *pSpriteSheet; then to load image in it, you call: pSpriteSheet = IMG_LoadTexture(renderer, "file.gif"); // behaves like (new) and later when you won't need it: SDL_DestroyTexture(pSpriteSheet); // behaves like (delete) Hope this helps.
  2. Shields

      Thanks for answer ;) ;) 
  3. Shields

    Volturna: What technology do you use for this project? I mean, what language, what API and stuff? ;) Also, what platforms are your target?
  4. Oh, so many answers, haha. Thank you all, for responses.. I ll try to take the best of it. I think you answered my question quite deeply, thank you again. :)
  5. Okay guys, thanks a lot for help, I think that this pretty much solves my problem..
  6. Thank you Josh. So if I can remove design patterns of the list. Is there any source or article about OOP you would recommend? Probably considering C++ might be good.   Thank you.
  7. Hi, I have a question. Whenever I try to develop a game, I end up with problems in software design which I am usually unable to fix. So I was wondering what could or couldn't help you until I stoped at "design patterns". Are they crucial for a beginner in game development area or not? What would you recommend to read to learn about software design or OOP in this case?? Thank you for answer,   Tetriarch
  8. Well this is just sad.. This is game development site with chat room and the room is so unfriendly to code. If anybody asks for help there and people are willing to help, they almost cant write even single line because of this..  Imagine showing example with std::vector and it throws such mess..  There are buttons for bold italic or underlined text, just adding code button there would be such an improvement... it cant be such deal for small snipets with 4 lines or something.. Of corse pastebin option too but I would consider pastebin for A4 page butnot for 2 or 3 lines..
  9. Top 10 Best 2D Game Asset Sites

    Thank you, this is seriously something I needed!! ;) 
  10. How can this code be refactored to be more proper OOP?

    Well, to be honest, I have never seen any engine, I am quite problematic in making games.. I kinda have absolute zero experiences and knowledge in SW design.. So this cause me a lot of problems.. I had many times problems with rewriting whole projects so I actually stoped working on them.. But what you just described is a lot worth to look at it.. I'll try it then, Thanks a lot!!! 
  11. How can this code be refactored to be more proper OOP?

    Frob ;) the way you speak of it as of SW design.. could you .. show me some small example of it? Kinda I have issues to imagine that without some pseudo code.. If you dotn mind of course... ;) Thank you..  And sorry for my english.. I know its not good.. English is not my native language.
  12. Its better to fight for being the 1 than remain a 0!
  13. How can this code be refactored to be more proper OOP?

    Okay, so to pour some clean wine... That code Alpha provided here is mine.. for my hopefully upcoming game Neon Flyers. Well we were discussing about Getters and Setters, and  I showed my code to Alpha and in this way he "overrunned" me and posted the code here.. That is okay but.. Id like to understand why in these modern ways of C++. Making getters and setters is not such a good idea for private members.. Well I understand that pivate member with public get/set methods is like having it public. But I always was taught my online tutorials etc.. that members in class should always be private or protected, if they are inherited. So my question is how to work with it.. and how to avoid messing with get/set methods in such quantitive way as I have above.   As I see all your answers here it might be good if you had access to whole project but... project is in rewriting process, old repo is down, new has been made..  But true is that there already might be some misstakes done - considering to your asnwers here. https://bitbucket.org/Tetriarch/neon-flyers/src/9d05dd46d60c1f0a0ed32ed2aaf8997cf5ecbc40/neon-flyers/?at=master I see the fact that I have done wrong decision, messed responsibilites of enemy class etc..    Well to be honest with such answer, which I dont claim is bad, because it ain't I have a bit problem to deal in matter of imagination how such code should look.. So I am asking whether there can somebody at least in some diagram or pseudo code show me how could I achieve that? So the project would be more object oriented??  Thanks a lot for help, Tetriarch.
  14. Failing all the time.