Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (138)
games submitted by our members
Games in WIP (594)
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 ... 16
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-15 00:19:00
Happy Birthday death_angel! Grin

Today I created a github repository for all of my shared code. You can download the code and demo for my DNA simulation tool.

Link to GitHub Smiley
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-10 01:53:23
Added a little interest into the trees and drawing parents to show resemblance. (left permanent  parent-> mutates every so often; middle-> random parent 2; right -> child)
Gfycat Link to gif
Click to Play
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-08 03:30:44
I created a system for simulating DNA and decided to generate trees. Basically, that jagged line is a graph of the dna sequence with every hill and valley corresponding to an "A", "T", "C", or "G". Every few generations, a mutation will pop up that can drastically or barely change the look of the tree. This is not, however, limited to just trees. With some work, one could easily make a semi-accurate representations of pedigrees for a family.



Right now the trees aren't all that pretty but the program gets the job done so I am happy.
4  Discussions / Miscellaneous Topics / Re: The Escapist! on: 2015-01-04 02:41:47
I don't understand how you can be learning how to become an independent developer with the eventual goal of making money off of your games and promote the pirating of other games. How can you think that developers don't care about their product? Independent companies don't have a lot of money to begin with so every pirated download your video promotes can really hurt an indie company. In addition,  your videos tarnish your reputation among game developers and players alike. Here's my advice, delete the videos on pirating games, remove any links to any files you have off the internet, and take being an indie developer seriously.

(plus, why would you put a video on how to pirate Far Cry 4 on your channel. I'm sure a big name publisher like Ubisoft really doesn't appreciate that)
5  Java Game APIs & Engines / Java 2D / Re: Draw BufferedImage to panel on: 2015-01-03 18:24:45
Where is "res" in the project? if it is the src folder you must have "src" before "/res"
6  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-02 16:13:56
Can't there be AAA Pc only games? Is Star Citizen not a AAA game? (although not java) I always thought that a AAA title just had to be made by a large enough studio. Where is the line between and indie company and a AAA company?
7  Game Development / Networking & Multiplayer / Re: Read keyboard input for chat on: 2015-01-02 02:35:42
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
   class KeyInput extends KeyAdapter {
      public void keyPressed(KeyEvent evt) {

         if (frame.isVisible()) {
            if (evt.getKeyCode() != KeyEvent.VK_CONTROL
                  && evt.getKeyCode() != KeyEvent.VK_RIGHT
                  && evt.getKeyCode() != KeyEvent.VK_LEFT
                  && evt.getKeyCode() != KeyEvent.VK_UP
                  && evt.getKeyCode() != KeyEvent.VK_DOWN) {

               if (evt.getKeyCode() != KeyEvent.VK_ENTER) {

                  if (evt.getKeyCode() != KeyEvent.VK_BACK_SPACE) {
                     if (evt.getKeyCode() != KeyEvent.VK_SHIFT) {
                        line += evt.getKeyChar();// getKeyChar() returns char of key pressed
                     }
                  } else if (display.line.length() > 0) {
                     line = display.line.substring(0,
                           display.line.length() - 1);//backspace
                  }
               }else{
                                             //do chat stuff here
                                        }
            }
         }
      }
   }


This is what I used in my shell program. Just add an instance of KeyInput to the jframe and display "line"
8  Discussions / Miscellaneous Topics / Re: Motorola Moto G, Any Problems? on: 2014-12-28 20:37:51
Are those results on Lollipop or KitKat? BC I heard Lollipop greatly increases performance.
9  Discussions / Miscellaneous Topics / Motorola Moto G, Any Problems? on: 2014-12-28 18:23:47
Hey guys, so I was thinking about getting an unlocked moto g but I want to be sure that the phone is the right choice so if you own/owned this phone can you give me a short review with an emphasis on gaming and development. (Bonus points if running on Android L)

Thanks
10  Game Development / Game Mechanics / Re: Making a 3D camera on: 2014-12-25 15:08:52
Take a look at this Wikipedia article on 3d projection. (the diagram at the end helped me the most but everything is important)
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-25 14:50:43
gifCam also messed up for me so I switched to LICEcap
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-23 08:57:21
(snip...)
Am I able to use that?
I have been needing someone to map out a PS controller...

Yep, wouldn't post it otherwise  Wink
13  Games Center / Contests / Re: TAFSJ - The Actually Finish Something Jam on: 2014-12-23 06:15:43
Here is progress for today(warning: 21.9mb gif; click here for still image):

Click to Play


To be continued next week!
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-23 04:43:47
Just fixed the libgdx controller button mapping for a PS3 controller and I couldn't find it anywhere on the internet so I decided to post here for future refference: (tested on nyko controller):
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
import com.badlogic.gdx.controllers.PovDirection;

// This code was modified for PS3 Controllers from http://www.java-gaming.org/index.php?topic=29223.0
// With thanks that is!

public class PS3Pad
{
    public static final int BUTTON_X = 2;
    public static final int BUTTON_O = 1;
    public static final int BUTTON_TRI = 0;
    public static final int BUTTON_SQR = 3;
    public static final int BUTTON_SELECT = 8;
    public static final int BUTTON_START = 9;
    public static final PovDirection BUTTON_DPAD_UP = PovDirection.north;
    public static final PovDirection BUTTON_DPAD_DOWN = PovDirection.south;
    public static final PovDirection BUTTON_DPAD_RIGHT = PovDirection.east;
    public static final PovDirection BUTTON_DPAD_LEFT = PovDirection.west;
    public static final int BUTTON_LB = 4;
    public static final int BUTTON_L3 = 8;//unknown / untested
    public static final int BUTTON_RB = 5;
    public static final int BUTTON_R3 = 9;//unknown / untested
    public static final int AXIS_LEFT_X = 1; //-1 is left | +1 is right ; actually right stick
    public static final int AXIS_LEFT_Y = 0; //-1 is up | +1 is down ; actually right stick
    public static final int BUTTON_LEFT_TRIGGER = 6; //value 0 to 1f
    public static final int AXIS_RIGHT_X = 3; //-1 is left | +1 is right ; actually left stick
    public static final int AXIS_RIGHT_Y = 2; //-1 is up | +1 is down ; actually left stick
    public static final int BUTTON_RIGHT_TRIGGER = 7; //value 0 to -1f
}
15  Games Center / Contests / Re: TAFSJ - The Actually Finish Something Jam on: 2014-12-23 03:40:19
How cool I just started on a top-down shooter! Don't know if it will be finished this year though since I can't develop this week. But I'll attempt it!  Grin
16  Game Development / Newbie & Debugging Questions / Re: Kryonet Libgdx Android? on: 2014-12-17 17:34:48
Research port forwarding  Smiley

And dedicated servers
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-17 03:06:14
I spent the day doing this in Java2D Tongue (11mb gif)
Click to Play

(link)
18  Game Development / Newbie & Debugging Questions / Re: Positive z-value flips 3d program (Pure Java) on: 2014-12-16 01:44:08
Oh ok, I fixed it now thanks! One more question, how can I make a 3d point rotate around another point? My current method doesn't work:

1  
2  
3  
4  
5  
6  
7  
   public void rotateYAround(double angle, Vector3 origin) {
      if (angle != 0) {
         Float oldZ = (float) xyz[2];
         /*z*/xyz[2] = (float) ((xyz[2]-origin.z()) * Math.cos(angle) - (xyz[0]-origin.x()) * Math.sin(angle));
         /*x*/xyz[0] = (float) ((oldZ-origin.z()) * Math.sin(angle) + (xyz[0]) * Math.cos(angle));
      }
   }
19  Game Development / Newbie & Debugging Questions / Positive z-value flips 3d program (Pure Java) on: 2014-12-15 23:41:01
Hey guys,

so I have been coding a 3d projection in Java2D (don't judge me, testing purposes only  Pointing) and I ran into this problem: when the camera Z is greater than 0, the program flips and acts in reverse(see gif) when in reality, the camera should just pass the cube. Any ideas.

Click to Play


This converts 3d points into 2d for drawing
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
   public Vector3 processPoint(Vector3 point) {//point : the original point
      Vector3 projection = new Vector3();//output point

      if (orthographic) {
         projection.xyz[0] = position.x() + this.position.x();//position : the camera position ->Vector3
         projection.xyz[1] = position.y() + this.position.y() + position.z();
      } else {

         double zdis = point.z() - position.z();
         if (position.z() > 0) {
            Math.abs(point.z() - position.z());
         }
         point.rotateXAround(Math.toRadians(rotX), position);//rotX = 0
         point.rotateYAround(Math.toRadians(rotY), position);//rotY = 0
         point.rotateZAround(Math.toRadians(rotZ), position);//rotZ = 0

         projection.xyz[0] = ((-position.x() + point.x()) * (MainWindow.frame
               .getWidth() / zdis)) + MainWindow.frame.getWidth() / 2;//new x value
         projection.xyz[1] = ((-position.y() + point.y()) * (MainWindow.frame
               .getHeight() / zdis)) + MainWindow.frame.getHeight() / 2;//new y value

      }
      return projection;//this works great with camera z values below 0

   }
20  Discussions / General Discussions / Re: am thinking of getting this PC, for both gaming and developing on: 2014-12-09 02:22:48
Was seriously considering building own, but even with cost savings (debatable) there's the matter of buying software for OS. Otherwise, it could be very fun and interesting.

Linux is free, and Windows 8 is around 35-55€

If this is for gaming, I would suggest getting Windows and maybe dual booting with Linux since many popular games (like Watch_dogs) do not support Linux. But if you are getting Linux, I suggest Xubuntu because it looks nice.  Roll Eyes
21  Games Center / Showcase / The Arena - text-based Arena Combat Game! on: 2014-12-09 01:27:05
Hey guys!

I would just like to share my first pretty much completed (I'm going to add armor) game: The Arena.

From the manual:
"The Arena is a text-based adventure game where the player must face randomly generated monsters in an attempt to destroy as many as possible."


So enjoy and feedback is most welcome!  Grin

Download

Link to Manual

22  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-05 03:28:19
worked on a battle system:
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-04 11:36:01
Did some text adventure test in my console program.

Awesome! Love the animation!
What are you using for the graphics? A blur & old CRT scan lines could add some polish and stand out.
Thank you! Unfortunately, I'm using Java Graphics2d in order to draw so I don't know how I would replicate crt without shaders
24  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-04 04:10:25
Did some text adventure test in my console program.
Click to Play

Edit: Also ordered new Graphics Card
25  Game Development / Newbie & Debugging Questions / Re: Declaring variables a lengthy way..? on: 2014-12-03 11:46:18
Because the order of operations will output a different number for each.
According to the order of operations and assigning current_level to 400, the first problem will output
1  
39040
since
1  
400/4 = 100
then
1  
100*384 = 38400
and
1  
 38400+640 =39040
but the second problem will output
1  
.1838
since
1  
400 / 2176 = .1838
. However, if you wrapped the second part of the first problem in parenthesis, the output will be .1838 because it will calculate everything in the parenthesis before dividing it by currentlevel
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-01 04:59:16
greatly increased voxel capacity  + did some lighting:
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-26 02:02:14
Did some anaglyphing (red:cyan glasses needed):
28  Game Development / Newbie & Debugging Questions / Re: [libgdx] 3d anaglyph with 2D texture on: 2014-11-25 04:23:45
Anyone? Is there any way of doing this? Ok how about this: Is the there any way where I can render two overlapping images without them blending or overpowering each other?
29  Game Development / Newbie & Debugging Questions / [libgdx] 3d anaglyph with 2D texture on: 2014-11-24 23:53:45
Ok, so I have a voxel engine and each voxel contains an x,y, and z value for position. However, each voxel is not a 3d model and is only 3d in the sense that I am adding the z value to the y value to give the illusion of depth. How would I make it so that I can render these voxels in red : cyan 3d with the y and the z (the 2 depth coords) values as my depth. 

voxel cubes right now:


(Sorry if this question is badly worded)
30  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-23 05:14:03
Started on a GUI library for LibGDX

Are you using gdx-freetype for the text rendering, or did you write that yourself?

I'm just using an unmodified BitmapFont for text rendering at this point. When I implement custom fonts, I will switch over to a freetype system
[EDIT]
Sorry to burst your bubble, but LibGDX already has a UI library. But you are still free to make your own Smiley

CopyableCougar4

I know but I don't like it so I decided to make my own
Pages: [1] 2 3 ... 16
 

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

The first screenshot will be displayed as a thumbnail.

theagentd (11 views)
2015-01-28 15:33:52

GamerIDGoesHere (24 views)
2015-01-27 01:23:23

GamerIDGoesHere (23 views)
2015-01-27 01:22:15

CopyableCougar4 (29 views)
2015-01-27 00:34:41

CopyableCougar4 (19 views)
2015-01-26 04:47:56

Olo (14 views)
2015-01-25 21:26:00

Olo (17 views)
2015-01-25 18:44:22

Robo11 (32 views)
2015-01-25 06:14:26

basil_ (28 views)
2015-01-17 22:29:32

wxwsk8er (27 views)
2015-01-16 21:42:21
2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17
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!