Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (511)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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 ... 71
1  Games Center / WIP games, tools & toy projects / Re: Really a Markup Language (RML) on: 2014-10-20 06:22:14
Don't use @ in tag names since it would be impossible to use with XSLT.
2  Game Development / Newbie & Debugging Questions / Re: Best way to iterate through ArrayList? on: 2014-10-18 07:24:04
Ask yourself if using arrays is really simpler and more secure and why.

I wouldn't convert back and forth between arrays and lists all the time, but just go with List<Type> everywhere in the API (except for primitive types) .

If you insist on converting lists to arrays,  use
list.toArray(new Type[list.size()])
to avoid unnecessary allocations (see toArray javadoc)
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-17 08:52:17
You could try to include the arm-swing in the shadow, so it looks more related to the character.

normal shadow:
1  
2  
3  
 #####
#######
 #####


shadow on frame with left arm in front:
1  
2  
3  
 ######
#######
######



shadow on frame with right arm in front:
1  
2  
3  
######
#######
 ######
4  Game Development / Newbie & Debugging Questions / Re: .properties alternative? on: 2014-10-16 18:05:59
If you are using xstream, you can use the BinaryStreamDriver:
http://xstream.codehaus.org/javadoc/com/thoughtworks/xstream/io/binary/BinaryStreamDriver.html
for generating non human-readable output. IMO xstream is very easy to use and quite forgiving when classes change compared to pure java serialization.
5  Game Development / Newbie & Debugging Questions / Re: .properties alternative? on: 2014-10-16 15:24:10
You can just create a Java class representing your stored values and serialize it by making it Serializable and use standard java serialization:
http://www.tutorialspoint.com/java/java_serialization.htm
http://docs.oracle.com/javase/tutorial/javabeans/advanced/persistence.html
http://docs.oracle.com/javase/tutorial/essential/io/objectstreams.html

If you want to have the output readable, you can use XMLEncoder:
http://docs.oracle.com/javase/7/docs/api/java/beans/XMLEncoder.html

If you don't mind using 3rd party libs, take a look at XSTREAM
http://xstream.codehaus.org/tutorial.html

If you don't like having xml output, take the JSON route
http://xstream.codehaus.org/json-tutorial.html

Or look for other similar libs like:
- GSON: https://code.google.com/p/google-gson
- YamlBeans: https://github.com/EsotericSoftware/yamlbeans
6  Game Development / Newbie & Debugging Questions / Re: MD2 loader on: 2014-10-10 19:04:32
It puts the String "IDP2" into a 32bit integer. (Lookup http://en.wikipedia.org/wiki/Endianness)
7  Game Development / Newbie & Debugging Questions / Re: MD2 loader on: 2014-10-09 22:36:56
Also see http://sourceforge.net/p/jagatoo/code/HEAD/tree/trunk/src/org/jagatoo/loaders/models/
8  Discussions / General Discussions / Re: Mobile Java game development, without using a full-size laptop on: 2014-10-09 22:31:45
Apple's target audience are people with a lot of money and no idea about technology.
Err... no Stare

I also don't like apple products, but above statement is just BS - period.
9  Discussions / Miscellaneous Topics / Re: Is drinking half a bottle of vodka safe? on: 2014-10-09 14:11:30

The bottle and his "friend" Wink
10  Discussions / Miscellaneous Topics / Re: Is drinking half a bottle of vodka safe? on: 2014-10-09 14:01:03
Also keep in mind that vodka (at least for me) has delayed impact. This means you may feel that you can have some shot more, but in reality you already drank one too much  Shocked
11  Discussions / General Discussions / Re: Mobile Java game development, without using a full-size laptop on: 2014-10-06 09:04:10
@Cero
Resolution

Also finding a the right notebook is a cumbersome and frustrating thing. I am searching for example for a notebook with max 13.3", a non-glossy HD+ or FHD display, good WiFi reception, that comes in a color (e.g.  red) and doesn't burn your lap or sounds like a starting plane.

Doesn't seem to exist...
12  Game Development / Newbie & Debugging Questions / Re: (LWJGL) A new aproach on: 2014-10-05 00:29:17
http://www.sjbaker.org/steve/omniv/matrices_can_be_your_friends.html
13  Game Development / Newbie & Debugging Questions / Re: LWJGL Slick-Util Strange problems with drawing a texture several times on: 2014-10-02 18:20:12
Your unbinding is the problem.  Look up the bind() implementation in the source: it stores the last bound texture in a static variable and does skip binding, if the texture is the same to optimize performance (texture binds are expensive).  You can call TextureImpl.unbind() to clear that static variable.
14  Java Game APIs & Engines / Engines, Libraries and Tools / Re: How to install Eclipse on: 2014-09-29 17:12:32
Well,  I dont use eclipse and hate it with a passion, so I can't say if the support is that bad. Seing maven support as superfluous for game dev might be true. But a good SCM support should not qualify as bloat or junk...
15  Java Game APIs & Engines / Engines, Libraries and Tools / Re: How to install Eclipse on: 2014-09-29 15:58:59
Well. You should rename this to "how to install a downstripped Eclipse". Also (if I understand this correctly) removing git and maven support might not be everybodies cup of tea...
16  Game Development / Newbie & Debugging Questions / Re: Image flickering when moved (slick2d) on: 2014-09-29 07:49:09
You should really switch to LibGDX as you are wasting your time with that buggy crap
While switching to LibGDX might be worthwile, calling Slick2D buggy crap is a big NONO and very disrespectful!
17  Game Development / Game Mechanics / Re: Issues with gravity on: 2014-09-28 22:12:44
I can't think of any way I could possible fix this, does anyone have any ideas?

Let the ship collide with the planet and explode?  Shocked

Seriously, this kind of cornercases are inavoidable in simulations. For every kind of glitch that occurs due to limited accuracy,  you need to include special cases in your calculations, that "hard-codes" a plausible outcome utilizing minimas, maximas and ranges covering the inaccuracies.

Basils answer is a good example. If it's not what you assume to be a plausible outcome, implement something else in a similar fashion - or just let the ship explode  Wink

18  Game Development / Newbie & Debugging Questions / Re: Android Studio or that sexy LibGDX? on: 2014-09-28 08:39:28
Well. Just understand the errors, investigate the possible causes, fix them and go on. You'll learn a lot in this process, too!

I am doing enterprise admin, hardware/software infrastructure and devop at work and some developers' attitude of giving up or crying for spoon feeding if even the simplest problems occur drives me mad Angry

I don't mean it personal,  though  Wink
19  Game Development / Newbie & Debugging Questions / Re: [LibGDX]Looking for methods equivalent to the following on: 2014-09-28 08:21:21
Mul should be equivalent to transform. TransformNormal probably just normalizes the vector after the multiplication, so just call nor() on the resulting vector. Maybe you might also need to call nor() on the source vector to get the identical behavior to transformnormal.
20  Game Development / Newbie & Debugging Questions / Re: Adding gravity on: 2014-09-27 09:45:54
Ah ok. Just learn vectormath and the difference will go away  Tongue
21  Game Development / Newbie & Debugging Questions / Re: Adding gravity on: 2014-09-27 09:17:31
Sure,  but why complicate the issue. If that effect is needed, he can add it later.  Your first suggestion was just right.
22  Game Development / Newbie & Debugging Questions / Re: Adding gravity on: 2014-09-27 09:06:28
Actually gravity is independent of mass.
23  Game Development / Game Mechanics / Re: Moddius - A simple Modloader compatible with ANY Java game! on: 2014-09-26 12:04:57
The topic says that this library is Reflection-based...  Cranky
Which means this library uses Reflections (the library).
But its bundled onto 1 jar, so you have the reflections library if you load this lib in.
What I am missing is some hint how to use your library to make your game moddable. It looks like it's just a wrapper for getting annotated classes. What does it provide on top of Reflections?

I would at least expect an api to manage mods inside a folder and to load,  enable or disable them dynamically. Maybe also some Resource abstraction to help exchanging textures and sounds in a running game. Sources, javadocs and examples would be nice,  too.

You did a fat jar with all dependencies. This might introduce conflicts with other versions of the included dependencies used by a game. Also I don't know, if the license of Refllections (or some of the dependencies) allows rebundling like this...

All in all a good idea, but not ready for prime time. Keep it up nonetheless!
24  Discussions / Miscellaneous Topics / Re: Whays the story behind your name on: 2014-09-25 10:30:36
Long long ago there was a time that I was the programmer of an unknown short lived Atari ST demo group called TPN.  It was the time of the first US/German space mission called SkyLab. But since we targetted cyberspace instead of the sky,  the name cylab was born.

Only 15 years later when I tried to register some domain names,  I realized that there is a industrial band of the same name. I briefly thought about sueing them for prior art, but decided to not be mean  Wink
25  Discussions / Miscellaneous Topics / Re: I'm scared of Unity on: 2014-09-24 20:59:10
Even though it may not be possible to use with Unity, at least have it integrated...
It is:
http://docs.unity3d.com/Manual/VisualStudioIntegration.html
http://blogs.msdn.com/b/visualstudio/archive/2014/07/29/visual-studio-tools-for-unity-1-9.aspx
26  Discussions / Miscellaneous Topics / Re: I'm scared of Unity on: 2014-09-24 20:07:48
Monodevelop will take away your pleasure in programming.  Emo
You should spend some money and use visual studio + resharper. It'll probably boast your productivity by an order of magnitude.  You may even import an Eclipse Keymap (havent tried)
27  Game Development / Newbie & Debugging Questions / Re: Libgdx android xml saving on: 2014-09-18 13:16:59
Well, no stacktrace, no help Undecided It's just impossible to debug an error, if you don't have any information.

Also don't use static variables. The stuff they hold will never be collected by the garbage collector. Especially never hold anything outside of a method that you don't need outside of the method!
28  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-18 10:54:06
Think about it.  The NAND resets all flip flops every twelve ticks. The question is asking about the output of Q3. There is only one low->high flip for Q3 at the 9th tick (on that paper) ...

Now again - this does not??? affect the frequency of Q3 - really,  come on...  Tongue
29  Game Development / Newbie & Debugging Questions / Re: libgdx saving map on: 2014-09-17 15:37:50
Also you could try using kryo, but I don't know how good this works on android. But I would assume, that it works good enough, since the author also was a core contributor to libgdx.
30  Game Development / Newbie & Debugging Questions / Re: libgdx saving map on: 2014-09-17 15:35:31
Just looked up the source. XmlWriter directly writes through to the given writer object, so nothing is stored. Post your source again.
Pages: [1] 2 3 ... 71
 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (50 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (36 views)
2014-10-15 16:18:58

TehJavaDev (66 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!