Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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]
1  Game Development / Game Mechanics / Re: How do you generate random game objects? on: 2014-05-25 00:04:05
Thanks everyone.  I know my question didn't make a lot of sense.  Sorry.  I guess I thought there was some "elegant" way to generate characters, NPCs, ships, etc. besides switch and if statements.  But, if they work, so what.

I thought big switch statements and lots of ifs was supposed to be a bad thing.  I think I need to study more code.
2  Game Development / Game Mechanics / How do you generate random game objects? on: 2014-05-24 21:53:48
I wasn't sure how to ask it.

If I have set of classes for each type of "item," as in object or class, what is the best way to generate them randomly.

I'm only practicing but say I have a text game where you have lots of different types of classes, like, EvilPerson, GoodPerson, Monster, SomethingElse.....

I want to choose one at random.

I'm probably just overthinking it but I shouldn't just do
1  
Random rand = new Random();
should I?  Say I have fifty types of things.  I know this is not thought out real well.  Thanks.
3  Discussions / General Discussions / Re: Why does it seem that all the basic tutorials for libgdx are for android? on: 2013-08-26 00:37:48
I did not know that.  Thanks.  I thought libgdx was solely a Java thing.
4  Discussions / General Discussions / Re: Why does it seem that all the basic tutorials for libgdx are for android? on: 2013-08-25 23:54:55
Dumb, really dumb question, but that's because it is Java, right? Clueless
5  Discussions / General Discussions / Why does it seem that all the basic tutorials for libgdx are for android? on: 2013-08-25 23:44:39
I can't find a basic Hello World except an Android.  Aren't there basic tutorials like there are for pygame?  Thanks.  Yes, I did look at the tutorials page but didn't see anything.  I'm hoping I just overlooked it.
6  Game Development / Newbie & Debugging Questions / Does Java Gaming use Swing? on: 2013-08-15 23:55:42
It might be the industry I work in but I see Java mostly in the web arena.  A long time ago maybe some Java apps that used Swing or (awt a long time ago).  One of the tutorials here started out with Swing immediately.

In Java game programming, will I be using lots of the Java windowing libraries?  I really don't want to spend tons of time on a dead technology.

Thanks.
7  Discussions / General Discussions / Re: Is it bad to start with Python and then move the Java? on: 2013-08-13 00:28:40
I feel the same way.
8  Discussions / General Discussions / Is it bad to start with Python and then move the Java? on: 2013-08-12 00:58:48
My son (11) wants to make 2D games.  I am a programmer here and there but not as much as you all.  Python has a really good book, Python for Kids: Introduction to Programming.  I have not seen one like it for Java or any other language.  I have seen all the "precursor" steps like Alice and Scratch.  He does not want that.  He has learned to compile things for Minecraft mods and wants to use a "real language."  He compiles by following steps from YouTube videos.  He, of course, doesn't know the rudiments of the language, just learns it here and there by context.  I hope that makes sense.  He has taken a Game Maker class and made a game or two.  Just not where we want to stay.  I'm trying to prepare him for the real world, no offense.

The goal is not to make mods for Minecraft.  He doesn't even play it right now.  But he does want to make 2d games.  Python, pygame and what not do not look too hard.  I've seen the two big gaming libraries for Java, but don't know much.  I'd pick LibGDX for now.  No, I do not want to argue about what's the best library.  I've seen enough of those threads on JGO Smiley.

The main question is should I start in Python and use that for a while?  Start with Java?  Does it matter because it won't be the only language he ever learns?  Python doesn't have a lot of jobs out there :0.

Just wanted opinions.
Pages: [1]
 

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

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

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

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

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

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

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

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

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

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