Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (682)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (750)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Using less timers in a game on: 2013-05-18 18:13:47
It doesn't really lag that much in my game but I know that I could reduce alot of lag in my game by having less timers running. The game have multiple timers because it have one timer that updates everything like the players location and alla the obstacles then I have other timers that I use to remove the power ups that you could get, for example I have one timer that have it's initial delay set to 5000 and when it is runned one time (it will only run one time) it will remove a specific power up and the I have another timer that have it's initial delay set to 20 000. How would I keep the different delay of each timer but still only using one por at least fever than I use now?    
2  Game Development / Newbie & Debugging Questions / Checking collision between a Shap and a Rectangle on: 2013-05-18 12:33:06
In my game the player uses a Rectangle for his bounding box, he can do this because I only need to rotate the player image and not the acctual rectangle but for a eletric beam that one of the bosses have I need to use a Shape because I need to rotate the acctual bounding box and not only the image. The problem is that because I have one Rectangle and one Shape I can't use rectangle.intersect(shape) nor rectangle.intersect((Rectangle)shape), I also can't use the Shapes getBounds() method because that woud defeat the purpose of using a Shape so how would I be able to check the collision between the rectangle and the shape? or is there a way that I can rotate a rectangle on instead of a shape (I use the createTransformedShape instance of an AffineTransform to rotate the shape )?
Pages: [1]
orrenravid (146 views)
2016-07-16 03:57:23

theagentd (215 views)
2016-07-11 14:28:54

Hydroque (298 views)
2016-07-06 05:56:57

Hydroque (446 views)
2016-07-03 08:52:54

GrandCastle (333 views)
2016-07-01 09:13:47

GrandCastle (325 views)
2016-07-01 09:09:45

CopyableCougar4 (381 views)
2016-06-25 16:56:52

Hydroque (366 views)
2016-06-22 02:17:53

SwampChicken (333 views)
2016-06-20 13:22:57

SwampChicken (287 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!