Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (581)
Games in Android Showcase (162)
games submitted by our members
Games in WIP (632)
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 ... 9
1  Discussions / General Discussions / Re: Looking for a developer on: 2015-04-02 19:30:20
Aha thanks I wonder about that but surely I can use this as proof that it is my idea.

That doesn't count at all.
I don't want to be rude but nobody cares about it as the law doesn't protect ideas. Some people believe that ideas are protected but no, they aren't.
Indeed not even patents are really protected, big companies can easily steal your ideas because you don't have the money for a lawsuit.
Nevertheless only stupid people don't share their knowledge and asking for advice or help will be worth the risk because noone will clone an idea that isn't already hyped Smiley
2  Game Development / Game Mechanics / Re: LibGDX table bug? on: 2015-04-02 19:17:09
The green rectangle seems to be on the correct position for the Lable and is the chatTable?
If yes:
Are you messung around with invalidate and layout?
Why do you have a container, I don't think that you need it.
The ScrollPane is only as big as the content it holds, you want to set the size of the chatTable. (Maybe that behavior changed as I haven't used it the last months)
If you are unsure what some actors do have a look at the getPrefWidth() and getWidth() etc. methods. A lot of actors override them and I don't think that the behavoir is well documented so you might have to check out the source-code Smiley
As I don't know what your skin looks like I can't tell you why the actor is outside the chatTable. Indeed I haven't used skins yet, I prefer Layouts.
3  Discussions / Miscellaneous Topics / Re: What Anti-Virus are you using? on: 2015-03-22 20:30:25
I've never had issues with Norton 360 (now known as Norton Security). And its not even a monthly subscription. You must be thinking of the crappy Norton Antivirus, which doesn't exist anymore..

Tomsguide ranked it pretty high,review-2588.html
Nope Norton 360, my inet provider has/had that subscription
4  Discussions / Miscellaneous Topics / Re: Crash - Corrupt File, Months of Work Lost on: 2015-03-22 09:40:31
I am backing up most of the stuff I use at bitbucket, free private repos. For public repositories I use github  Smiley
5  Discussions / Miscellaneous Topics / Re: What Anti-Virus are you using? on: 2015-03-22 09:36:38
Problems that most people think are related to viruses != problems caused by viruses.
Indeed I believe that windows protection is fine and as viruses are programmed before the protection I think that spending money on anti-virus is useless (maybe in some cases it's usefull).
On unix-systems I don't care about viruses at all  Grin
What I tried:
 - haven't found a virus in ages on my machine.
 - blocks inet connection that shouldn't be blocked and I haven't figured out how to disable that "feature".
 - still blocks stuff even if I disable it

Norton 360:
 - worst software I ever bought (I think I still pay monthly for it as I forgot to cancle the subscription)  Roll Eyes
 - destroyed my custom audio driver
 - removed some software from the dark side
 - deleted stuff without asking.
 - slowly

Some other free software that didn't last longer then one day on my computer.
As long as you don't use java-applets and have no-script enabled you should be fine.

As I store most of my date in git repos I don't care if I have to reset my system  Grin
Indeed I haven't got problems in years  Smiley
6  Discussions / Miscellaneous Topics / Re: Good language for prototyping on: 2015-03-01 22:01:58
What kind of prototyping?
For math-stuff I use python and matlab Smiley
7  Discussions / General Discussions / Re: Future career in programming and school suggestions? on: 2015-02-15 20:51:01
It may differ from person to person, but that's how I am mastering my educational live:
Set up MY own goals I have to  reach (The important thing is, that those goals have to be your goals, not the ones of your family or anyone else)
One the one hand side I got a plan, maybe it can be called work in progress blueprint of my live plan-A, which is targetting my life in 10 years (For example what I want to do/work etc).
Of course it differs from time to time, but it's a guideline I am following.
On the other side, I got a plan-B that targerts the near future. For example, be good enough in school to be able to go to the university you want and to study what you want or whatever you want to do. Plan-B is also some kind of backup related to the values of the society and you might don't need it for your plan-A (In most cases they overlap, if they don't, you may should think about plan-B again) , but in my case plan-A is connected with setting up a company, so it can't be really planed.

In addition, always give your best at start of anything, if you have to get an B to go to the university you want to go, go for an A (grades, not plan-A or plan-B) until you are sure, you will make it. At that point, I always start to work on plan-A or whatever I want because I know I will reach B Smiley

Why do I need B if I could just work on A. You never know what future brings and going for just one thing isn't a good idea (Maybe in some cases, but in most not). In my case I am studying physics as B (absolutely interesting but I don't want work as a typic (not sure if typic is the right word in that case) physicist - indeed most physic sudents won't work as a typic physicist after graduating). Maybe that will change in the future, but that major combines information I need for A and some stuff I am interested in.

One more important thing I learnt: If you have to chance to work on something you like as a team in school or university just go for it. Projects at home are a lot of fun and may be worth it, but you will meet a lot of interesting and helpfull people in those workgroups Smiley

Thanks a bunch Kev. It's a strange thing, growing up. It's coming a lot faster than I expected it...
Don't worry, if you go to university and don't have a lazy course you will become extremely fast older  Grin

To sum it up:
Work to reach your goals you have to reach and work hard on your trophy in a team  Smiley
8  Game Development / Newbie & Debugging Questions / Re: Would this work? GooglePlay Code on: 2015-02-02 08:32:05
Since when : Destroying asteroids = Violence?
Even if you create a game which is about feeding little kittens and add a highscore-table where users can add comments (about what a good person you are as you fed all those poor kittens) your game could be set to Medium Maturity.
Destroying asteriods seems to be intense fictional violence  Roll Eyes
You could write an email to the support but dont expect any response soon  Smiley
9  Game Development / Newbie & Debugging Questions / Re: AI on: 2015-01-11 19:20:02
Your bot is the projectile:
Detect if your bot can reach the block, if yes jump.
10  Games Center / Showcase / Re: A Top Down Shooter with a Shyamalan Twist on: 2015-01-05 19:31:01
 persecutioncomplex <- Me first two times 
A Top Down Shooter with a Shyamalan Twist...

Don't shoot cars with their top up or else...
Well played  Roll Eyes
11  Discussions / General Discussions / Re: Difference between libGDX and Swing And Java on: 2014-12-01 15:41:47
Not sure what you are asking but here we go  Smiley

Whats the difference between Java Thread and libGDX Thread?
Maybe I am wrong or get your question wrong but I am quite sure that there is no libgdx thread. They extend it sometimes but there is no other "default" thread that extends object direktly.
You can look up the diffrent Object <- Thread <- SomeLibgdxThread in the docs. For example:

I know that sleep() of java is a bit annoying and that libGDX is more stable.
Although i saw java games that are able to stabilize the FPS... So whats the difference?
I think that you are talking about the main-loop. sleep(1) -> thread sleeps at last 1 ms.
It depends on the main-loop:

Does Java swing threads for rendering is faster and occupy less memory than a same view using libGDX?
Dont think that the event-threads of swing can be compared to libgdx mainthread. Indeed Libgdx memory usage depends on the type of the libgdx app (desktop, android, ios, html)
Libgdx offers you opengl support so it will be faster if you use it (in the way it should be used).
12  Game Development / Newbie & Debugging Questions / Re: Is it possible to cast Vector2 float to int? on: 2014-11-23 17:12:42
position instanceof Vector -> true
position instanceof Integer -> false

You cant cast it, you have to cast the elements of the vector. Indeed it doesnt make sense, you should write your own Vector if you really want to use integers
13  Game Development / Game Mechanics / Re: How to simulate Electricity in Tile-based game on: 2014-10-27 19:40:04
Havent read everything and maybe it's just me but I wouldn't use an array.
If you have only some little parts of your map powered by elec. you would have huge arrays for nothing and you would need to iterate over them. In addition, if you dont want the whole map to be loaded as it's to big, you would run into problems like minecraft has.
For small elec. I would go for some tree-map-structured object Smiley
14  Games Center / Showcase / Re: Hovercraft on: 2014-10-26 14:17:08
What do I need for unlocking a new chapter?
You need to finish all the levels in the previous chapter.
I finished all levels without any star -> I wasnt able to play chapter 1
Afterwards I got min 1 star in each level except one in chapter 1 -> I was able to play chapter 2
Maybe it's a bug but there seems to be a difference between completing a level with 1 star and without a star.
15  Games Center / Showcase / Re: Hovercraft on: 2014-10-21 20:13:33
Good game, like it  Wink
Some questions:
How are the numbers of stars calc. you get after finishing a level?
What do I need for unlocking a new chapter?

You could/should answer those ingame Smiley
16  Discussions / General Discussions / Re: painful maths that will hurt your brain... on: 2014-10-13 12:11:04
I totally missunderstood your answer,  Roll Eyes
thought that your post
But it's an odd-looking equation and a series of answers like that isn't useful in all situations. Which makes me curious - what's the context? Where does it come from? What does x represent? Are you sure the working up to where you got this equation is right? Cheesy
refers to the post from quew8.
That's why I wrote the math step by step  Smiley
I hope that I didnt make a mistake, it has been a long day Smiley
No excuse but I knew that I was doing something wrong  Grin
17  Discussions / General Discussions / Re: painful maths that will hurt your brain... on: 2014-10-12 20:22:20
x is the 7th root of 28274625. Or the 24th root, or the 41st root etc. In other words 11.600...., 2.043...., and so on.

E.g. expressed in logs to base 11.600, 28274625 is 7, because raising 11.600 to the power 7 gives you 28274625.

But it's an odd-looking equation and a series of answers like that isn't useful in all situations. Which makes me curious - what's the context? Where does it come from? What does x represent? Are you sure the working up to where you got this equation is right? Cheesy

I think that quew8 answer is correct. You might want to have a look at:
As modulo isnt an injective operation you dont get one solution, you get a set.
You could also go for:
a = log x (b) % c
(n*c)+a= log x (b)
d = log x (b)
b = x^(d)
-> x = b^(1/d) //d != 0

I hope that I didnt make a mistake, it has been a long day Smiley
Anyways, I would go for the solution quew8 already posted as you can work with the ln much better then with log. ln has some nice features, for example the power series:

This is for calculating the reverse multiplicative modulo inside an RSA encryption function , a step by step thing is what im looking for.
As written above, keep in mind that modulo isnt injective. You will get the x that solves the equation and that you used to generate it, BUT you wont know what the "correct" x out of your set is.
No offense/dont want to be rude/just a hint, you might want to have a look at some more advanced math before implementing your own RSE  Smiley
18  Game Development / Newbie & Debugging Questions / Re: How to learn about build systems. (Gradle, LibGDX) on: 2014-10-09 19:02:16
So, if I take the Gradle build settings and the source code, and upload them to my (bitbucket) repository, then anyone with Gradle and the proper libraries and such on their system can build the necessary project for their IDE? Thank you for the clarification, I'll try taking a look at the Gradle setting files when I get home later.

Yes but you might have to add some files to the gitIgnore list as different IDEs create different files inside the project. Most of the files are ignored by default (.gitignore).
19  Game Development / Newbie & Debugging Questions / Re: [Android][Facebook] I can't get anywhere with this on: 2014-10-09 18:59:36
Havent used android facebook api as I go for facebook graph api.
The documentation isn't that good. It seems like that facebook assumes that you already know how it basically works and just want to look something up  Roll Eyes
Stackoverflow will be your best friend, but after some time you get used to it Wink

Why I prefer graph api:
I am using libgdx and dont want to write to much platform-specific code.
Graph-api can be easily debuged as most error-messages from facebook contain usefull information, you can even debug it in your browser.

Afterall I havent found any up to date + usefull tutorial, getting facebook running is for try and error commanders as the documentation isnt the best  Smiley
20  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Nightmod - Rapid development live-coding game specific IDE on: 2014-09-01 09:37:12
  (fn [screen entities]
    (height! screen 300)))

Love that type-safety syntax  Wink
21  Game Development / Newbie & Debugging Questions / Re: Should I move to LWJGL on: 2014-08-04 19:54:38
I havent missed any lwjgl content in libgdx,
if you want to go for modern opengl you have enough to learn Smiley
If you just want to create desktop-games you can go for lwjgl but anyways I would stick with libgdx, if you want to create games Wink
Yaay if if if if if if  Roll Eyes
22  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-28 08:05:59
I  think that there are restrictions how high a model airplane is allowed to fly.
But anyways I would go for a zeppelin  Roll Eyes
and a picture stabilizer like this

Of course no big zeppelin. Just a small one Smiley
One big problem is to get it back after it falls  Grin
Maybe a gps tracker will help but if some unkind person find a zepelin with an expensive camera he might keep it.

All in all it would be a nice advertisement for your city, you might wanna get some support because a small zepelin that flies autonomous will be a lot of work and it's not for free.

But if you go and ask for help you need something like a businessplan. Not a finished plan of your project, just something that you can show, so people say that you already put work in your project and aren't just daydreaming. It's a nice project and I am sure you can get some sponsorship if you don't rush it  Smiley
23  Game Development / Newbie & Debugging Questions / Libgdx Textures behave weird - some kind of content loss on: 2014-06-23 20:02:36
Hi, I already asked that question in the libgdx forum but got no response. post:
So maybe someone of you know what we are doing wrong. Has to be something stupid because I never had this error before.
Somehow the textures are mixed sometimes
How it looks like:

How it should look like:

On Nexus 5: It seems like that the texture of the bitmapfont replaced the triangle etc.
On samsung s1: The textures are black and/or mixed:
1. Start after installation
2. Restart (if the app wasn't closed using the taskmanager)
So it seems like that those textures are disposed/the content is lost.

That "content-loss" also happens in different situations. It seems a bit random sometimes.
How we are creating scene2d-elements:

    new Image(new Texture(Gdx.files.internal(...)));

Sometimes we are creating Drawables like:
   Drawable drawable =  new Image(new Texture(Gdx.files.internal(...))).getDrawable();
   //-> use drawable to create several Images
   Image image1 = new Image(drawable);
   Image image2 = new Image(drawable);
   Image image3 = new Image(drawable);

I already read that: (and everything else I found on google searching "libgdx content loss")
but as this blog post says:
In case of managed textures you might have noticed that to construct such a texture you always specify a FileHandle (Graphics.newTexture( FileHandle file, …)). That’s the secret to managed textures. They recognize when the OpenGL context was lost and automatically reload the texture from the file formerly specified via the FileHandle. If i’d allow you to draw to such a texture via Texture.draw(Pixmap) i’d have a bit of a problem. I’d have to keep track of your changes to the texture. I could not just reload the original file as all subsequent changes via the draw() calls you make would be lost since i can’t write the changes to the original file.
There shouldn't be a problem  Huh

We are using the current nightly version Smiley

thx for help

Fixes found:
Textures were mixed because of native dialogs (android). We called
 new Texture(...)
in the listener of the dialog provided by android. But as they run in a different thread that has gl context (not sure how it's called) it didn't throw an error BUT the textures were created in that different context. But as I am no gpu guru I don't know what really happens  Grin
After creating a queue and running the code on the mainThread it worked.
24  Games Center / WIP games, tools & toy projects / Re: Mazer on: 2014-05-04 19:31:40
The character will be back in version 1.2. Atm it's playing with the src-code. But as you can't see the src anymore you don't see the character!  Grin
Just two things to mention.
You published 1.0 yesterday, 1.1 today. Your game might get more attention if you just push "bigger" updates.
Secondly, I don't know how good you are at coding/what you have done so far, but you will learn more if it's open-src.
Anyway keep up good work  Smiley
25  Discussions / Miscellaneous Topics / Re: Advice on dealing with internet trolls? on: 2014-04-20 12:16:26
Click "ignore". Smiley Not ignoring is rewarding them.
You are a mad person, if you don't feed the troll it will die of starvation  Cry
26  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-18 14:58:02
I use kaspersky Pure 3.0.Used internet security before... Dude, its awesome.
No virus whatsoever.After i installed i ran some checks with another antiviruses to check if kaspersky was really working and it is.
Just fine.
kaspersky removes files without asking and you can't restore it. It destroyed my custom sound-driver and it killt the software I used for playing with and some other stuff. (And yes the software was clean)
I bought it but after the first day I removed it  Smiley
27  Discussions / General Discussions / Re: [LIBGDX] Particles disappearing and then reappearing on: 2014-04-06 12:43:12
But anyways, an Immutability-modifier would be awesome in java.
private immutable Object o; //if you try to change a value inside o an ImmutableExeption will be thrown

It's not that easy... There is reflection too and stuff like that. It's possible to change the
inside a String via reflection, although the String should actually be immutable.
It doesn't have to throw an exception if you use reflection.
it just should throw an exception if you do something like

class Whatever{
String myString;

immutable Whatever w; //if you try to change a value inside o an ImmutableExeption will be thrown

void test(){
 w.myString = "wasd"; //throw exception


void setString(String s){
 this.myString = s; //throw exception
28  Discussions / General Discussions / Re: [LIBGDX] Particles disappearing and then reappearing on: 2014-04-05 21:36:03
Thanks for the help Phil. I have the code looking similar to what you put, but I kept it closer to my original way so that the transition looks better.
Working for up to 200k particles, when I hit 300k it slows down to a snails crawl.
No problem  Smiley

Immutability for the win!

Should all functional languages rise! Grin

(This is probably a dangerous statement in a java forum  persecutioncomplex ... Anyways, go on, I didn't want to derail Roll Eyes )
The quizz is done, the participant won, the quiz-(not even close to master) has to go  Roll Eyes

But anyways, an Immutability-modifier would be awesome in java.
private immutable Object o; //if you try to change a value inside o an ImmutableExeption will be thrown
29  Discussions / General Discussions / Re: [LIBGDX] Particles disappearing and then reappearing on: 2014-04-05 21:13:42
Yes you got it Smiley

I would change:
In Particle.class
   /** The color of the particle. */
   private final Color color = new Color();

and in the constructor:

in RainbowSnow.class
   private final Color snowColor = new Color();
    * Updates the snow.

   public void update() {
     snowColor.set(red/255f, green/255f, blue/255f, 1.0f);
      if(counter == 10) {
         for(int i=0;i<RANDOM.nextInt(1800) + 120;i++) {
            newParticle(snowColor, RANDOM.nextInt(8), 40);
         counter = 0;
      } else {

Are you always writing so many comments in your code? That's nice Smiley
30  Discussions / General Discussions / Re: [LIBGDX] Particles disappearing and then reappearing on: 2014-04-05 21:08:52
Yes it's because in java2d if you had 471 particles you had 471 colors.

Back to your code:
So what would happen if you create 5 red particles.
Then you take one particle and set the color to blue. What color will the 4 other particles have? You use color.set(...)
Pages: [1] 2 3 ... 9
MrMapcom (11 views)
2015-05-23 20:26:16

MrMapcom (16 views)
2015-05-23 20:23:34

Waterwolf (29 views)
2015-05-20 15:01:45

chrislo27 (35 views)
2015-05-20 03:42:21

BurntPizza (70 views)
2015-05-10 15:53:18

FrozenShade (55 views)
2015-05-07 09:11:21

TheLopais (217 views)
2015-05-06 13:36:48

TheLopais (202 views)
2015-05-06 13:35:14

TheLopais (206 views)
2015-05-06 13:33:39

TheLopais (226 views)
2015-05-06 13:32:48
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

Resources for WIP games
by kpars
2014-12-18 10:26:14

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 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!