Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (734)
Games in Android Showcase (222)
games submitted by our members
Games in WIP (811)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3 4 ... 10
 11 
 on: 2017-08-17 08:31:31 
Started by BurntPizza - Last post by ra4king
Not really today, but on Monday I started at my first full time job out of university at Google. I'm at their Mountain View headquarters in the Bay Area (Silicon Valley). Pretty happy to say the least Smiley

 12 
 on: 2017-08-17 07:40:42 
Started by DesertCoockie - Last post by KaiHH
If
InputHandler.isButtonDown(InputHandler.MOUSE_RIGHT)
returns
false
while you are still holding down the right mouse button, then what does it tell you...?

So, what does this method actually do besides _not_ checking whether a certain mouse button is down?

By the end of the day, all in all this should happen:
1  
2  
3  
4  
5  
6  
7  
8  
9  
glfwSetMouseButtonCallback(window, mouseButtonCallback = new GLFWMouseButtonCallback() {
    public void invoke(long window, int button, int action, int mods) {
        if (action == GLFW_PRESS && button == GLFW_MOUSE_BUTTON_RIGHT) {
            glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN);
        } else if (action == GLFW_RELEASE && button == GLFW_MOUSE_BUTTON_RIGHT) {
            glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
        }
    }
});

 13 
 on: 2017-08-17 07:29:24 
Started by DesertCoockie - Last post by DesertCoockie
I'm trying to make camera movement when pressing the right mouse button down and moving the mouse. When the button is down, I want the cursor to be hidden:
1  
2  
3  
4  
5  
6  
if( InputHandler.isButtonDown( InputHandler.MOUSE_RIGHT ) ) {
   GLFW.glfwSetInputMode( ExampleGame.display.getWindowID( ),GLFW.GLFW_CURSOR,GLFW.GLFW_CURSOR_HIDDEN );
   // move camera (working but I left it out)
} else {
   GLFW.glfwSetInputMode( ExampleGame.display.getWindowID( ),GLFW.GLFW_CURSOR,GLFW.GLFW_CURSOR_NORMAL );
}

But it only works when I let the second glfwSetInputMode in the else statement out and that means that the mouse stays hidden!
What happens with the above code, is that the mouse hides for about a frame when pressing the right mouse button and the reappears because the else statement gets activated. But why does the hide cursor only work when I let the mouse button go? Everything else works directly when pressing it...

 14 
 on: 2017-08-17 03:51:17 
Started by alphacoder - Last post by tariqbroadnax
If you do proceed, why i don't recommend, then it helps to have a model. That is, you should copy a standard mmo.

 15 
 on: 2017-08-16 21:01:14 
Started by alphacoder - Last post by gouessej
Hi

Please don't even try to create a MMORPG before having a huge experience in game programming and a good team (it's not doable alone except for a proof of concept). If you start something too big, you'll fail and it will probably discourage you.

 16 
 on: 2017-08-16 16:45:24 
Started by ZeLoD - Last post by SHC
What does that mean? Did it work or not?

 17 
 on: 2017-08-16 16:06:14 
Started by alphacoder - Last post by Shatterhand
Quote
I really like JavaFX but I've come across some real facepalming issues with it, mostly to do with performance... or lack thereof. It will get a lot faster - keep an eye on the JavaFX mailing lists for news on that horizon - but right now it isn't guaranteed particularly high or consistent performance. And it can't do any post-processing effects or fancy shaders either.

Yeah, I agree. JavaFX isn't super performant, but actually is good enough for simple games.
I'm a "ghost reader" of the OpenJFX mailing lists.  Cheesy
Sadly, you have no access to any of the deeper layers of the 3D API. And they don't plan on making that possible as they aren't planning to add more features to it…

But as I don't expect @alphacoder plans to use DoF or motion blur, he could use JavaFX Wink

Cheers

 18 
 on: 2017-08-16 15:47:31 
Started by tommohawkaction - Last post by tommohawkaction
Don't be afraid of port forwarding issues... most people can learn how to set it up on their home routers. Failing that though, weupnp will actually work ok. I don't think you really need Kryonet.

Cas Smiley

I've looked into weupnp but I cannot find how to use it... any chance you could direct me? Pointing
I'm guessing the Steam implementation would be pretty simple anyway  Huh

 19 
 on: 2017-08-16 15:27:05 
Started by tommohawkaction - Last post by princec
Don't be afraid of port forwarding issues... most people can learn how to set it up on their home routers. Failing that though, weupnp will actually work ok. I don't think you really need Kryonet.

Cas Smiley

 20 
 on: 2017-08-16 15:22:07 
Started by tommohawkaction - Last post by CoDi^R
Unfortunately you can't test Steam features without getting on Steam, which is a bit of a bugger.
I'd advise not using the Steam network APIs if you can help it and make something that works everywhere.

Cas Smiley

Yes, if I had to, I'd try to build some kind of generic interface and treat Steam networking as yet another implementation. Even if only for testing purposes, because it's a pain already to just test some simple networking functions with multiple Steam accounts.

Pages: 1 [2] 3 4 ... 10
 
cybrmynd (28 views)
2017-08-02 12:28:51

cybrmynd (42 views)
2017-08-02 12:19:43

cybrmynd (56 views)
2017-08-02 12:18:09

Sralse (61 views)
2017-07-25 17:13:48

Archive (493 views)
2017-04-27 17:45:51

buddyBro (640 views)
2017-04-05 03:38:00

CopyableCougar4 (1119 views)
2017-03-24 15:39:42

theagentd (1129 views)
2017-03-24 15:32:08

Rule (1103 views)
2017-03-19 12:43:22

Rule (1082 views)
2017-03-19 12:42:17
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!