Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (531)
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 ... 11
1  Discussions / Business and Project Management Discussions / Re: what now? on: 2014-07-23 13:17:45
A month?? NO! God DAMMIT. Of course, right when school restarts. Maybe I'll get lucky the 5th time around.
Yes that's right. It's happened 4 times now in a time when I can't do it. In a row. Grr  Roll Eyes

Ha, yeah. It's almost like they purposely time them to coincide with the beginning of school in August or final tests in December and April. I wonder if it has something to do with the organizers' schedules?
2  Discussions / Business and Project Management Discussions / Re: what now? on: 2014-07-23 02:21:24
TL;DR: Don't jump right in on coding your "great" idea. Instead, let it "boil" for a few weeks and see if it still has you hooked. Basically, have one or two ideas cooking while you work on your current "proved" good idea(s).

This is pretty good advice, but you could also try going the other way: instead of ruminating on ideas for weeks, try boiling your ideas down to a very small core concept that you can get up and running in a very short amount of time (think hours or days, not weeks). That way you can spend a week creating a prototype to see if it feels as fun as you thought it would. Then if it works, great, spend some more time on it (adding very small features incrementally), and if not, you're only out a short amount of time and you can jump on the next project.

This is the kind of approach that works for things like Ludum Dare, which is in a month! http://www.ludumdare.com/compo/
3  Java Game APIs & Engines / Engines, Libraries and Tools / Re: [Lego NXT] Java Libs? on: 2014-07-22 18:26:26
I highly recommend LeJos: http://www.lejos.org/

I built a drawing robot using LeJos: https://www.youtube.com/watch?v=QRqc8S7k6aM
4  Discussions / Business and Project Management Discussions / Re: what now? on: 2014-07-22 16:24:56
1. stop using todo-lists.

usually todo-lists contain stuff that you dont like to do. stuff that you like to do you just do, no reminder required. having a list of things that suck will not motivate you.

Pertinent Coding Horror: http://blog.codinghorror.com/three-things/

better make a list of awesome things you like to have in your game and then code them (or learn first, then code).

But be careful about getting lost in unachievable daydreams and feature creep. Keep your goals very small so that you have some hope of achieving them, and don't add to your list until you've accomplished something.
5  Game Development / Newbie & Debugging Questions / Re: Why does my if statments stop working when I remove System.out statments on: 2014-07-22 16:21:43
If you want help, you have to provide an MCVE (not a disconnected snippet like you've posted, but not your whole project either) so we can see exactly what you're doing.

Also, attributing your problem to things like "thread focusing" and "Swing background threads" is a recipe for disaster. Take the time to understand what you're talking about. Recommended reading: http://docs.oracle.com/javase/tutorial/uiswing/concurrency/
6  Game Development / Newbie & Debugging Questions / Re: [libgdx] Importing libgdx libraries into a non-libgdx project on: 2014-07-21 20:41:48
You need to add the correct jar to your classpath.

How you do that depends on whether you're using maven, gradle, eclipse, the command line, etc.

LibGDX uses gradle to build itself, but that doesn't mean you need to use gradle to use the libGDX jars. For example, here is the maven repository for libGDX jars: http://mvnrepository.com/artifact/com.badlogicgames.gdx
7  Game Development / Newbie & Debugging Questions / Re: How to load an image from a jar? on: 2014-07-17 17:11:50
I believe that one can also use a JarInputStream or JarFile to read the currently executing jar as if it was a directory structure as well, although certainly getResource() is much more convenient.

You can use JarFile and JarInputStream (and JarEntry) to view the contents of a jar, but to view the contents of the contents I'm pretty sure you'd have to extract them to the file system outside the jar first.

In other words, you can use the Jar* classes to see that a Jar contains a .txt file, but to actually view that .txt file, you'd have to extract it first. Or just use the getResource() methods.
8  Game Development / Newbie & Debugging Questions / Re: How to load an image from a jar? on: 2014-07-17 16:59:39
Indeed, although "resources" is a bit hand-wavey IMO, they are technically zip-file entries, as jar files are actually thinly veiled zip archives.

Correct. Either way, the File class doesn't work with them, and the getResource() methods must be used instead.
9  Game Development / Newbie & Debugging Questions / Re: How to load an image from a jar? on: 2014-07-17 16:52:12
In addition to what BurntPizza posted, I'll offer my own explanation:

Stuff inside of jars aren't files anymore. They're resources. So the File class will no longer work with stuff inside a jar- because they aren't files. They're resources.

Instead, you need to access them as resources. You do this using the handy getResource() and getResourceAsStream() methods found in ClassLoader (use this if your resources are relative to your whole jar) and Class (use this if your resources are relative to your class).

For example, your problematic line might look like this instead:

1  
ImageIO.read(YourClassName.getClass().getClassLoader().getResourceAsStream(path));


More info here: http://docs.oracle.com/javase/tutorial/deployment/webstart/retrievingResources.html
Or in the API: http://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html#getResource-java.lang.String-
Or just google "java load resources" for a ton of results.

Edit: I should also note that the getResource() methods will also work with files outside your jar. So it's perfectly reasonable to use these methods from your IDE as well.
10  Game Development / Newbie & Debugging Questions / Re: Do I need permissions for SharedPrefrences? on: 2014-07-16 14:36:13
The solution was posted in this crosspost: http://www.java-forums.org/android/90796-do-i-need-permissions-sharedprefrences.html
11  Discussions / General Discussions / Re: Java Swing GUI Creator on: 2014-07-16 14:34:00
For the love of Gosling, stay away from GUI builders. They hide what's going on under the hood, which can be great at first, but then you're screwed as soon as you need to add any amount of customization. They also create unreadable code, so you're double-screwed if you have to go in and manually change something.

Write your GUI code by hand until you understand what's going on. Then if you still want to use a gui builder, at least you'll know what you're getting yourself into. But chances are by then you won't want to use one anyway.

That's just my two cents, but I've seen enough people backed into a corner by starting out with a gui builder instead of actually learning how to code.
12  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-15 16:33:44
Maybe your google is different from my google, but I cant seem to find the thread by googling for it. Definitely not on the first pages when using your search terms.

I logged out of google so my search results weren't catered to me, and googled "java game development for girls" without the quotes. JGO shows up as the 9th result, with quotes from this thread as the description.

Anyways, I guess we both feel strongly and similarly about the same thing, and just have a minor difference of opinion on how to approach things.

True enough. I guess I (and others who said this should be deleted) were surprised when this *wasn't* sent to the chit-chat monster, considering that threads with much less questionable material have been sent there pretty regularly. I think cleaning up the garbage is good (in fact, it's required for a good internet community), I'm just surprised this isn't considered garbage.
13  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-15 14:59:12
Bigotry will not magically disappear if we all pretend it does not exist (i.e. censorship).

That's an interesting point. But there's a difference between "censorship" and "officially letting somebody know that something isn't okay in civilized conversation". If this is supposed to serve as a lesson, why not at least add a disclaimer at the top, or edit the offending posts to include that lesson at the bottom? I still don't know what lesson this thread supposedly teaches.

How are new readers, who will now find their way here by googling "java game development for girls", supposed to know that this thread, which shows up on the very first page of results, isn't what the rest of the forum is like? (Especially after looking at how many medals these types of comments received.) How many people is this going to discourage from pursuing programming? (If the answer is more than zero, that's way too many people.)

Jeff Atwood says it much better than I could: "if you are unwilling to moderate your online community, you don't deserve to have an online community."

I can be accused of generalizing or being too melodramatic, but this thread (and the others like it) have really turned me off of this forum. Hopefully it gets better, but I'm going to be looking for a new place to lurk. At least then I won't have to be "tolerated" for having the audacity to say that misogynistic jokes aren't funny in a technical forum, so I guess everybody wins.
14  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-14 22:35:03
A significant portion of zero readers, if only it wasn't bumped continuously by people fighting for their morals.

Or if it was just deleted like the other off-topic posts have been. I don't think anybody is "fighting for their morals", simply pointing out (to you, to the OP, to the people making misogynistic comments, to other people reading and cringing) that this isn't the way most (or I guess some) of the members here feel.

How counter-productive can you be.

It's not going to be deleted, so it stays, just to be discouraging to any girls here reading "jokes" about shutting girls behind doors despite their screams, how it should be okay to hit girls, how girls are at best a "distraction" to be avoided, much less respected... none of which have anything to do with Java game development. So the best we can do is reply to let people know that this isn't representative of everybody here, or of everybody in the game development community.

This post now shows up on the first page of google results for "java game development for girls". If it's not going to be deleted, it's going to be there for a while. Something about that makes me feel ashamed. But now people who find that result will also read these kinds of replies, which might make some bit of difference.

Also, stop generalizing.

I don't have to do any generalizing to find the kinds of comments I mentioned.
15  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-14 22:14:21
The quality of a forum is not determined by a single post. Anybody reasonably intelligent will realize this. If you feel ashamed to point others at this community, due to a single thread, you might want to advise them not to visit the internet altogether - for obvious reasons. Anybody making bold claims about how a sliver of poorly thought through content severly impacts the forum quality, or makes similarly broad statements, will not be taken seriously by me.

"Well it happens everywhere, maybe you should get a thicker skin" isn't really a valid stance, in my very humble opinion. We can do better than that. I respect this place and you, so I'm not trying to get into a dismissive internet fight, but this thread is a great example of why it's so hard for females to get into programming. Another example would be the "will feminists boycott my game if I show XYZ in it" thread from a few weeks ago. Neither type of conversation has anything to do with game development, or reality at all, so it seems -at best- a bit out of place here. At worst it's actively discouraging people who -given very little effort on our part- we could be encouraging instead.

If anything, this thread shows teens being awkward and bigoted, and a few 20y-ish 'elders' trying to slap a new sense of appreciation into them. It may have been a tad rough and significantly below average at times, but it seems like some people actually learned a lesson.

I honestly still don't know what lesson people learned. Did the teens learn something about being awkward and bigoted? Did the "elders" learn not to bother explaining why threads like this aren't okay? (Honestly that's the lesson I've learned, next time I'm keeping my mouth shut.)

Because all of this, and potentially even more of this, this topic will not get deleted.  Those yelling to lock the thread, or delete it - to save the children - do nothing less than shoving it in the face, of said children - time and time again. If you hate it, let it die.

I don't think any of us are worried about saving the children. We're simply aware of the eye-rolling disgust that this thread will be met with by a significant portion of its readers, and we don't see its point on this forum, which we normally have great respect for.

Anyway, like I said, I'm not trying to start an internet fight, so do what you want. It's up to you what kind of audience you want to cater to, and I really mean that without any sarcasm. A significant portion of the visitors here are indeed 14 year old boys, and that's cool (I was a 14 year old boy once), but I guess it's a decision of how inclusive you want to be to *other* groups as well.
16  Discussions / Miscellaneous Topics / Re: [Girls] How to completely block them from our lives? on: 2014-07-14 20:41:48
The difference is there is a lesson to be learned from this thread.

Dare I ask what lesson that is? Far be it from me to question the ways of our overlord, but how does this thread improve the quality of the forum at all?

I've been proud to send people to JGO because of how interesting and professional it is, but posts like this make me embarrassed to be a member here, let alone send new people here, let alone send women interested in game programming here.

I'm hoping this thread gets deleted, or at the very least, this response lets people realize that this isn't the norm here. At least I hope it isn't.
17  Game Development / Newbie & Debugging Questions / Re: ArrayIndexOutOfBounds WTF? on: 2014-07-14 20:37:11
This isn't valid code. Arrays don't have a size() function, they have a length variable.
18  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LibGdx, objects dont move on: 2014-07-04 15:54:28
Can you post an MCVE instead of an incomplete code snippet? Not your whole project, just enough for us to be able to run the code and see the problem.
19  Discussions / General Discussions / Re: Rock Simulator 2014 funded on IndieGoGo on: 2014-07-03 20:10:15
Also see also: http://en.wikipedia.org/wiki/Pet_Rock
20  Game Development / Game Play & Game Design / Re: Upgrade Ideas on: 2014-07-03 18:24:43
More seriously, you need to be very mindful of feature creep: http://en.wikipedia.org/wiki/Feature_creep

Getting ahead of yourself can be fun (Oh man! What if my game had missiles! Or chickens! Or chicken missiles!) but it comes at the cost of *actually getting something done* which is the most important part.

You should have the bare minimum of your mechanics and basic rules in place before you start thinking about extra stuff. Good games consist of only a few features that are *really well done*, not a ton of poorly-implemented features.
21  Game Development / Game Play & Game Design / Re: Upgrade Ideas on: 2014-07-03 18:05:36
The first upgrade should be actually programming the game.
22  Discussions / General Discussions / Re: Rock Simulator 2014 funded on IndieGoGo on: 2014-07-03 15:02:03
I think games like this are supposed to be "ironic" with the developers and "players" not taking themselves too seriously. That can be a breath of fresh air in the indie community, where there is seemingly always something to complain about. I don't think the developers are doing something as insidious as a well-timed cash grab, but I suppose I could be wrong about that.

I don't really care about these types of games either way, but I hope they go away soon. Or I hope the developers use the spotlight to showcase other upcoming indie games. There are so many other beautiful things being created, and while this is funny for a few minutes, the entire community could be so much *more* than it is now.

What I'm really afraid of is when this goes "mainstream" and the app stores are flooded with "simulators" in the same way they're flooded with zombie-run-and-jump-flappy-bird-2048 clones now.
23  Discussions / General Discussions / Re: Should a newbie game developer start with libgdx? on: 2014-06-30 20:01:56
I don't disagree with the general sentiment of "just try something out", but I would argue that libGDX is NOT meant for absolute beginners.

If you don't know basic syntax, OOP, how Java libraries work, etc, you're going to have a rough time getting acclimated to libGDX.

I personally recommend starting with something like Processing, which is built on top of Java but eliminates all of the boilerplate Java code that confuses novices. Since it's built on top of Java you're learning all the right syntax though, and it'll make the transition to Java and eventually libGDX much easier.

http://processing.org/
24  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-29 19:08:27
Im not doing by myself. I will have people helping me with those other issues.
Smiley

I seriously wish you the best of luck, and I really would love to see you accomplish this. But even if you have help, starting simpler is never a bad idea. Think about it this way: we tell people it's a bad idea to start game development by trying to create their dream MMORPGFPS game. Instead, we tell them to start with Pong and work their way up. All I'm suggesting is that you start with Pong before you try creating a semi-autonomous drone that can achieve low space flight, haha.
25  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-29 18:24:08
@Kevin
Indeed, I've already conceded that there are simpler ways. None of my postings are must do's, and while some things may seem a bit contrived, I can only say that usually happens when introducing a new concept to someone. Ever read some of the examples given for design patterns?

I don't disagree with showing the horizons and all that. My only point is that in this case, simpler is definitely better. If somebody who had never programmed before asked you about design patterns, would you get into specifics or would you tell them to try some basic Hello World tutorials first? In this case, a balloon is Hello World.
26  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-29 12:24:59
@Kevin
While not strictly a Java link, Open-TX is open source firmware that works with various radios and adds useful features not included in stock firmwares. Since it's open source, it should be possible to learn how to decode radio data such as telemetry and how to transmit data back to your aircraft. As a side note, I have a FlySky 9x variant (listed on the previous page). The radio costs about $85.00 USD, and is a favorite among hobby RC hackers due to the fact that it has the same features as much more expensive transmitters. You have to do a little soldering to get it all to work, but it's beginner level stuff.

Bringing in Java, you can run a JVM on a Raspberry Pi and drive an arduino via serial communication. Once you start viewing the Arduino as an interface to other hardware such as temperature sensors, tilt sensors, etc, you begin to see new possibilities. Off the top of my head I can think of using an arduino to sense temperature differences in the atmosphere and using it to hunt for thermals to achieve extended flight for a glider platform. You could use GPS information and heading data to rig up a camera trigger to take pictures at certain points along a predetermined path. A lot of the RC community is composed of what's commonly called "makers" and homebrewers. I must concede your point that you could accomplish the original goal without any Java in the mix, but considering it's a hobby project and not something for widespread production and use, there's really no harm in trying different approaches to broaden your horizons. Smiley

My only argument is Occam's Razor. Which do you think OP is more likely to complete: tying a camera to a balloon, or building a drone capable of hunting thermals? I think you guys are vastly underestimating the difficulty in building such platforms. This isn't trivial stuff. Even if something more advanced is the eventual goal, shouldn't OP start with something much more basic first?

I understand that these things are possible. I'm arguing that pursuing them from the beginning impedes OP's ability to accomplish the goal.

I'd love to see OP get started with this, and the most likely path to success is the simplest path.
27  Game Development / Newbie & Debugging Questions / Re: Line Collision on: 2014-06-28 20:14:02
Step one: find the distance between the line and the center of the circle. Google is your friend here: http://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line

Step two: compare that distance to the radius of the circle. If the distance is less than the radius, the ball is touching the line.
28  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-28 20:06:45
@Kevin: I've been looking into this subject (RC flight) for over a year now as a serious hobby. While some components can be expensive prices on RC electronics aren't what they used to be, especially with vendors such as HobbyKing out there. I can also say that the hardware is becoming more open and sophisticated at the same time; nothing like completely customizable transmitter units for under $100.00. While Java may not be all you need, there are certainly applications for it depending on the end goal. Don't be so quick to dismiss things out of hand.

I'd be curious to check out any links you can offer.

My only argument is that using Java, arduino, a quadcopter, etc is overkill for the OP's goal.
29  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-28 19:49:54
This isn't a job for Java. Java is great for lots of stuff. This isn't one of them. What do you want Java to do, exactly? All you need is something that broadcasts its gps coordinates and a camera that takes pictures automatically. Both are available for much cheaper than anything you'd put Java on.

You aren't going to be able to control the thing. The broadcast range on anything controllable won't get you very high. Unless you're willing to spend a lot more money on the project.

Try googling these things, looking up prices on Amazon, broadcast ranges, etc.
30  Discussions / General Discussions / Re: I want to see Above the Sky With Java + Arduino. on: 2014-06-28 17:02:54
Using a helicopter/quadcopter is not the way to go. Neither is using Java.

Instead, use a weather balloon, a camera simply set to take pictures every few seconds, and a cheap GPS-enabled device (like an old phone) to recover everything once it comes down.

Be smart about where you launch the thing, consult your local authorities, etc etc.

Googling stuff like "weather balloon camera" and "weather balloon gps" returns a bunch of results that even a beginner can get started with.

I'd be curious to see your results, so post your progress back here!
Pages: [1] 2 3 ... 11
 

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 (13 views)
2014-07-24 01:59:36

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

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

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

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

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

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

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

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

Riven (50 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!