Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 12 Jan 2011
Offline Last Active Today, 04:22 PM

Posts I've Made

In Topic: How can this code be refactored to be more proper OOP?

17 August 2015 - 03:46 PM

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!!! 

In Topic: How can this code be refactored to be more proper OOP?

16 August 2015 - 07:51 AM

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.

In Topic: How can this code be refactored to be more proper OOP?

15 August 2015 - 08:15 PM

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.

In Topic: Please help! I have problem with FPS

12 April 2011 - 09:26 PM

Okay so now I get It,... but how can I use vsync with SDL???

And thank you for help by the way :D

In Topic: Please help! I have problem with FPS

12 April 2011 - 02:42 PM

Thanx, but I know a lot of games which are not using 100% of CPU and it works perfecktly... I brought my "game" to school and when I ran it a thought I will burn out that computer... Cooling was literally screaming...

I hope I said it well... (My English)

And one stupid question... what is it vsync?