Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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 ... 7
1  Game Development / Newbie & Debugging Questions / Re: Best collision detection for falling enemies ? on: 2014-04-20 10:35:10
i would make a class called Enemy. store any data relevant to the enemies position, size, rectangle, graphics image, etc in this class. then you can make an array of type Enemy, and store each enemy (and all of its data) in the array.
2  Game Development / Newbie & Debugging Questions / Re: Best collision detection for falling enemies ? on: 2014-04-20 10:04:22
if 2 rectangles are colliding you need to check if the sides are overlapping.

check if object1's right side is > object2's left side and object 1's left side is < object 2's right side. you can use your 2 hands to visualize this and what conditions are happening as your hands first touch, then pass over each other, or you could use 2 pieces of paper, this will help you understand whats happening, and what logic youre trying to code. do the same with the top and bottom sides.
3  Game Development / Newbie & Debugging Questions / Re: Advice for learning game development? on: 2014-04-19 11:08:28
personally i like to make my own built in editor and map renderer because i usually like to include an editor with my games. it might be easier to use a tiled editor to start with though because it would cut down quite a lot of work for you.
4  Discussions / Miscellaneous Topics / Where to find dark windows themes? on: 2014-04-19 11:00:19
I just hooked up a 24" led monitor to my laptop so i can see what im doing better when working on graphics and code, but the white is so bright that its melting my eyes out. Does anyone have any advice on darker windows 7 themes? I spent a while looking but only found dodgy things that didnt even work.
5  Game Development / Newbie & Debugging Questions / Re: Advice for learning game development? on: 2014-04-19 10:55:14
Tile maps are a good thing to start with, theyre very easy to work with and very versatile. usually you would have a camera position, and move that around, rather than moving the map or the player around (although the player will normally be moving around anyway, with the camera following it).
6  Discussions / General Discussions / Re: Get position of end of angle? on: 2014-04-19 00:02:24
http://stackoverflow.com/questions/19355026/move-an-object-in-the-direction-its-facing-using-2d-html5canvas-and-ctx-rotate-f

or just have a quick read of this  Cool
instead of moving the object *speed, move it *armLength
7  Discussions / General Discussions / Re: Get position of end of angle? on: 2014-04-18 23:56:54
you need to use some trigonometry for this. it will probably involve using cos and sin. you have the length of the arm, which is the hypotenuse , and you have 2 angles. 1 being the arm angle, and the other being the 90 degrees of the triangle you are using for calculation. you can use these knows values to work out the other 2 sides of the triangle, these other 2 sides will be what you add to the x and y position of the body to get the position of the arm.

thats probably not explained well, but thats what you use to work with angles like that in 2d.
8  Game Development / Newbie & Debugging Questions / Re: [Slick2D] Level Bar Algorithm in Slick2D on: 2014-04-18 23:42:36
it could be the problem with using integer division when youre trying to get a number between 0 and 1..
try casting things as float when you need some precision.
1  
g.fillRect(x, y, (float)(current / max) * 200, barHeight);
9  Games Center / WIP games, tools & toy projects / Re: THE DUKE!: SixtyGig - Open World Retro RPG. on: 2014-04-18 09:23:52
Quote
Boom done, you've just added an indigo colored glass bottle to my game, that will now spawn in all trashcans randomly.

Will you add a method so that people can release "mod packs"? ie: a single file that other users can download, stick in their game directory, turn on/off in options menu. And when it loads up it will slot entries into what ever parts of the game that it needs to. having to directly edit a variety of individual files will make it difficult for people to share their modifications.
10  Game Development / Newbie & Debugging Questions / Re: Force an image to render on top of another *regardless* of code excution order. on: 2014-04-17 02:25:55
cheat and render the blood twice. have several similar sounding situations in my game where i render them under 1 layer, then over another layer and it seems ok.
11  Game Development / Newbie & Debugging Questions / Re: [Level Editor] A few questions on concepts I'm not sure of. on: 2014-04-16 13:13:09
i still cant help thinking that it would be easier to use a tile map system, rather than the map being a big image.. its so much easier to alter and work with in general, especially for a  2d grid based game like this!
12  Game Development / Newbie & Debugging Questions / Re: Mouse Coords in a tiled world. on: 2014-04-16 02:06:19
my program has an issue like that when the window is different size than the view port, the drawing is scaled up and down nicely, but the mouse co-ords are still relative to the physical screen resolution.
13  Discussions / General Discussions / Re: Rendering a 2.5D game on: 2014-04-14 23:03:37
you could use a normal 3d world, but make the objects as flat polygons rather than fully solid models.
14  Game Development / Newbie & Debugging Questions / Re: Best way to do loading screens and resource management? on: 2014-04-14 07:11:21
can be a different story if you have a lot of/massive textures and need to dynamically load/unload to avoid running out of memory. I cant imagine myself getting to that point in any hurry.. my sprite sheets are still under 150kb Cheesy
15  Game Development / Newbie & Debugging Questions / Re: Best way to do loading screens and resource management? on: 2014-04-14 06:51:31
just display a splash screen, load all the resources, then cut to main menu. that should be fine if its only taking a couple of seconds to load.
16  Games Center / WIP games, tools & toy projects / Re: Poss-Engine - (Windows, Mac, Linux) on: 2014-04-14 04:12:41
nice shadow Smiley
17  Game Development / Game Mechanics / Re: Mathematical curves. on: 2014-04-12 11:47:57
try something like this perhaps. or multiply the speed by some value each loop.
1  
2  
3  
4  
5  
6  
7  
size = 0;
speed = 20;
while (size < maxSize){
    size += speed;
    speed -= 1;
    updateScreen();
}
18  Games Center / WIP games, tools & toy projects / Re: MoreTetris on: 2014-04-10 02:51:31
I wasnt very excited to play another Tetris game when i saw this, but its actually a very challenging variant! Because of the fact that the rows are so wide - you have to plan ahead very carefully.
19  Games Center / WIP games, tools & toy projects / Re: [Desktop] Fluffy Bunnies (New Demo!) on: 2014-04-09 23:20:32
It would not be difficult to add check points, but Im not sure it would quite work with the game? you could just keep crashing into the enemies and returning to the checkpoint untill they are all dead, or the game would have to save the game state for re-loading when you start again at a check point. Something like that could work with the longer levels. I suspect it will come down to level design, the levels shouldnt be made in a way that makes you feel like you needed a check point half way, they should all be able to be completed in a single run.
20  Games Center / WIP games, tools & toy projects / Re: [Desktop] Fluffy Bunnies (New Demo!) on: 2014-04-09 09:13:13
Finally, the demo is ready! I think I have tested it quite well, but please let me know if you find any bugs/etc. Also please let me know what you find annoying about the game, as this sort of game has the potential to frustrate and your input will be invaluable.

All 6 levels can be completed on normal difficulty!

https://www.dropbox.com/s/o2xr12jaepughhu/FluffyBunnies-0.2.0.jar (6.2MB)
21  Games Center / WIP games, tools & toy projects / Re: Fluffy Bunnies on: 2014-04-08 15:40:28
I was hoping to have my fully working demo ready to upload tonight, but it's 2am and it could do with another 3-4 hours work in the morning before I'm satisfied with it. Stay tuned for 6 levels of mind-bending mayhem, wasps, piranhas and fluffy bunny rabbits!
22  Game Development / Newbie & Debugging Questions / Re: How would you implement sokoban on: 2014-04-08 15:33:39
The 2d is the right way to go, but you dont have to fill it with integers. you can put your box and player objects in it, as well as other objects you want.

to do that you will have to create a super class for the various movable object types.
you have a class Mob{....}. It holds basic information like position, sprite, renderMethod(), etc. You can then make your 2d array as: Mob mobMap[][];

then you make a class for each type of object in the game:
PlayerMob extends Mob{....}
BoxMob extends Mob{....}
etc.
these can have their own additional behaviors, but they will still fit in together in your 2d array.

These concepts are very easy to find more information on, but hopefully it points you in the right direction.
23  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-08 07:48:27
can you do the following? i dunno how much time it would save by avoiding calling methods, and may be prone to errors:

1  
if (image[x][y].red == 255){
24  Game Development / Newbie & Debugging Questions / Re: Having trouble with ArrayList on: 2014-04-07 01:19:35
Don't forget, you can do the following:

1  
entities.add(new Player());
25  Game Development / Game Play & Game Design / Re: Text based strategy game examples? on: 2014-04-06 05:50:51
You struck gold there! what Genre would this be described as? I still can't find any other examples.. there must be some out there with more details to them.
26  Java Game APIs & Engines / Android / Re: streaming in 2d map on: 2014-04-05 07:07:30
Wow, that is an epic map!  Grin
27  Java Game APIs & Engines / Java 2D / Re: Java topics needed to learn game dev on: 2014-04-05 00:55:51
People often say learn the language before you start making games, this is good advice for any real game, but there's a lot to be learned from making mini games.

step 1: draw a square or an image on the screen and get it to move with the arrow keys.
step 2: add some things that the square has to run over to collect points.
step 3: add some things which move around semi-randomly and kill the player if they touch them.

You can do all this without knowing much about programming, but you will learn things about both programming in general and making games, by making little game-like programs. Each time you complete something simple you will come up with new ideas to try out based on the experience you are building up.
28  Game Development / Game Play & Game Design / Text based strategy game examples? on: 2014-04-04 13:27:51
Im trying to find an example of a type of game I used to make, but I cant seem to find the right keyword to search. It was a text based thing, where each second, your resources either increase or decrease depending on your actions and your environmental conditions. The goal is to build your stats high enough that you can attack the enemy player and kill off their population and/or take their resources.

There must be some games of that genre around, since it only takes a few hours for a beginner to code one.
29  Discussions / General Discussions / Re: Are there any artists on this forum? on: 2014-04-04 05:47:11
I find it much easier to draw on paper than on the computer.

30  Games Center / WIP games, tools & toy projects / Re: NEW VIDEO: SixtyGig - Open World Retro RPG. on: 2014-04-04 01:17:54
But, not wanting to annoy you, the ground tiles perspective.

How can the perspective be improved on an orthographic projection?
Pages: [1] 2 3 ... 7
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (53 views)
2014-04-15 18:08:23

BurntPizza (51 views)
2014-04-15 03:46:01

UprightPath (65 views)
2014-04-14 17:39:50

UprightPath (47 views)
2014-04-14 17:35:47

Porlus (65 views)
2014-04-14 15:48:38

tom_mai78101 (89 views)
2014-04-10 04:04:31

BurntPizza (149 views)
2014-04-08 23:06:04

tom_mai78101 (245 views)
2014-04-05 13:34:39

trollwarrior1 (203 views)
2014-04-04 12:06:45

CJLetsGame (210 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!