Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (565)
Games in Android Showcase (151)
games submitted by our members
Games in WIP (606)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 ... 8 9 [10]
 on: 2015-03-28 15:50:06 
Started by RKJ - Last post by skys0ldier
just divide delta through 17 and you have your update factor.
For example:

player speed is 10. if delta is 17 (optimum) you calc:

player.position += 10 * 17 / 17

so plus ten. if your game sleeps longer for example delta = 34,
delta / 17 is 2 and your player would move twice as fast in this frame.

 on: 2015-03-28 15:48:16 
Started by RKJ - Last post by skys0ldier
actually it is okay, but you have to factor the delta value in your update() method.

 on: 2015-03-28 15:39:08 
Started by Stranger - Last post by Stranger
They could make "System-and Application-Specific Heuristics", for example.  Smiley

 on: 2015-03-28 15:38:58 
Started by ii8 - Last post by atombrot
How do you start your game with spring framework?

If you want to understand how LibGDX is structured it's probably best you create a project with the libgdx setup and try to fiddle around with it a bit.

When you generate your libgdx project, you have one main project containing your game code and you have separate projects for each target environment (desktop, android, web etc.). You can find * files in the target projects.

This is the startup code from my

   LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
   config.width = 800;
   config.height = 600;
   new LwjglApplication(new Matcher(), config);

In this case Matcher is my main class extending ApplicationAdapter. I think this should be what you need to start your LibGDX application.

Just one thing to consider if you want to use spring. I am not 100% sure but I could imagine that it won't work (or will be a pain to port) with android and web projects. If you don't care about these platforms then you should be fine, otherwise I would investigate if you can even use it and if yes how hard it will be. Could save you some time in the long run.

 on: 2015-03-28 15:29:05 
Started by Stranger - Last post by Longarmx
What's so weird with those? All they are doing is describing the paper like a title should. If you want more names like this, look up patents Pointing

 on: 2015-03-28 15:17:33 
Started by Stranger - Last post by Stranger
It seems some people intentionally invent the weird names for the articles or terms, e.g.:

Compiling for Resource-Constrained Platforms using ASSHes:
Application-and System-Specific Heuristics

EDIT: I don't want to say anything bad about the paper itself. It's very informative.

 on: 2015-03-28 15:10:13 
Started by RKJ - Last post by Elsealabs
Check out this guide!  Smiley

 on: 2015-03-28 15:08:58 
Started by RKJ - Last post by RKJ
This game loop that I have implemented is not constant. I want my program to run at 60 frames per second. Basically I need to make the Thread sleep for 17 milliseconds after each frame, but sometimes it sleeps more that 17 milliseconds, this makes my game jittery. What should I do to make a more efficient game loop?

public class GamePanel extends JPanel implements Runnable {

   public void run() {
      currentTime = System.currentTimeMillis();
      prevTime = currentTime;
      while(true) {
         try {
         } catch(InterruptedException e) {
         prevTime = currentTime;
         currentTime = System.currentTimeMillis();
         delta = currentTime - prevTime;

 on: 2015-03-28 14:51:02 
Started by phu004 - Last post by bornander
This is really cool!
Very well done, keep up the good work!

 on: 2015-03-28 14:49:41 
Started by skys0ldier - Last post by Roquen
Understand sweep-and-prune on a uniform grid.  Search the forum I've done a verbal write-up.  Quad-tree's are the same.  The key notion is to be edge based instead of child based.

Pages: 1 ... 8 9 [10]
theagentd (11 views)
2015-03-27 23:08:20

wxwsk8er (52 views)
2015-03-20 15:39:46

Fairy Tailz (46 views)
2015-03-15 21:52:20

Olo (28 views)
2015-03-13 17:51:59

Olo (30 views)
2015-03-13 17:50:51

Olo (37 views)
2015-03-13 17:50:16

Olo (43 views)
2015-03-13 17:47:07

ClaasJG (56 views)
2015-03-10 11:36:42

ClaasJG (41 views)
2015-03-10 11:33:01

Pippogeek (47 views)
2015-03-05 14:36:23
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27 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!