Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 May 2009
Offline Last Active Aug 31 2015 01:32 PM

Posts I've Made

In Topic: New LWJGL 3 Tutorial Series on YouTube

17 August 2015 - 01:40 PM

Another tutorial is out! This time featuring AABB collision detection! Help me out guys and subscribe to the channel please :)


In Topic: New LWJGL 3 Tutorial Series on YouTube

16 August 2015 - 11:40 AM

I've just uploaded my latest version of the series, this tutorial focuses on keeping the paddles inside of the games window! Check it out :D


In Topic: New LWJGL 3 Tutorial Series on YouTube

08 August 2015 - 04:33 AM


My latest video on creating our Paddle, ball and level classes! 

In Topic: What is the most conventional way to handle highscores for different logins

20 April 2015 - 02:02 PM

Best bet would be to use SQLite and have a local database file I think. 


This way you could have 2 different databases. one of which keeps track of users with a user_id etc, the other which keeps track of stores and contains a foreign key linking it to the user table. 


If you want to keep track of what records you have uploaded to the site just add another column to the table and every time you upload a record you change this value to '1' or whatever.


With regards to detecting who's cheated that's going to be another problem altogether, SQLite has it's own synchronization so you could in theory keep the lock on the database up until the user submits a score and then acquire the lock again? Just an idea but it might add that extra bit of protection and prevent most script-kiddies.

In Topic: Enemies intelligence increased level by level

20 April 2015 - 06:17 AM

In addition to the strategy pattern that was suggested by Arka80, you could also have a look at the composition pattern. Wherein everytime your enemy goes up in level you add on a new select piece of functionality via a class. 


So instead of completely switching strategies you would simply add a new ability to the enemy class. 


This is just an example I've written: Composite Pattern


Hope this helps!