Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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 ... 6
1  Game Development / Newbie & Debugging Questions / Re: Sprite not being drawned where i ask to be. on: 2013-05-25 03:01:54
I can't see anything wrong with the classes quickly, it has too be how you are creating the explosion.

I'm going to assume, you are feeding in random positions into the method instead of the enemy's location

1  
new Explosion(sm, enemy.xPos, enemy.yPos);


That will render it to where the x and y pos are, but if u wanted it centered, you can add half the width to xPos, and half the height for yPos and it should be centered.
2  Discussions / General Discussions / Re: Weirdest Practical Programming Language on: 2013-05-11 15:55:08
HAI
is like the opening of the program, all LOLCODE words represent pretty much there meaning

HAI - hello, like a new coversation
CAN HAS - Can I have
KTHXBYE - Ok i am done now, thanks bye
AWSUM THX - it returned true, in this case, the file "LOLCATS.txt" was found
O NOES - something returned false - in this case, the file "LOLCATS.txt" was invalid
VISIBLE - make this visible for the user
INVISIBLE - like a System.out.println(); in your code for debugging purposes

in other words, try and translate it to engligh
before
1  
2  
3  
4  
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE


translated
1  
2  
3  
4  
new program
import STDIO
display message box "HAI WORLD"
terminate program.
3  Game Development / Newbie & Debugging Questions / Re: slick2d + eclipse setting problem on: 2013-05-11 02:36:28
You could have your Winrar or 7zip set to have .jar files open as a archive instead of with java, making you think you had to extract it.
4  Discussions / Business and Project Discussions / Re: Making Money From A Java Game on: 2013-05-06 05:28:13
And if I remember right, Valve does not take any of that $100, I believe it goes straight to charity (Atleast what I heard)
5  Game Development / Game Mechanics / Re: Arrow Bow Physics - Help! on: 2013-05-03 12:08:21

Not neccessarily a vacuum. Any area not effected by gravity will do. It just happens that matter tends to exist around objects that have strong gravity.

Now your getting further away.

Projectiles move in a perfect parabola due to the gravity, if gravity did not exist, the projectile would travel in a straight line in the angle you shoot.

Gravity will push down on the projectile, causing it to move in a parabola.

and to pjt33, not sure what a flatter path is, quick google search didn't return me anything useful, due to air resistance, it will not be perfect as the horizontal component will slow down, causing the flight path to not follow a parabola that is worked out without the the effect of air resistance.
6  Games Center / Contests / Re: Ludum Dare 26 starting 26th April! on: 2013-05-01 07:00:32
From all the good responses to my game so far, almost all comments say "great concept", soon I may actually add more features to the game.

Probably add particle effects to the jetpack (not sure what else other then jetpack could do with particles).
Redo the Tone Tiles sound, so it is a bit easier to differentiate the sounds.
Multi Tone doors.
Make the player spawn closer to the door in each level, some did not like the repetitiveness of having to move to the door, then move all the way back through the level to find the tone (later levels, you do spawn near a door) 
7  Games Center / Contests / Re: Ludum Dare 26 starting 26th April! on: 2013-04-29 08:47:58
well, the jar file is named hexagion.jar.

Soo it gives the error:

Error: Unable to access jarfile pathToFile/game.jar
8  Games Center / Contests / Re: Ludum Dare 26 starting 26th April! on: 2013-04-29 08:31:02
Your run-windows.exe file is pointing to game.jar by the way!
9  Games Center / Contests / Re: Ludum Dare 26 starting 26th April! on: 2013-04-29 03:27:50
Here is mine, it is called Tune Locks, I literally had no idea what to make, so I just made this XD, if only it was parallel worlds, had a great idea, maybe ill turn it into a game still Smiley

http://www.ludumdare.com/compo/ludum-dare-26/?action=preview&uid=10780

10  Game Development / Newbie & Debugging Questions / Re: shooting is working but ... on: 2013-04-27 03:52:40
cast the x and y variables to a int in the drawing

1  
g2d.drawRect((int)gun.getX(), (int)gun.getY(), gun.getW(), gun.getH());
11  Game Development / Newbie & Debugging Questions / Re: Easy way to click an image on: 2013-04-25 16:19:07
Im sure you have a Input Handler of some sought, that handles muse and keyboard presses.

If you do not have an InputHandler, research that first.

Now you have your InputHandler, the simplest way, would to check if the cursor is within a region e.g. a rectangle or square, once determined the cursor is within the rectangle, you should then check for a mouse clicked.

You should have a class called Button, that will have a render and update method, that you update in your menu screen class.

Inside the update method you would have this

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
public void update(InputHandler input){
if(( input.mouseX > image.getX() && input.mouseX < (image.getX() + image.getWidth()) )
       && (input.mouseY > image.getY() && input.mouseY < (image.getY() + image.getHeight() )){

if(input.leftMouseButtonClicked == true){
System.out.println("The button works!");
//change screen code here
}
}
}


The first if statement checks to see if the mouse cursor is within a rectangle of the size of the image, if it is, it will then checked it the mouse is clicked it will then proceed and change the screen, in this case print "The button works!".
12  Game Development / Game Play & Game Design / Re: Destructible/deformable terrain help on: 2013-04-22 12:18:46
If you want it tile based, just created a 2 dimensional array of tiles, each tile will have their co ordinates and texture.

When something collides with the tile have a for loop that checks around the tile to see what tiles to remove.
13  Games Center / WIP games, tools & toy projects / Re: A Java scripting language -- Leola on: 2013-04-21 17:01:04
Try and scavenge those extra minutes over the 48 hours or even the 72 hour jam, even if the game is not great or hardly fits the theme, put it up, just mention you did not have the time, and you were able to produce this in x amount of time.

If not post up on the website anyway, mention the language, someone may like it and start following its progress, maybe even enter the next LD with it.
14  Games Center / WIP games, tools & toy projects / Re: A Java scripting language -- Leola on: 2013-04-21 16:42:59
You should enter Ludum Dare 26 with Leola, mention you created the language, give a link to the download in a "im in" post, and make a good game to show it off for the event, you may get a bit bigger community supporting it.
15  Games Center / Cube World Projects / Re: Sparky's little Cube World Project on: 2013-04-21 09:01:02
missed the to tell you if its fixed bit, and yes it is fixed. Smiley
16  Games Center / Cube World Projects / Re: Sparky's little Cube World Project on: 2013-04-20 16:06:08
benCraftAlpha3_17_E.jar is what i downloaded (in case you put up a wrong file)



Had to cut down the size of the image, so I only posted the main bits, In Australia we have usage caps, and I capped mine, but it should be reset on the 23rd. I'm wondering how I managed to survive on dial up lol
17  Games Center / Cube World Projects / Re: Sparky's little Cube World Project on: 2013-04-20 15:11:33
There seems to be a 1 pixel gap between each triangle, your able to see the lines of where they connect, you should add that to your to fix list.
18  Game Development / Newbie & Debugging Questions / Re: [Eclipse] Better way of organising Package Explorer? on: 2013-04-17 11:43:43
You can switch work spaces, create a new folder somewhere, and press switch work space under file.

I think this is the only way or at least the easiest.
19  Game Development / Game Mechanics / Re: Arrow Bow Physics - Help! on: 2013-04-16 15:51:03
Search of Projectile Motion will give you all the formulas.

http://www.youtube.com/watch?v=5ehanc7sQdY

Seems alright so far, gives the equations, what some of the variables are and does examples.

If you asked like 6 months ago, I would of been able to give you the formulas soo much easier with a explanation, I learnt projectile motion in physics last year.

EDIT: Projectiles travel in a parabola.
20  Discussions / Miscellaneous Topics / Re: Raspberry PI + Minecraft on: 2013-04-16 09:37:33
I believe it runs the mobile version of minecraft, not 100% sure, but I think it does.
21  Discussions / Miscellaneous Topics / Re: Razar Black Widow Ultimate! DEAD! on: 2013-04-16 02:53:03
You can remove each key individually, I have a black widow too, just grab a ID, gift card etc (something plastic) put it behind the back of the key, and kind of turn the side of it upwards (turn the ID, gift card etc, clockwise), the key should then pop out.

The space bar and backspace have a bar across it, I think you can take it off normally, but i am not sure.
22  Games Center / Contests / Re: Ludum Dare 26 starting 26th April! on: 2013-04-15 05:50:22
one theme and is announced as soon as it starts. You can vote for the theme you want when they have the polls up.
23  Game Development / Newbie & Debugging Questions / Re: How to use character images? on: 2013-04-14 07:18:01
LibGDX should have a animator class, just read up about it, I don't know much about LibGDX but I am sure it has one.
24  Game Development / Newbie & Debugging Questions / Re: Time based movement / deltaTime / Event Timing ? on: 2013-04-12 15:37:50
Not all phones are equal, I don't think its really worth even trying to make every phone render at the same time.

Your "bigger smart phone" may have more background app's running then your "smaller smart phone", this would alter the speed as your phone would be running some background tasks, try closing everything but your game on both devices.

The hardware in the "smaller phone" could be better then in your "bigger phone" or your smaller phone just requires less processing time for its general things, (maybe less things need updating in the smaller phone).

Conclusion: If you try testing the delta time on different computers, you will also notice that every computer will give a different number, Delta is there to help fix the speed of the game for slower computers, the faster your computer is going, the less the delta value will be, meaning if you had a free loop, the delta value SHOULD make the movement of objects stay constant or pretty close between devices, despite the value of delta being greater or lower on one computer.

EDIT: Maybe your screen is a different resolution, your "bigger smart phone" probably has a higher resolution then your smaller phone.

Meaning the cube in the "smaller smart phone" has less distance to travel to the other side of the screen.
25  Game Development / Newbie & Debugging Questions / Re: AABB - checking collisions on: 2013-04-08 11:46:47
Only check collision with the blocks around you, so up, down, left, right. anywhere where the place could collide, like its impossible for the player to be colliding with a object separated by 10 blocks.
26  Discussions / Miscellaneous Topics / Re: Molydoors on: 2013-04-08 10:03:24
Haha oh god @PeterMolydeux. I didn't know people actually attempted his crazy ideas.

Well this was really impressive, nice!

There was actually a game jam for him, have 48 hours (i think 48) to make a game based off any one of his tweets.
27  Game Development / Newbie & Debugging Questions / Re: Having trouble loading a brick level on: 2013-04-06 04:26:09
You have empty parts of the array because your only setting what is not 0, when your drawing you will have to check its not null

1  
2  
3  
If (block[x][y]] != null){
//draw
}

Or set the block to a air block which the remeer method doesn't draw anything
28  Game Development / Performance Tuning / Re: Speeding up Minecraft? on: 2013-04-05 05:48:19
each block (since 1.5) has now got its own image file instead of located on a sprite sheet, this allowed them to have there own texture pack support for higher resolutions images.

The multiple texture binds may cause a bit of a frame rate drop, maybe you could hack in a way to convert the image to a sprite sheet too allow for only one bind.

*NOTE*
I have not looked at the code, but if you look for the textures in the jar file, you will see each item / block has its own file since 1.5.
29  Games Center / Featured Games / Re: Heroes of Loot on: 2013-04-04 11:58:31
OpenGL is GPU based, your graphics card has to support it.
30  Games Center / Cube World Projects / Re: [Optimization] View Frustum Culling on: 2013-04-01 08:07:21
update the chunk when a block is broken
Pages: [1] 2 3 ... 6
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (125 views)
2013-05-17 21:29:12

alaslipknot (133 views)
2013-05-16 21:24:48

gouessej (163 views)
2013-05-16 00:53:38

gouessej (155 views)
2013-05-16 00:17:58

theagentd (168 views)
2013-05-15 15:01:13

theagentd (153 views)
2013-05-15 15:00:54

StreetDoggy (197 views)
2013-05-14 15:56:26

kutucuk (221 views)
2013-05-12 17:10:36

kutucuk (220 views)
2013-05-12 15:36:09

UnluckyDevil (224 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.174 seconds with 20 queries.