Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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 ... 15
1  Game Development / Newbie & Debugging Questions / Re: Kryonet Libgdx Android? on: 2014-12-17 17:34:48
Research port forwarding  Smiley

And dedicated servers
2  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)
3  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));
      }
   }
4  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

   }
5  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
6  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

7  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-05 03:28:19
worked on a battle system:
8  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
9  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
10  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
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-01 04:59:16
greatly increased voxel capacity  + did some lighting:
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-26 02:02:14
Did some anaglyphing (red:cyan glasses needed):
13  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?
14  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)
15  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
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-23 04:05:52
Started on a GUI library for LibGDX
Click to Play
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-18 00:59:02
Made a non-scientific redstonesk wire simulator with (from left to right): wire, source blocks, clocks, AND gates, and XOR gates.


Also what are some more essential systems used in creating computers other than a transistor? The goal is to be able to have all the tools to simulate hardware (like redstone), but my electrical/computer engineering knowledge is limited.
I intend to add:
- toggle blocks
- signal repeaters
- wireless receivers
- LEDs
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-12 23:31:19
Yeah apparently Ps, GIMP and ImageMagik (probably others too) have it.
Also attempts have been made to apply it to video:
*snip*
correct Youtube link is AJtE8afwJEg->
<a href="http://www.youtube.com/v/AJtE8afwJEg?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/AJtE8afwJEg?version=3&amp;hl=en_US&amp;start=</a>
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-08 17:06:44
Woo! Voxels!

Click to Play
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-08 14:23:07
Accidentally graphed a conic in my voxel experiment:
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-03 19:19:42
Got my shell program running windows command prompt commands (not really shown in screenshot but it works!):

22  Games Center / WIP games, tools & toy projects / Re: Really a Markup Language (RML) on: 2014-11-03 03:50:08
double would be defining the variable while @var would be used to manipulate it. This is one of the parts I would like to change along with the syntax but I figured I would focus on changing the syntax before working on functionality.
23  Games Center / WIP games, tools & toy projects / Re: Really a Markup Language (RML) on: 2014-11-03 03:07:10
Thinking about making a syntax change:
1  
2  
3  
4  
5  
6  
7  
8  
9  
rml(class:Main){
   func(name:$main){
      double(name:hello, value:10);
      @var(name:hello, set:30);
      print(){
         Hello World
      }
   }
}


Any suggestions?
24  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-27 23:56:30
Did some work on my console library:
Click to Play


Added some animation and simpler project set up. Tongue
25  Game Development / Newbie & Debugging Questions / Re: Packing multiple PNG files into one file on: 2014-10-27 02:47:39
I hadn't thought about a sprite sheet  Yawn. I'll probably end up using that but I am still kind of curious how I would accomplish the original problem. I know that Gimp .xcf files have this functionality.

Also, can I convert a TextureRegion to a BufferedImage or at least get the hex color values from each pixel of a Texture Region?

26  Game Development / Newbie & Debugging Questions / Packing multiple PNG files into one file on: 2014-10-27 02:25:28
Hey guys,

So I have a fully functional 2D tile engine that loads map data from 2 png files for each layer of terrain. 2 files isn't that bad, but I am planning to add a Collision layer, an Object layer, and possibly a mob density layer (depending on how i do mob spawning), so there will be many different png files in one map folder. So I was wondering if I can pack multiple png files into one readable text file and convert that file back to Buffered Images on run-time.Conversion time should be considered but is not a priority.

Yeah so more of a development-side question, but a solution would be helpful  Grin

27  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-26 19:56:32
Added connected textures to my side project.


Also, does anybody else find themselves adding a semi-colon to the end of a sentence instead of a period?
[Edit]
Added Layers, changed picture
28  Games Center / WIP games, tools & toy projects / Re: Really a Markup Language (RML) on: 2014-10-20 10:40:39
Okay how about this:
RML is a language that kinda looks like XML and it doesn't have any immediate purpose for the general programmer but I don't care because this project was really just for fun.
29  Games Center / WIP games, tools & toy projects / Re: Really a Markup Language (RML) on: 2014-10-20 00:47:34
2. What language is not cluttered and confusing most of the time?
    - Html-> XML
I think what we're trying to get at here is that most consider XML to be extremely cluttered.

And that's where the problem stems because I find xml to be the least cluttered out of all the languages I know and I guess I'm in the minority.
30  Games Center / WIP games, tools & toy projects / Re: Really a Markup Language (RML) on: 2014-10-20 00:21:02
I don't see how:
1  
<double name="index" value="500"/>

is more readable than:
1  
double index = 500;


I see, I didn't really think about it like that.

My Thought Process:
1. Java can be cluttered and confusing to read sometimes
    - I should fix that
2. What language is not cluttered and confusing most of the time?
    - Html-> XML
3. Make something that looks like xml yet functions like java
    - RML was born

 Maybe "readable" is the wrong word, would "clear" (or "overly clear") be a better word?

Also, recursion is possible with the latest commit.
Pages: [1] 2 3 ... 15
 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (36 views)
2014-12-15 09:26:44

Mr.CodeIt (29 views)
2014-12-14 19:50:38

BurntPizza (61 views)
2014-12-09 22:41:13

BurntPizza (98 views)
2014-12-08 04:46:31

JscottyBieshaar (58 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (76 views)
2014-11-29 21:32:03

toopeicgaming1999 (137 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (37 views)
2014-11-26 15:20:08
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

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!