Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 7 8 [9] 10
 81 
 on: 2014-09-17 11:44:53 
Started by matanui159 - Last post by basil_
oh, network-physics! yes, that will get out of sync.

my experiments showed that it is a good idea to run the simulation on the server and the client with same parameters. let the server transmit the full state at a low rate, create compensation on the clients, blend with the simulation. TCP was totally fine for that.

lots of links : http://www.gamedev.net/topic/533048-handling-physics-over-network-multiplayer-game/#entry4446275

 82 
 on: 2014-09-17 11:37:14 
Started by shadowstryker - Last post by basil_
for 2D a uniform-grid-partition can be handy. random google result : http://gameprogrammingpatterns.com/spatial-partition.html

the idea is very simple :

- divide space into cells.
- store objects inside cells.
-- to find the cell in which to store you can test a point, like the object center (easy)
-- or you can test which cells overlap with the object. (bit more complex)
- once stored - "select" or "query" objects from cell-partition with a geometric shape, in your case a circle.

this works as long as you do not group up too many objects in on cell. worst case is - all objects are in the same cell, what renders the cell-partitioning useless.

now, gravity itself is not going to well with that idea. eventually everything collapses into a singular point. this works better with "negative gravity", things that seperate, like water.

if you still want to do a "all-pairs" simulation (test every object with every other object) you could use a quad-tree and store the mass and center of mass for each quadrant/children and use this information to approximate the simulation. this is just a coarse description. read more here : http://en.wikipedia.org/wiki/Barnes%E2%80%93Hut_simulation

this is not as easy as cell-partition anymore tho'.

 83 
 on: 2014-09-17 11:33:54 
Started by Rayexar - Last post by Rayexar
I'm following this tutorial: http://www.agur.pl/blog/implementing-admob-for-libgdx/

and I'm stuck at the bit where AdRequests are created. In the tutorial, they do this:

1  
2  
AdRequest adRequest = new AdRequest();
        AdRequest fadReq = new AdRequest();


however I can't create an AdRequest, as eclipse says it requires a Builder parsed into the constructor. Any ideas on how this is done?

UPDATE: This solved the problem: http://stackoverflow.com/questions/25123447/admob-new-adrequest-unrecognized-by-eclipse

 84 
 on: 2014-09-17 11:21:06 
Started by kappa - Last post by kappa
An interface still can have no kind of member state, so using them as traits is not as straight forward as you might think.
Came across this article, which describes a possible implementation for Mixins and how to workaround this limitation.

 85 
 on: 2014-09-17 02:13:16 
Started by shadowstryker - Last post by shadowstryker
I am currently working on a two-dimensional space simulation game. Every object will have a gravitational force that pulls on everything else. The issue I have run into is finding an efficient way for every object to find the position of every other object so that its gravity may act on those that are within its gravitational pull. My first thought was to put all objects into an ArrayList and looping through all objects in the ArrayList for every object. Obviously this would be extremely slow, so I didn't even try to do this. What would you guys suggest as an optimal way to do this?

In layman's terms:
  • Many objects with x and y position
  • Each object needs to find x and y position of all other objects in order to check if their x and y coordinates are within a certain parameter

 86 
 on: 2014-09-17 01:52:32 
Started by 20thCenturyBoy - Last post by Longarmx

It's what I do already, and I'm anything but rich.  Cheesy

 87 
 on: 2014-09-17 01:47:42 
Started by 20thCenturyBoy - Last post by Rayvolution

It's what I would do.  Pointing

 88 
 on: 2014-09-17 01:46:52 
Started by 20thCenturyBoy - Last post by BurntPizza
He's just been playing around mostly. Smiley

Isn't that what you do when you're rich?

 89 
 on: 2014-09-17 01:43:44 
Started by 20thCenturyBoy - Last post by Rayvolution
I like to think I have just the right amount of not giving a f**k to handle the kind of "pressure" that Notch and Flappy Birds guy can't handle. Bring it on! Smiley
For the amount of money that notch got from minecraft, I too am willing to challenge the pressure of handling such games Grin

Not to mention he kinda just up and quit all serious development of, well, anything, for the past 2 years. He's just been playing around mostly. Smiley

 90 
 on: 2014-09-17 01:36:22 
Started by Rayexar - Last post by LiquidNitrogen
What IDE are you using? In eclipse I get an error message in the logcat window if my app crashes on my phone, I imagine it should be the same for the avd.

usually its an array out of bounds, or some problem with loading assets.

Pages: 1 ... 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.

Dwinin (28 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (72 views)
2014-09-10 06:39:09

Tekkerue (37 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (43 views)
2014-09-07 01:13:42

Longarmx (27 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
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!