Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
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: Hopefully a basic question about lwjgl/slick2d on: 2012-09-18 08:16:05
Well I want the resolution to be at 1024x768 without actually changing the screen resolution. The only way I know of doing that it to create at image of that size, then draw everything to that image and when you show it on screen u just draw it full screen. The only thing I can do in slick it seems is change the resolution. I basically, in pseudo code, app.setGameResolution(1024, 768);
App.setDisplayMode(1920, 1080);
2  Game Development / Newbie & Debugging Questions / Hopefully a basic question about lwjgl/slick2d on: 2012-09-17 01:10:55
1  
2  
3  
4  
5  
6  
      Dimension dim = new Dimension(1024, 768);
      minWidth = (int) dim.getWidth();
      minHeight = (int) dim.getHeight();
      camera = new Camera(dim);
      GraphicsConfiguration gc = gd.getDefaultConfiguration();
      bi = gc.createCompatibleImage(minWidth, minHeight);

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
      if(g2d == null)
         g2d = bi.createGraphics();
      drawFrame(g2d);
      Graphics2D g = (Graphics2D) buffer.getDrawGraphics();

      //later this will be used for scaling purposes
     if(fill)
         g.drawImage(bi, 0, 0, sWidth, sHeight, 0, 0, minWidth, minHeight, null);
      else
         g.drawImage(bi, 0, 0, sWidth, sHeight, 0, 0, minWidth, minHeight, null);
      g.dispose();
      if(!buffer.contentsLost())
         buffer.show();
      Toolkit.getDefaultToolkit().sync();
      if(screenShot) {
         snap.takeScreenShot(bi);
         screenShot = false;
      }

the above code is from my game that DOES NOT use lwjgl/slick2d.

what i am trying to do in slick2d is set the displayMode to the users screen size and make it full screen but have the graphics object that is drawn onto be 1024x768, then depending on a boolean, either draw the image to the users screen size, draw to the highest resolution with the aspect ratio of 4:3, or draw the image in the center of the screen at 1024x768. so basically i need access to when the image is actually displayed on the screen if that makes any sense, just like how i have done it in the above snippet. when the game starts it made it full screen but created a compatible image of 1024x768 and i draw everything in the game to that image then just draw the whole image to the size of my screen. (I really hope this made sense)

I guess a better way of asking this question is, is there a way to setDisplayMode() to fullscreen but have all the graphics be drawn onto an image that is 1024x768, then depending on an option either scale the image to fullscreen, scale it as big as a can keeping the aspect ratio, or centering the image and keeping the original size?

NOTE: I do not want to change the users screen resolution.
3  Games Center / Archived Projects / Re: retro style RPG - CONCEPT on: 2012-09-16 04:48:37
currently only java2d. when things start getting heavy (if they do) then i will move to lwjgl and slick2d but for now I am just trying to see how far i can get with writing things from scratch. I will be trying to keep as active as possible since i believe in letting the community know whats going on from the very beggining, that way I can get suggestions and feed back from basically the start. as for help, if anyone wants to help with anything just let me know and we can discuss stuff. I also have a github for this project i just haven't pushed anything there yet. i will start doing that more frequently. In the coming weeks I will be setting up a site and all that other fancy jazz so it is easier to follow development and read more about the story/game play. Thanks for looking Smiley
4  Games Center / Archived Projects / retro style RPG - CONCEPT on: 2012-09-15 19:13:12
Hello everybody my name is Ryan Harrington (krooked590) and I just wanted to show you all the project that I started a few days ago called Church Wars 2D. This game is based upon the older style of games for the snes such as Zelda and Final Fantasy. The video that I am going to post is just a concept of how I want the character creation to work. This is still a VERY VERY VERY early work in progress so everything you see is subject to change. I am going to working on this game mainly by myself but I assure you that I will be working on this game full time and I won't stop until it is as epic as I can make it. My future plans for this game are to make it completely free and also let people have a copy of the server side so people can set up their own servers just like how Minecraft does it. I'm not 100% sure will all the details but just something that I have planned for the future. Here is a link to my channel where there is more information on the game and I will be posting the development process every time I complete a milestone. www.vimeo.com/sosmedia

If you have any questions/comments/concerns/suggestions feel free to email me either krooked590@gmail.com or sosmediadesigns@gmail.com

link: https://vimeo.com/49369354
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.

atombrot (20 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (55 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (27 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (64 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!