Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 / Newbie & Debugging Questions / Quick Question on: 2012-09-10 06:48:34
I'm currently learning java so I can build a game and I have a little question.
When wanting to create a java game window that shows up on the users desktop, what are the best packages to use: Swing or AWT?

Also can someone please explain the difference between the JPanel, JFrame, and JWindow?
2  Game Development / Game Mechanics / Collision Detection thought and is it possible? on: 2012-09-06 09:57:48
I was thinking, since I am a visual learner I want to visually put my maps together from the image tiles, and save them as one big picture(similar to a spreadsheet I guess). Lets say that my tiles are going to be 40 x 40 pixles.

Instead of checking a map tile against the player's position for collision detection, would it be possible to check an array of the exact same size of the tilled map isself?

Let me explain...

I'd like to have an invisible grid laid on-top of the map. Each grid cell will be exactly the same size as each tile 40 x 40 pixles. Each cell will either have a value of 1 for true or 0 for false.

Would it be possible to check the array/grid for all the true values and let the player be-able to walk in those cells?

Sorry for my horrible explaining skills. Look at the photo below to get an idea. The bottom line is instead of checking the map for player collision, I'd rather just allow the player's character to walk in the cells that have a true(1) value. Since the array will be the exact size as the map, it will look as if the player is actually walking on the map, when the player is actually walking threw the array/grid cells.

The brown blocks are walls that the player shouldn't be able to walk through. Therefore the brown blocks would hold a 0(false) value. The gray is the walk-able area which holds the 1(true) value, letting the methods of character movement know that the player is allowed to move in those areas. The green dot is the player.

It just seems it would be easier and processer friendly to check a boolean value vs checking a players position, then having to check the tiles position and then having to compare the two for collision detection.

If this is indeed possible it would make map creation and checking for collision detection much easier! Even though if it is indeed possible there wouldn't be any need for collision detection since the player wouldn't be allowed to walk anywhere with a false value set in the array in the first playce Smiley

Thanks in advance for any ideas or replys.
3  Game Development / Game Play & Game Design / A design process question? on: 2012-09-04 01:33:56
Hello all, I am new here and new to Java. I'm reading the "All in one book for Dummies by Doug Lowe", and I need to know what goals I should start with first.

I have a project plan I have been working with for about 2 years with all the information my game needs, as-far-as game description, modes, ranks, weapons, features, etc... Now that I know how I want my game to be, I need to know in what order should I start programming my game? Here are a few facts:

- It will be a 2D top-down shooter with single and multiplayer modes.
- The map will be multidimensional arrays stored either on a database, or text file.
- There will be 5 different game modes(as of now) that are playable on all maps.

I know exactly how I want the game to look and feel, but I just don't know in what order should I start development/programming.

Thanks in advance for any help.
Pages: [1]
DesertCoockie (20 views)
2018-05-13 18:23:11

nelsongames (68 views)
2018-04-24 18:15:36

nelsongames (65 views)
2018-04-24 18:14:32

ivj94 (749 views)
2018-03-24 14:47:39

ivj94 (79 views)
2018-03-24 14:46:31

ivj94 (595 views)
2018-03-24 14:43:53

Solater (95 views)
2018-03-17 05:04:08

nelsongames (168 views)
2018-03-05 17:56:34

Gornova (378 views)
2018-03-02 22:15:33

buddyBro (1038 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!