Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 ... 21
1  Discussions / General Discussions / Re: Component Systems: Artemis style systems vs. traditional fat entities on: 2014-07-28 15:38:20
Well i always think these debates are pretty Meh. But i still read them.

I mostly had issues with what problem Entity stuff solved, as in i couldn't see the point all that much. I assumed because i didn't understand them. Turn out i did. Also turns out when the right problem came along then it did become clear what they are good for. I should also note i didn't use it for performance, since i got a few clusters i can use with over 5k cores. But it made the code small and fairly compact.

For smaller indie games however its less clear how it helps. Its up there with writing an engine. Write a game, not an engine. No one else is going to use it anyway.
2  Discussions / General Discussions / Re: Component Systems: Artemis style systems vs. traditional fat entities on: 2014-07-22 13:36:22
Well i am going to chime in and have my say...

I am using a Entity like system. Technically it is a Entity-attribute-value system. I think these things can work well for the right kind of problem.

The only 2 game cases i can think of are RPGs and MMOs. In both there are just huge amounts of different things yet the relative number of behaviours over all those things is small.

I am not using it for a game, but for work and have the same pattern. Lots and lots of different things where things can even change to be other things, yet only a fairly small set of behaviours over all possible things. I also need to be able to many cores.

So far its working out well. Java kind of suxs a little for cache coherency, but not much since the data size of entity's can change at runtime and would probably need attributes referenced anyway.
3  Game Development / Performance Tuning / Re: Can someone explain what is going on with this square rooting? on: 2014-07-18 14:04:13
You really really really shouldn't try to fix performance when you don't have performance issues. About the only time sqrt is going to matter in performance is if you do software lighting and transformations. Which these days you shouldn't be doing. At least not much.

Also you are doing microbenchmarks which are almost always wrong.
4  Game Development / Newbie & Debugging Questions / Re: Slow FPS Problems on: 2014-07-18 14:01:20
rar file? Is this a 90s warz site?

Cut it down to the smallest example you can. We are not going to read your whole project.
5  Game Development / Networking & Multiplayer / Re: How the structure of a multiplayer game should look like? on: 2014-05-16 09:12:25
No amount of networking magic will eliminate latency. For a signal traveling at the speed of light to get to where i am to NZ and back (say playing against my brother) takes 133ms. Actual pings are about 320-350ms.

The trick is have game play that is not sensitive to that sort of latency (see for example Eve online) or make sure people are much more local to each other. But even with the same ISP it is hard to do better than about 40-50ms because of network setup most ISPs use.

For most games that is not a problem and our primitive monkey brains adapt pretty well. But that sort of latency would make games like Marvel Super Heroes almost unplayable. At 60FPS  you have 16.6ms between frames. Basically i can't see such a game working outside a lan.

Of course you could change the networking to be higher level. ie packets say what combo you just did. Not individual movements or key presses. You could change the game play to be a little slower placed.

I would tend to use a peer to peer lock step networking model for a game like this. But with only loose lockstep. ie let slower clients fall behind the faster ones.
6  Discussions / General Discussions / Re: How do you keep profanity out of highscore boards? on: 2014-05-15 10:18:40
Also you can't stop it. You can only police it. Oh and what languages are you supporting Cheesy. Profanity in other languages is pretty common as well.

Its like piracy. If you get popular enough for it happen. You did something right. Until that point. Don't worry about it.
7  Game Development / Newbie & Debugging Questions / Re: Encouraged model file format on: 2014-05-15 10:16:00
My format is literally the way i keep the data in memory. So i have a 2 load paths, load cached binary version, load slow full version that then also saves the memory image as a cached binary version.
8  Game Development / Game Mechanics / Re: [Math] Kinetic energy of impact between two moving objects on: 2014-05-14 17:37:30
A perfect antimatter drive puts all the mass energy of the antimatter/matter into kinetic energy. So a 99% c with a gamma of 7 means that a 1 kg projectile needs 7kg of matter/antimatter to accelerate to that speed.

That is 6x10^17J or a 1GW power plant running for 20 years.
9  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-05-12 14:14:40
Yay.. statistical modeling is my day job. I simulate the universe. Oh wait i only simulate evolution in finite populations. :/
10  Game Development / Game Mechanics / Re: [Math] Kinetic energy of impact between two moving objects on: 2014-05-12 14:03:42
The trick with using a "easy" frame of reference is that it makes non closed systems easy to deal with. That is the problem with using a different frame of reference. A wall can bring  momentum in and out of a system. If the wall is at zero speed. You no longer need care.

Typically for collisions the correct frame is the center of mass frame as the easiest. Since an unmovable wall has effectively infinite mass. Its rest frame is the correct one.

In games almost all "collisions" are not really closed systems. Seriously hack physics typically ends up as better more fun game play anyway.
11  Discussions / General Discussions / Re: Oracle wins copyright for the Java APIs on: 2014-05-10 15:33:42
I don't really see a big difference with this and well what other vendors have claimed over the years. In particular even some of the  GPL people (in particular  RS) asserts that linking to a library  (via a api) constitutes a derived work.
12  Game Development / Game Mechanics / Re: [Math] Kinetic energy of impact between two moving objects on: 2014-05-10 15:15:27
Physics results are will be the same no matter what frame of reference you use. So "cheat" and use the one that is the easiest. You can all sorts of math to prove that physics is the same in difference reference frames and that's all fun. but if you don't' really care, just use the simplest frame of reference.
13  Discussions / General Discussions / Re: Value Types Proposal for Java on: 2014-05-07 15:43:43
I must admit that i don't really see me using anything outside mapped objects in bytebuffers. I also would expect more C like behaviour with something called a struct. ie no Constructors ever. But then if there are references in the struct?
14  Game Development / Newbie & Debugging Questions / Re: Are HashMaps bad for Entity-Component-System Architectures? on: 2014-05-06 20:26:41
HashMaps can be very fast. In many cases as fast as and array. The random access can hurt somethings. But mostly don't worry about. If you don't have some profiling results showing that your maps are your problem, don't don't optimize it. And if it did become a problem there are a number of alternatives from java.util. that can just be dropped in.

If you want key value lookup. Just use a hash table.
15  Game Development / Game Mechanics / Re: Moving at a constant speed along a B├ęzier Curve on: 2014-05-05 16:51:37
I have done this accurately enough and fairly fast with just short 3rd order Gaussian quadrature integration, and doing a stepwise pre integration when the curve is created for a "global scale". Its plenty accurate enough for games. I use Hermite splines.

There is no short cut, there are proofs of this out there that there is no simple formula. 
16  Discussions / General Discussions / Re: [Web Games] What is the best second language? on: 2014-05-02 15:13:26
To summarise. Yea javascript or something that uses javascript under the hood won't be the wrong choice.
17  Discussions / General Discussions / Re: [Web Games] What is the best second language? on: 2014-05-02 15:11:37
True, very true. However i feel the academic divide is more fundamental and that for a lot of languages (not just DSL), it is the academic divide that matters.

The best way to see the academic divide is look at what most of the people using the language do with it. If its write that languages compiler, you have found the problem.

And by divide i mean people who care more about some abstract something or other, that than just getting code out that works. There may be ugly bits. But it works!
18  Discussions / General Discussions / Re: Where to learn about integrated circuits and such on: 2014-05-02 14:06:41
arduino board? I have 5 of them and they are easy and fun and cheap. You don't even need to get a soldering iron. But starting there and say adding some sensors etc are a really good place to start IMO. For more advanced stuff try putting a micro AVR (the 8 pin ones) on a bread board and get it going. With clocks and stuff you may want to try some discrete logic first from the 74 series. Last time i was in the US, Radio Shack still sold them. Analog? Well then a op amp circuit say to make your earphones louder or a "burger" speaker. 

Also if you have a little more cash there is always FPGAs which i had fun with in UNI. This does require a *lot* more work. But still manageable. 

In all cases there is a lot of reading and learning needed. Arduinos have lots on the internet. I learnt lots of this from books, some quite expensive. I guess there should be a lot online.
19  Discussions / General Discussions / Re: [Web Games] What is the best second language? on: 2014-05-02 13:58:59
I get lots done on time. That why I have yet to get fired and have a reason to work on games for a living Cheesy

Lisp is in fact pretty cool out of the academic languages. But yea there is a big divide that typically has more to do with tool chains and just tools than the languages.
20  Discussions / General Discussions / Re: [Web Games] What is the best second language? on: 2014-05-01 22:54:38
Be a real man. Learn Lisp.
21  Game Development / Game Mechanics / Re: Difficult game logi with Entity systems? on: 2014-04-29 13:24:17
We are trying something different from actors. Yes the "can i do this" message is probably the way we are leaning. But it ends up being a distributed transaction protocol more or less.
22  Game Development / Game Mechanics / Re: Difficult game logi with Entity systems? on: 2014-04-28 14:00:53
Well its not a game, its an agent experiment. I also have some clusters to use on this. Like about 5-10 thousand cores if need be. I used a game example because its more accessible and well NDAs.
23  Discussions / General Discussions / Re: Suggest me a game for teaching purpose :/ on: 2014-04-28 13:57:45
It really depends on expected audience.  Tic tac toe can be hard for new programmers and boring for everyone else. Add networking and people without networking experience find it hard. Single player pong has the nice properly that its easy to extend game play.

There is always lemmings if you have good "animation" infrastructure available and they are competent at using said libraries.

TWL has a lemmings version as a demo.
24  Game Development / Game Mechanics / Re: Difficult game logi with Entity systems? on: 2014-04-28 01:15:48
I should say its not single threaded. Any one system does not deal with more than one entity at a time so i don't need synchronization between them because they could all be updated on different threads.

So a System only can, by contract change the values of the entity it is on right now. Never others. Others are changed in previous versions var a message that never fails to apply. Now however i have messages that can fail.

So let me try better to explain. My gun entity, is activated. This has the effect of applying power drain from the ship and damage to the target. Both the ship and target are different entities that are not on the same thread and therefore can't just be "updated". Or  some consistent type of synchronization is needed.
25  Game Development / Game Mechanics / Re: Difficult game logi with Entity systems? on: 2014-04-27 18:38:49
But if i have 2 things happen, then both end up using more power than is available. The problem is that 3 entities need to be updated atomically as a transaction. ie if it fails roll back. But its not clear the easiest way to implement that. A system does not take 3 entities in at once. So you can't just have a system.   
26  Game Development / Game Mechanics / Re: Difficult game logi with Entity systems? on: 2014-04-27 18:28:22
I know that and it doesn't answer the question. Details matter when implementing the details.
27  Game Development / Game Mechanics / Difficult game logi with Entity systems? on: 2014-04-27 17:53:46
I have used Entity systems a bit now and quite like them. I have found them fast and useful and fairly easy to integrate with GUIs and multiplier.

However i have only done fairly simple game logic type games. For example platforms or something similar. I keep one simple rule, a system or behavior can only change the entity it is operating on. To change parameters of other entities i use a message which gets actioned next tick. This really has made for very easy to write up games and over all been a big improvement over POJOs.

But now I am working on something more complicated. I will use a concrete example from an existing game since that is often an easier way to understand things.

Say i have a space ship, and i want to activate my gun. Note the gun is a "module" and can be replaced by different guns so it is an entity.  The gun uses power, and if the ship (another entity) does not have the power it won't activate. If it activates it could apply damage to the target. But if the target is say not shootable, then the gun should also fail to activate. Thus i have 3 entities and all their states matter on what can be done.

I can't see a nice way to implement this with my current implementation with messages between entities easily. Any ideas? Has anyone implemented quite complicated game logic into an entity system?
28  Game Development / Networking & Multiplayer / Re: Java 8 sockets on: 2014-04-26 20:06:25
C++, C, C#, python, Lua etc don't have applets and web start. They are not dying any more than java is.

Yea i did a lot of enterprise stuff a way back. We typically have good control over expected configuration of the clients. Even back then we dropped applets for our own local client. Sometimes a web page is not the best tool for the job.
29  Game Development / Networking & Multiplayer / Re: Java 8 sockets on: 2014-04-26 16:51:05
People still use applets? And Web start?

End users need not know your using java. Otherwise your doing it wrong. My 2c anyway.
30  Discussions / General Discussions / Re: is finished on: 2014-04-24 19:06:57
Thing about Subclass sandbox, is that its just a plain old class hierarchy. Its not really a pattern per say. At least in a usefully defined way.
Pages: [1] 2 3 ... 21

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

The first screenshot will be displayed as a thumbnail.

Riven (9 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

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

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

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

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

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

Zero Volt (51 views)
2014-07-17 23:47:54
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 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!