Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 / Re: hello, two questions: how to vsync? and how to fullscreen? using graphics2D on: 2010-06-20 22:19:38
1  
2  
   GraphicsEnvironment.getLocalGraphicsEnvironment().
                getDefaultScreenDevice().setFullScreenWindow(frame);

Example:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class FullScreenFrame {

    public static void main(String[] args){
        JFrame frame=new JFrame();
        frame.setFocusable(true);//focus the frame
      frame.setUndecorated(true);//remove borders
       frame.setVisible(true);
        //set fullscreen
  GraphicsEnvironment.getLocalGraphicsEnvironment().
                getDefaultScreenDevice().setFullScreenWindow(frame);
        //set Escape listener
       frame.addKeyListener(new KeyListener(){
            public void keyPressed(KeyEvent e){
                if(e.getKeyCode()==KeyEvent.VK_ESCAPE){
                    System.exit(0);
                }
            }
            public void keyReleased(KeyEvent e){}
            public void keyTyped(KeyEvent e){}
        });
    }
}


If i remember correctly is vsync set automatically when u set  fullscreen mode.
But u cant set vsync in windowed mode or in a applet, when you using java2D.



2  Games Center / Showcase / Re: King Lears Adventure on: 2010-06-17 14:53:45
yes, perfecting jumping probably makes the game a lot better.
But it's hard to make a perfect jump function that just feels right.
I probably have to make running nonlinear as well with some acceleration method to make it work.
But this is something i will work on my next game.

I have reduced the difficulty several times but still people thinks its to hard.
I think a lot of games today is way to easy,and the game would be extremely boring if it offers no challenge.
But maybe its hard to get used to the linear jumping and running..
3  Games Center / Showcase / Re: King Lears Adventure on: 2010-06-09 21:44:41
It was a bit to hard on a few places so i decreased the difficulty a bit.
Fixed jumping so it never get stuck.
Fixed map loading so it never fails to load.
Fixed so the game restarts properly after u finish the game.

It was a bit painful to go trough my old code but it feels great to have made a finished game (even if its far from amazing)
4  Games Center / Showcase / King Lears Adventure on: 2010-06-09 00:16:01
King Lears Adventure is a platformer i made 3 years ago and was my first game.

http://dl.dropbox.com/u/5669663/games/KingLear/kinglearApplet.htm


The game was slow and had a lot of bugs so i did not finished it. But for a few weeks ago i decided to start to finish games,
so i fixed most bugs,improved speed and made a end screen.

I am working on a sequel using lwjgl
Engine test Webstart:(hopefully work on all platforms) http://dl.dropbox.com/u/5669663/games/KingLear2/launch.jnlp
I am currently trying to improve my gameengine and my tools for speed,stability and productivity,
but maybe its time to start making some game-play because its feels like i can improve my gameengine for a eternity.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (32 views)
2014-07-18 06:55:21

Zero Volt (28 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (25 views)
2014-07-16 23:30:00

Cero (40 views)
2014-07-16 00:42:17

Riven (42 views)
2014-07-14 18:02:53

OpenGLShaders (29 views)
2014-07-14 16:23:47

Riven (29 views)
2014-07-14 11:51:35

quew8 (26 views)
2014-07-13 13:57:52

SHC (63 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!