Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (135)
games submitted by our members
Games in WIP (593)
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] 2 3 ... 41
1  Game Development / Newbie & Debugging Questions / Re: [libgdx] So many ways to deal with different android DPI/Resolutions.... Which? on: 2015-01-17 07:48:43
There are 2 things you need to consider when making a game for mobile devices. Texture sizes and UI scale.

The bigger the scale you set, the higher quality assets you will need for the UI to look good.

The scale of the UI depends on the game you have. If your UI assets require pixel perfect scaling, (1, 2, 4, 8, 16, etc), then you will need to probably hard code scale for every device size/density there are.
http://developer.android.com/guide/practices/screens_support.html
https://developer.android.com/about/dashboards/index.html
For example, if your game is targeted for 480x320, the xlarge / xhighdpi device would mean that the scale will probably be 4x (480x4 = 1920 which is full HD device).
If you UI doesn't require pixel perfect scaling, (I think this is your case), then you can just calculate the scale like this and see how it looks. You might want to "clamp" the value if it looks crappy on some devices so that scale is only certain values (1.0, 1.5, 2.0 2.5, 3.0, 3.5)
1  
2  
3  
4  
5  
6  
7  
8  
scale = screen.width / 800;
// if screen.width is 1280, then scale will be 1.6
if (scale < 1.5)
     scale = 1.0;
else if (scale < 2.0)
     scale = 1.5;
else if (scale < 2.5)
     scale = 2.0;


This should get you started I guess.
2  Game Development / Newbie & Debugging Questions / Re: 2d Text and Picture renderer on: 2015-01-16 21:49:28
Speaking from my experience, text is really hard to render the way I want to. People really seem to underestimate the amount of stuff required to render text properly. Its kinda of taken for granted in my opinion. Then again, this is just my opinion.

So its nothing stupid if you don't know how to render text properly to me.
3  Java Game APIs & Engines / OpenGL Development / Re: Is it ok to use OpenGL 1.1? on: 2015-01-12 10:52:16
Your game engine is targeted towards beginner, when you are a complete beginner yourself. Nobody cares which GL version your engines uses as long as it does its purpose. If speed is not the problem for your game engine, then just keep using whatever works.
4  Game Development / Newbie & Debugging Questions / Re: 2D Circle Texture Rotation? on: 2015-01-11 18:48:27
I'm not sure I understand you correctly. Do you want to rotate around Z-axis? (assuming X is left-right, Y is up-down, and Z is in-out of screen) Or do you want to make an illusion of a spinning sphere?

Circle is 2D, sphere is 3D I believe. Which one do you want?
5  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [Slick2D] Why the F is it so slow? on: 2015-01-09 11:05:24
Maybe you are reading images from disk every time you draw?

Retro Pixel Castles is written with Slick2D I believe and it seems to work pretty nicely Tongue
6  Game Development / Newbie & Debugging Questions / Re: Creating a object from Class variable and calling a function on it. on: 2015-01-05 17:05:28
Wouldn't it be easier to use json?
7  Game Development / Articles & tutorials / Re: GLSL basics on: 2015-01-05 16:38:04
I believe that #330 is not version of OpenGL, but rather the version of GLSL.
8  Game Development / Performance Tuning / Re: Yet another voxel engine on: 2015-01-05 12:36:13
That doesn't work if you are using OpenGL. Look at the Riven's post somewhere above.
9  Game Development / Newbie & Debugging Questions / Re: Texture a height map on: 2015-01-04 12:49:53
Are you looking for 2D top-down image or a 3D height map that you can view from different angles?
10  Game Development / Newbie & Debugging Questions / Re: +Box2D QueryAABB Not working? on: 2015-01-03 21:39:04
You do "return false" instead of "return removeValue" in line 37 or so.
11  Discussions / Miscellaneous Topics / Re: Do i need Anything Else? on: 2015-01-03 11:38:53
Then why do you ask if you need anything else if you know that this is what you need to make a game?
12  Game Development / Newbie & Debugging Questions / Re: [LIBGDX] Rendering tiled map on: 2015-01-03 10:39:01
Do you ever call resizeCamera?
13  Discussions / Miscellaneous Topics / Re: Do i need Anything Else? on: 2015-01-03 10:27:45
Just make a game. After you make one, you will know what you need to make your development process simpler. Don't create stuff like this before even making any game, as it might prove to be useless.
14  Game Development / Newbie & Debugging Questions / Re: Reading commands without waiting on: 2015-01-01 12:29:22
The simplest way would be by using another thread which would report that something was entered in the console.

Also, it would really depend on what you are trying to achieve. Are you writing a console application or a game of some sorts?
15  Game Development / Newbie & Debugging Questions / Re: LibGDX interpolation on: 2014-12-30 07:42:08
Maybe its your method problem? Try printing
1  
System.out.println(MathUtils.clamp(time / 4.5f, 0, 1));


instead of the value that the Interpolation generates.
16  Game Development / Newbie & Debugging Questions / Re: Screenshot Problem [LibGDX] on: 2014-12-27 11:05:13
Did you try writing only white pixels to the image to see if its the image output problem or screen frame buffer problem?
17  Game Development / Newbie & Debugging Questions / Re: Slick2d - how many game states do you create ? on: 2014-12-27 08:16:01
My current game has 0 states. The states are the outcome of what current "View" is on top. ("View" as View in android UI programming)

For example, when you start the game, the top View is MainMenu, so I guess you could say that the state is "mainMenu".

When you click on play, MainMenuView gets removed and a GameView gets added, which contains game UI elements as well as actually rendering the game.

If player wants to pause, PauseMenuView is added on top of GameView, which creates a "pauseState".
18  Game Development / Newbie & Debugging Questions / Re: Screenshot Problem [LibGDX] on: 2014-12-27 08:11:37
Which part of it are you having problems with? Is the screen frame buffer black or are you having problems saving pixels to a file?
19  Game Development / Newbie & Debugging Questions / Re: LibGDX resizing window on: 2014-12-27 08:10:11
What do you mean by a good way to position UI so that it can be re-sized and still retain same layout? Didn't you solve your problem already? (Gdx.graphics.getWidth() - 100)
20  Game Development / Newbie & Debugging Questions / Re: quick fix applicable to make Game full screen? on: 2014-12-23 08:15:49
http://lmgtfy.com/?q=java+full+screen+jframe#
21  Discussions / General Discussions / Re: Lockable variables on: 2014-12-20 11:12:28
I had a class "FlagWord" so I don't think break point is very viable in such situation.
22  Discussions / General Discussions / Re: Lockable variables on: 2014-12-20 10:07:44
1  
2  
3  
4  
public void setValue(T t) {
     if (locked) throw new IllegalStateException("Value is locked!");
     value = t;
}


I have used something like this in my recent project. It has worked like a charm. When you begin writing big and complex abstracted code things like this are really helpful. Helped me solved some possible bugs without almost any effort at all. I just block some states and boom there you go you get an exception when you shouldn't have accessed the variable.
23  Discussions / Miscellaneous Topics / Re: Change My JGO Name on: 2014-12-19 12:24:00
I think you can just change your youtube name whenver you want. (At least thats what I remember)
24  Discussions / Miscellaneous Topics / Re: Should i learn lwjgl instead of java2D on: 2014-12-18 09:49:03
Libgdx
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-18 07:06:51
Nice.

26  Discussions / Miscellaneous Topics / Re: What is with version 3? on: 2014-12-17 10:16:17
Can it just be a coincidence?
27  Discussions / Miscellaneous Topics / Re: Tips on Streaming Game Development (on Twitch) on: 2014-12-13 20:02:11
You weren't doing anything wrong. Its just that the other guy was doing everything better than you.
28  Games Center / Archived Projects / Re: SilenceEngine - A 2D/3D Game Engine on: 2014-12-13 09:40:01
Why is the Scene static?
29  Game Development / Newbie & Debugging Questions / Re: Losing pixels in 2D game. on: 2014-12-13 08:47:30
glad we could help?  Clueless

Give hi'm a medal!
30  Game Development / Newbie & Debugging Questions / Re: Projectile angled to mouse? [Slick2D][LWJGL] on: 2014-12-13 07:10:56
There have been a million threads like this before. Please use that sexy search box in the top-right corner.
Pages: [1] 2 3 ... 41
 

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

The first screenshot will be displayed as a thumbnail.

Robo11 (16 views)
2015-01-25 20:14:26

basil_ (26 views)
2015-01-18 12:29:32

wxwsk8er (24 views)
2015-01-17 11:42:21

wxwsk8er (20 views)
2015-01-17 10:44:20

basil_ (25 views)
2015-01-14 23:46:59

basil_ (21 views)
2015-01-14 23:46:52

wxwsk8er (32 views)
2015-01-14 10:42:16

wxwsk8er (34 views)
2015-01-13 17:23:59

vctt (55 views)
2015-01-12 17:21:07

wxwsk8er (32 views)
2015-01-12 17:11:59
2D Dynamic Lighting
by ThePixelPony
2015-01-02 10:25:42

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

Resources for WIP games
by kpars
2014-12-19 00:26:14

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

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

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

List of Learning Resources
by SilverTiger
2014-08-06 09:33:27

Resources for WIP games
by CogWheelz
2014-08-02 06:20:17
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!