Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
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   
Pages: 1 ... 8 9 [10]
 on: 2014-04-18 23:45:12 
Started by SwordsMiner - Last post by SwordsMiner
Hey guys, I am once again here because I am stumped on something. In my game, I want to calculate the position of the end of the arm, if you can imagine this, I have the arm rotation angle (from the center of the body), and I have the distance of the arm. Can someone point me in the right direction or give me some pseudo code.

 on: 2014-04-18 23:45:09 
Started by Jacob Pickens - Last post by Jacob Pickens
It worked! Thank you so much. I was getting so worked up over this. Turns out it wasn't some major error. Just a lack of understanding of the language. Tongue Anyways, thanks Nitro.

 on: 2014-04-18 23:42:36 
Started by Jacob Pickens - Last post by LiquidNitrogen
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.
g.fillRect(x, y, (float)(current / max) * 200, barHeight);

 on: 2014-04-18 23:41:04 
Started by johnnyJava - Last post by Jacob Pickens
hmmm... I would just use

Wait or maybe...

Make a class and name it tile. Then have a class that holds all the tiles in an array list. Then in that class you could have a draw method. And in each tile there would be a draw method.

In that draw method would be something like this:

System.out.printf("|%s|", value);

S being the value of the tile. (X or O)

Hope this helped! Tongue

 on: 2014-04-18 23:40:21 
Started by Shane75776 - Last post by Shane75776

+Re-did how the "Standard" game mode and all future game modes will work. You will now be able to see the next
rain block that is going to spawn and you have full control to where that block spawns by pressing the corresponding
columns button.

+Added a mute button

 on: 2014-04-18 23:36:52 
Started by johnnyJava - Last post by johnnyJava
If I want to make a game board like tic tac toe, should I use string + concatenations, stringbuilder, console.print?  Something else?

Please don't write it for me.  I wand to do it Smiley.  But what would you use to build a board from regular ascii characters?

 on: 2014-04-18 23:32:00 
Started by Jacob Pickens - Last post by Jacob Pickens
Here is my code:

public void draw(Graphics g) {
   g.fillRect(x, GuiController.guiY, 200, 32);
   g.drawRect(x, GuiController.guiY, 200, 32);
   g.fillRect(x, GuiController.guiY, (PlayerStatController.xp / PlayerStatController.xpToGet) * 200, 32);

PlayerStatController is a class with static player variables and GuiController is basically a simple ArrayList class thing.

Anyways, when I run this code, theXP is increased, but the bar never changes. Therefore, you can't see the change in your XP.

I've already looked a few tutorials and the code looked something similar to this:

int barWidth = 200;
int max = 100;
int current = //Current health
g.fillRect(x, y, (current / max) * 200, barHeight);

I tried to incorporate this as best as I could into my game. I think I put it in correctly, but it still isn't working. So, I turned to you awesome guys.

 on: 2014-04-18 23:29:03 
Started by ImTroyMiller - Last post by bilznatch
Pretty sure the majority of successful developers haven't made a lot of money based off per-sale profit, but rather through many sales/customer loyalty.

 on: 2014-04-18 23:24:38 
Started by ImTroyMiller - Last post by ImTroyMiller
Doesn't Google Play keep 60% of the profits?

I was thing about taking some screen shoots and a video, and presenting it here.

I'm very new at all of this, but I like my game a lot.  It's unique.

 on: 2014-04-18 23:09:54 
Started by ImTroyMiller - Last post by Drenius
You could (just an idea) publish it here.

Pages: 1 ... 8 9 [10]

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 (48 views)
2014-04-15 18:08:23

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

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

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

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

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

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

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

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

CJLetsGame (207 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 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!