Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (653)
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 ... 10
1  Discussions / General Discussions / Re: Easy and Fast UDP Gaming Library - is there a need for it? on: 2015-07-16 15:01:12
Alright you guys win.

I just don't need that kind of speed. Tcp tends to do it for me.

But I guess in AstroidFight and SoulFoam's game the shaved milliseconds makes a huge difference.
2  Discussions / General Discussions / Re: Easy and Fast UDP Gaming Library - is there a need for it? on: 2015-07-16 14:55:19
I know it's possible. But is the overhead of transporting extra data and processing worth it?

Ultimately, I feel that the speed increase would be negligible.

Also, how can you tell if you missed a packet, without some crazy work around?
3  Game Development / Newbie & Debugging Questions / Re: Digging tiles out on: 2015-07-16 13:55:54
Yeah, just take your time with it. It's supposed to be a fun project.

And the problem is that you pass booleans into removeBlock(). The if statements that you use to set those booleans are overwriting each other

For example:
1  
2  
3  
4  
 
if (Gdx.input.isKeyPressed(Input.Keys.LEFT)) {
         bRight = false;
         bDown = false;


after you do:
1  
2  
3  
if (Gdx.input.isKeyPressed(Input.Keys.RIGHT)) {      
         bLeft = false;
         bDown = false;


Then finally:
1  
2  
3  
if (Gdx.input.isKeyPressed(Input.Keys.DOWN)) {
         bDown = true;
         bRight = false; bLeft = false;


Which overwrites both.


I would look into an InputListener instead of polling your input. You are missing tons of events this way.
4  Discussions / General Discussions / Re: Easy and Fast UDP Gaming Library - is there a need for it? on: 2015-07-16 13:42:57
UDP is connectionless and does not guarantee that the data will arrive. And if it does arrive it will most likely be out of order.

So I guess I'm interested in seeing how you accomplish this.
5  Discussions / General Discussions / Re: Easy and Fast UDP Gaming Library - is there a need for it? on: 2015-07-16 12:25:56
I need the reliability of a tcp connection.

However, I've already started to implement Java NIO into my game dev suite.
6  Java Game APIs & Engines / Engines, Libraries and Tools / Re: A library for 2d shapes and collisions on: 2015-07-15 16:59:51
You will have to make you own for something lighter.

Put some time into it you and you will end up with something less bloated. Plus, it will be a great learning experience.
7  Game Development / Newbie & Debugging Questions / Re: Digging tiles out on: 2015-07-15 15:15:40
Can we see getBlock(x, y) and check if bdown is always true. I dont think the issue is in the code we see. (Besides the rounding issue.)

I believe you aren't setting bDown, bLeft, bRight properly.

It could be a lot. Do you have this in a repo? I could fork it and take a look.
8  Game Development / Newbie & Debugging Questions / Re: Where to start in terms of programming? on: 2015-07-15 00:46:12
Sorry if this seems silly, since I'm very new to game dev -- Alternatively how do you feel about designing tools in the process for things related to graphical design. Is that something that you would consider along the way or is that too time consuming of a process? I imagine that it would help to create the environment and allow for finer tuning of graphical background displays, for example different types of ground textures.

I work on my graphics when I'm sick of coding.

With time it becomes so easy you will be popping out all your game assets.

At first I sucked. But I didn't give up and now I feel very confident with the art I produce.

Just watch videos when you need a break from coding, or have free time.

I would even join https://cgcookie.com/ for a month. That helped me out immensely.
9  Game Development / Newbie & Debugging Questions / Re: Where to start in terms of programming? on: 2015-07-15 00:31:18
It would be impossible to do all the networking if you don't have a game to test it.
10  Game Development / Newbie & Debugging Questions / Re: Where to start in terms of programming? on: 2015-07-15 00:21:49
Yes, you could do networking later.


First design the structure of everything.
Have a decent layer of abstraction so that once your ready you can mold it any way you need it.

For example:

  • Entities/components system.
  • Game map structure
  • Input handling
  • GUI
  • Sound
  • Physics
  • Lighting
  • etc...

Don't focus on little details until down the line.
Everything will be ugly at first, but once you get a solid core perfected you can start adding in things to prettify it all up.

It will take a VERY long time. So don't rush it.
Take regular breaks to clear you mind, else you will grow to hate your project.
11  Game Development / Networking & Multiplayer / Re: NitroNet - New, High-Level Networking Library on: 2015-07-14 23:21:47
Is this still alive?

I was wondering why you decided to use newCachedThreadPool(), instead of a fixed size pool.

I haven't looked through all of the code but this would make it easy for someone to cripple your server by sending too many requests?
12  Game Development / Networking & Multiplayer / Re: How does one send a tiled map TMX + Spritesheets through TCP using Kryonet? on: 2015-07-14 21:40:31
1  
2  
3  
       SendFile file = new SendFile();
      file.file = Paths.get("./assets/maps/map.tmx").toFile();
      connection.sendTCP(file);

Is what I use. Works fine for me.

I think I mistyped what I wanted to say. Object probably isn't the correct word.

Hmm... That's interesting.

I would've done it like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
        //server
        File file = new File("file.dat");
        try (InputStream in = new FileInputStream(file)) {
            byte[] data = new byte[(int) file.length()];
            in.read(data);            
            //send data[]            
        } catch (Exception ex) {
        }
       
        //client
        byte[] data = (byte[]) object;
        try (OutputStream out = new FileOutputStream("name of file...")) {
            out.write(data);
            out.flush();
        } catch (Exception ex) {
        }
13  Game Development / Networking & Multiplayer / Re: How does one send a tiled map TMX + Spritesheets through TCP using Kryonet? on: 2015-07-14 21:13:37
The file object is just a reference to the file's location, nothing more.

You can send the bytes in the file and rewrite the file, but you can't just
... send the file object to the client.

With Kryonet you can do this. (I'm pretty sure. I've never tried...)

Load the tmx data into an object and send it to the client

Kryonet serializes the object. I believe you can simply cast it:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
public void received (Connection connection, Object object) {
    if (object instanceof SomeRequest) {
        SomeRequest request = (SomeRequest)object;
        System.out.println(request.text);

        SomeResponse response = new SomeResponse();
        response.text = "Thanks";
        connection.sendTCP(response);
    }
}
14  Game Development / Newbie & Debugging Questions / Re: Digging tiles out on: 2015-07-14 20:33:34
Hmm. First try this:
1  
2  
int x = Math.round(screenSpace.x);
int y = Math.round(screenSpace.y);


to:
1  
2  
int x = (int) screenSpace.x;
int y = (int) screenSpace.y;


Let me know if there's a change.
15  Discussions / General Discussions / Re: Easy and Fast UDP Gaming Library - is there a need for it? on: 2015-07-14 20:11:37
It would be cool to see a lightweight TCP server/client library.

That simply manages the multi-threading of the selector and worker threads. Other libraries are awesome and all but have too much going on the backend for me.

I started working on one but I'm too busy with other things for my game at the moment.
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-07-14 05:07:06
The game is starting to come together!

(ignore the ugly clothes, they were tests that I never removed)

clusters of moving grass.

Click to Play


[youtube]https://www.youtube.com/watch?v=GIO7BvibNXwMmB9b5njVbA[/youtube]
17  Game Development / Networking & Multiplayer / Re: KryoNet or Netty on: 2015-07-13 18:29:30
MINA isn't dead. As far as I know MINA 3 will be released at some point.

18  Game Development / Networking & Multiplayer / Re: KryoNet or Netty on: 2015-07-13 14:22:06
Well It depends on whether you want out of the box serialization. Then Kroynet is the way to go.

But I send encrypted bytes and need custom encoders/decoders. (Which I'm sure you can do with Kryonet.)

However, I found that since you must start from the bottom with MINA that it was easier for me to learn how to get it all together.

PS: I tried Netty and I wouldn't receive my packets. I was definitely doing something wrong.
19  Game Development / Networking & Multiplayer / Re: KryoNet or Netty on: 2015-07-13 14:11:56
I've faced this dilemma and found a totally different solution: https://mina.apache.org/
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-07-13 00:09:10
Started on my game's final terrain textures.

Adding map objects to my map editor soon.

What do you guys think?

21  Discussions / General Discussions / Re: Something wrong with LWJGL3? on: 2015-07-10 13:41:40
Yeah I was able to get on the pages about 2 hours after I posted this.
22  Discussions / General Discussions / Re: Something wrong with LWJGL3? on: 2015-07-09 14:23:36
@KaiHH Wow. I didn't realize the economy was so damaged there. I also didn't know Spasi was greek.
23  Discussions / General Discussions / Re: Something wrong with LWJGL3? on: 2015-07-09 13:51:06
Lame. At least I'm not alone.
24  Discussions / General Discussions / Something wrong with LWJGL3? on: 2015-07-09 13:40:32
Many link refering to LWJGL3 are dead for example:

Download: http://build.lwjgl.org/release/latest/lwjgl.zip
Forum: http://forum.lwjgl.org/

And a bunch more. Or is it just me?
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-07-07 20:45:40
Almost done with my first complete asset ever!

Click to Play
26  Discussions / Business and Project Management Discussions / Re: Caldera Games is looking for a 2D ANIMATOR on: 2015-06-23 15:38:27
This team has more promise than any I've seen here. If I was any good at pixel art I would totally help out.

Plus @KevinWorkman I'm sure you don't mean to be discouraging, but it's a bit mean that you post that on every post like this.
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-22 02:11:18
Finally decided to start working on a asset manager for my game dev suite:

packs images for use in my game engine.

Next I will work on a model loader and animation viewer. (pretty much time to play Barbie)

Click to Play
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-20 15:04:11
Worked on my game dev suite some more.
Implemented clothing and finished my animation setup:

(gyazo fps sucks)
Click to Play
29  Discussions / General Discussions / Texturing Technique on: 2015-06-19 13:01:52
Hey guys. I was wondering how I would go about texturing like this: How is the face placed there?

The face is animated so I doubt the entire body is one whole texture.

30  Discussions / Miscellaneous Topics / Re: What IDE colour theme do you use? on: 2015-06-18 20:56:22
I like a light grey.

Dark themes bug me. And bright themes kill my eyes.
Pages: [1] 2 3 ... 10
 
SHC (28 views)
2015-08-01 03:58:20

Jesse (19 views)
2015-07-29 04:35:27

Riven (40 views)
2015-07-27 16:38:00

Riven (21 views)
2015-07-27 15:35:20

Riven (24 views)
2015-07-27 12:26:13

Riven (14 views)
2015-07-27 12:23:39

BurntPizza (36 views)
2015-07-25 00:14:37

BurntPizza (46 views)
2015-07-24 22:06:39

BurntPizza (30 views)
2015-07-24 06:06:53

NoxInc (37 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21
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!