Code Monkey home page Code Monkey logo

Comments (6)

itdelatrisu avatar itdelatrisu commented on June 15, 2024

You can change the window size in the settings menu. OpenGL fullscreen mode in LWJGL is extremely buggy from what I tried, but if you can get it to work, please let me know how.

from opsu.

Lemmmy avatar Lemmmy commented on June 15, 2024

Borderless windows can be implemented in LWJGL by setting the property org.lwjgl.opengl.Window.undecorated to true (-Dorg.lwjgl.opengl.Window.undecorated=true)

System.setProperty("org.lwjgl.opengl.Window.undecorated", "true");

However, as it is a property it must be done before starting the game - requiring a restart. Not very convenient, but most other changes currently require a restart anyway.

Another solution is to create a JFrame and bind the surface to a canvas, however I am not sure about the impacts this will have on input and performance. Will test later.

Edit: We're using Slick - this may be interesting

from opsu.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

@lemonlake: Oh, I interpreted "fullscreen mode" as Slick2D's AppGameContainer.setDisplayMode(w, h, fullscreen) -- which, if you try it, produces some very strange results. I'm already setting the LWJGL "undecorated" property if the game resolution matches the screen resolution. There's a CanvasGameContainer class in Slick2D, but iirc it's generally not used.

from opsu.

Lemmmy avatar Lemmmy commented on June 15, 2024

Yeah, your interpretation was correct actually, I was just suggesting
windowed-fullscreen as that's at least my personal preference :p
On 8 Jun 2015 00:25, "Jeffrey Han" [email protected] wrote:

@lemonlake https://github.com/LemonLake: Oh, I interpreted "fullscreen
mode" as Slick2D's AppGameContainer.setDisplayMode(w, h, fullscreen) --
which, if you try it, produces some very strange results. I'm already
setting the LWJGL "undecorated" property if the game resolution matches the
screen resolution. There's a CanvasGameContainer class in Slick2D, but
iirc it's generally not used.


Reply to this email directly or view it on GitHub
#88 (comment).

from opsu.

itdelatrisu avatar itdelatrisu commented on June 15, 2024

Maybe I'll just add "windowed fullscreen" as a resolution option...

from opsu.

Lemmmy avatar Lemmmy commented on June 15, 2024

No need, it was a misobservation on my part. osu! ítself does the same - if the resolution matches native, it's borderless.

from opsu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.