Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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  Discussions / General Discussions / Re: Just joined the website. Wish I found it sooner. on: 2014-11-30 01:23:01
Hi! Welcome to JGO! Smiley
2  Discussions / General Discussions / Re: PrepperCraft! - A free voxel game. on: 2014-11-26 22:05:10
Screw you all! I'm leaving this site. Bye asswholes! Have a nice time in hell!

Well that escalated quickly
3  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 13:18:56
Well, it's been confirmed
4  Discussions / Miscellaneous Topics / Re: Losing projects on: 2014-06-13 11:22:24
I've made and abandoned projects too. One time I deleted a project because I thought "eh, the way I wrote my code is very ugly. Maybe I could just rewrite all of it, but I might as well just start from scratch.." so I did. Then I found out that I've written code that was in the old project that I wasn't able to redo. So I tried going to the Recycle Bin to see if my old project was there. It wasn't. I may have emptied it. I instantly regretted it. (Although a very small portion of the code survived, thanks to me asking a question Wink)

Nowadays I don't delete projects just because I lost motivation. I simply leave it there. Who knows? Maybe I'll come back to it, and actually finish a game Smiley

5  Game Development / Newbie & Debugging Questions / Re: get cell in tiled map on: 2014-06-08 13:50:05
I'm not quite familiar with libtiled since I use Libgdx but this getTileAt(int tx, int ty) seems to do the trick
6  Discussions / General Discussions / Re: "No, You Can't Make Video Games" on: 2014-05-20 06:35:37
...Well that was discouraging...
7  Game Development / Newbie & Debugging Questions / Re: [Libgdx] Vector2 won't set on: 2014-05-15 06:10:35
cellAroundPlayer = new Vector2[4];
Arrays.fill(cellAroundPlayer, new Vector2());

You may think that you're filling the array slots with 4 distinct vector instances, but this is what actually happens:
cellAroundPlayer = new Vector2[4];
Vector2 tmp = new Vector2();
Arrays.fill(cellAroundPlayer, tmp);
All your array slots refer to 1 Vector2 instance.

Do this instead:
cellAroundPlayer = new Vector2[4];
for(int i=0; i<4; i++)
   cellAroundPlayer[i] = new Vector2();

Thanks! Grin I guess the way I used Arrays.fill before was probably different for what I am doing now...
8  Game Development / Newbie & Debugging Questions / [Solved] [Libgdx] Vector2 won't set on: 2014-05-15 05:23:56
So I have this code right here:

//put package and imports here

public class Map implements Disposable {
    //put other variables here

    private Vector2[] cellAroundPlayer;
    private float offset;
    public Map(String mapTmx, float tileSize, float camTileSize, Player player1) {
        //other stuff here
        cellAroundPlayer = new Vector2[4];
        Arrays.fill(cellAroundPlayer, new Vector2());
        offset = 1f;
    public void render() {
        System.out.println("Player Pos: " + player.getMiddleOriginX() + ", " + player.getMiddleOriginY());
        cellAroundPlayer[0].set((int)player.getMiddleOriginX(), (int)(player.getMiddleOriginY() + offset));
        cellAroundPlayer[1].set((int)player.getMiddleOriginX(), (int)(player.getMiddleOriginY() - offset));
        cellAroundPlayer[2].set((int)(player.getMiddleOriginX() + offset), (int)player.getMiddleOriginY());
        cellAroundPlayer[3].set((int)(player.getMiddleOriginX() - offset), (int)player.getMiddleOriginY());
        System.out.println("Cells around player: " + cellAroundPlayer[0] + ", " + cellAroundPlayer[1] + ", " + cellAroundPlayer[2] + ", " + cellAroundPlayer[3]);
    //put other methods here

So you probably think: hmm a Vector2[4] which contains four Vector2()'s and they get set to the positions of the cells around the player.

The first println() says:
Player Pos: 0.5, 3.5

So this means that (int)player.getMiddleOriginX() = 0 and (int)player.getMiddleOriginY() = 3 right?
And since offset = 1, this means that:

cellAroundPlayer[0] //0, 4
cellAroundPlayer[1] //0, 2
cellAroundPlayer[2] //1, 3
cellAroundPlayer[3] //-1, 3

(Note: 0, 1, 2, 3 means North, South, East and West)

But that's not what the second println() says!

Cells around player: [0.0:3.0], [0.0:3.0], [0.0:3.0], [0.0:3.0]


I could be doing something wrong, and that the answer is really obvious Clueless, but I couldn't seem to find it. Any help would be appreciated  Smiley
9  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-17 01:46:24
I use Avast and Malwarebytes, and they seem to do the trick for me

Although I'm pretty sure the best anti virus is Common Sense 2014 Smiley
10  Discussions / Miscellaneous Topics / Re: f.lux on: 2014-04-16 10:34:36
I use f.lux, and for me it makes me easier to see the monitor at night. One time, I accidentally disabled f.lux at night and as soon as the yellowish tint has gone I was immediately hit by the white glare my computer had.

If you are having problems with f.lux, maybe you can adjust the settings? I have my set somewhere between Daylight and Halogen because Halogen is two yellowish for me. Although if you are having experiences like getting eye sore , I guess maybe you should stop. F.lux isn't quite for everybody
11  Game Development / Newbie & Debugging Questions / Re: type as parameter. on: 2014-01-12 11:39:54
I need to stop looking for new posts and do some coding Cheesy

Could you explain yourself ?

Oops sorry, I misread your post Sad
12  Game Development / Newbie & Debugging Questions / Re: type as parameter. on: 2014-01-12 11:31:06
Did you try using Object and then casting it?
13  Discussions / General Discussions / Re: Do you customize your IDE (Eclipse?) on: 2013-09-16 12:03:03
I don't quite customize Eclipse since it always resets the settings every time I create a new workspace (unless there's a way to keep the settings as I've set them)
14  Game Development / Newbie & Debugging Questions / Re: Libgdx Orthographic Camera on: 2013-08-26 12:30:24
In the
resize(int width, int height)
method in your main class, go like this:

camera.viewportWidth = width;
camera.viewportHeight = height;

Welp. Didn't knew it was that simple. Using this while setting the camera's y position to keep it at the bottom did the trick for me.

Thanks so much!
15  Game Development / Newbie & Debugging Questions / Libgdx Orthographic Camera on: 2013-08-26 11:32:12
I've have some problems with this, and hopefully you guys can help me with it  Smiley

I have a 800 x 600 area where the game would be. And I also have a 800 x 600 window. But the window would be resizable, and I don't want to stretch or have any black bars on the sides of the game. I just want it to still be 800 x 600, and bottom centered. (I've made sure that the windows can't be less than 800 x 600)

Something like this

I've fiddled around with the stage, camera and the resize function but nothing seems to be working  Sad
16  Java Game APIs & Engines / Tools Discussion / Re: Abundant Music: An online procedural music generator on: 2013-08-18 13:45:09
Sorry for bumping, but can I ask if you still have the midi for generative song I?
17  Game Development / Newbie & Debugging Questions / Re: Can games like Super Meat Boy or Binding of Isaac be recreated with Java? on: 2013-04-28 13:53:33
Anything could be recreated in Java.

This guy attempts to recreate the Binding of Isaac using only Java2D
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.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (75 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (113 views)
2014-11-26 15:22:04

toopeicgaming1999 (100 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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

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

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 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‑
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!