Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 6 7 [8] 9 10
 71 
 on: 2014-07-25 17:45:20 
Started by Drenius - Last post by Drenius
Thank you!  Grin
The enemies are indeed supposed to drop their bomb once they reach their final orbit at a random angle between 0 and 90 degree clockwise. Did not find a better way to avoid overlapping other ones...

 72 
 on: 2014-07-25 17:26:59 
Started by Chumble - Last post by Herjan
As far as packet loss, I think I'd like to take a thwack at that myself before looking for help. Looks like it might be kinda fun Smiley

Haha, that's the spirit! And heck you will learn a lot thanks to that spirit Cheesy

And about the sending of packets, actually, in the same class, I had this function:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
public void write(DatagramPacket dp, int pckg, String[] parts) {
      String msg = "" + pckg;
      for(int i = 0; i < parts.length; i++)
         msg += PackageHandler.separator + parts[i];
     
      msg += PackageHandler.endPackage;
      dp.setData(msg.getBytes());
     
      try {
         sender.send(dp);
      } catch (IOException e) {
         e.printStackTrace();
      }
   }


int pckg, tells the server/client what to do with this data:
  • a login
  • input
  • or whatever

 73 
 on: 2014-07-25 17:22:25 
Started by Orangy Tang - Last post by matheus23
Google says NO. Care to expand this acronym?
I think it means component architecture.

HA! I knew something Riven didn't know! Cheesy

Okay, I go back in my cave now.

(I really like this discussion and I really like the idea of Entity Systems, I wonder how well they work in haskell)

 74 
 on: 2014-07-25 17:17:30 
Started by Drenius - Last post by danieldean
You can probably forget about it, it's been fine for another few tries. Sometimes I think Ubuntu just likes to complain about anything using it's own natives for the sake of it.

Can't beat my score though.  Cry I always seem to get the planet shot by an alien at the same point. Is this how it happens? You let them get too close any they open fire?

It's interesting because I've been making my own Space Invaders and I couldn't think of a way to put spin on the original. Looking at your series it seems to do it well for all them all!

 75 
 on: 2014-07-25 17:09:43 
Started by Iversonblc - Last post by kalkitus
The minimum packet size for TCP is larger than 6 bytes, so it's likely Kryonet's overhead. My guess is because Kryonet serializes the entire byte object (it's not just a primitive byte)

 76 
 on: 2014-07-25 17:00:23 
Started by CogWheelz - Last post by CogWheelz
I've had my windows 8 desktop for about a month now and made sure i learned a good amount about it before I got it. Despite the 2 major bugs I've found, I can't click on the owner tab for some reason. The file manager icon that shows all of your docs/images/etc. opens and I can open any folder except for the one that says owner. I read that it has to be added to the home group, but when I open network and click the Owner/ my name PC it pulls up a sign in to it and I couldn't figure out what the password would be. It's shows 3 devices in the network, My computer name, my name, and my router ID name. All I could say that may have affected it was I got a new router yestarday.

 77 
 on: 2014-07-25 16:42:32 
Started by Iversonblc - Last post by LostWarrior
I think it's because the actual data you're sending is one byte, but the actual packet it sends contains more data, which is neccesary for delivering it at the right place. Packets can be divided up in two parts, the header and the payload. The payload you're sending is one byte (It can be more, depends on KryoNet maybe sending some extra things, not sure about this one) but the header contains additional information like the IP address and port number, maybe some other stuff too. That's what's causing the extra bandwidth I think.

 78 
 on: 2014-07-25 16:39:49 
Started by Drenius - Last post by Drenius
@wessles: Thank you! Slowly running out of ideas I like though.  Smiley

@danieldean: Thats odd... The warning you see is thrown because the program extracts the needed LWJGL natives there and uses them then. This should not relate to the window closing though... Maybe it is the JFrame doing some multithreaded stuff in background where it is not supposed to do hmm...  Clueless

Thank you both for testing!

 79 
 on: 2014-07-25 16:18:45 
Started by Iversonblc - Last post by Iversonblc
Second post on this, just trying to get my head straight.


How does sending 1 Byte:


Output as 6 Bytes?:



I looked at the src but don't really understand what is happening - I see that sendTCP prints out length - what is the significance of 'length' in terms of bandwidth?.. like, how many Bytes am I actually sending (including overhead) with my call to sendTCP(byte);?

 80 
 on: 2014-07-25 16:06:49 
Started by Harry - Last post by Harry
Alright, thats my first game.
My Inspiration was the fabulous helicopter flash game, obviously.
The objective is to travell as far as possible by avoiding the clouds.
The game is over when you get caught up by the left end of your screen.

Controls:
Tap and hold to fly up.
Release to fall.



Pages: 1 ... 6 7 [8] 9 10
 

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

The first screenshot will be displayed as a thumbnail.

pw (26 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (20 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (56 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!