Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (688)
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-24 22: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 19: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
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-25 22: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 21: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 21: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 21: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.

7  Discussions / General Discussions / Re: Is it bad to start with Python and then move the Java? on: 2013-08-12 22: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-11 22: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]
Dwinin (73 views)
2015-11-07 13:29:08

Rems19 (81 views)
2015-10-31 01:36:56

Rems19 (78 views)
2015-10-31 01:32:37

williamwoles (107 views)
2015-10-23 10:42:59

williamwoles (93 views)
2015-10-23 10:42:45

Jervac_ (111 views)
2015-10-18 23:29:12

DarkCart (135 views)
2015-10-16 00:58:11

KaiHH (118 views)
2015-10-11 14:10:14

KaiHH (157 views)
2015-10-11 13:26:18

BurntPizza (172 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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!