Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (593)
Games in Android Showcase (168)
games submitted by our members
Games in WIP (646)
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 ... 17
1  Games Center / Showcase / Re: The Arena - text-based Arena Combat Game! on: 2015-06-27 00:47:02
Updated The Arena: Download

Change Log:
+ better controls
+ more animations
+ balance changes
+ More Items

Have fun!

2  Game Development / Newbie & Debugging Questions / Re: Tile by tile lighting light wont change from white? on: 2015-06-26 20:58:57
my method will not work for you because Im not actually calculating distance from my lights. All of my lighting is created from editing the r,g and b values and editing the intensity of lights. It give me less control over my lights but I get pretty lights plus I can make shadows from the absence of light without any raycasting
3  Game Development / Newbie & Debugging Questions / Re: Tile by tile lighting light wont change from white? on: 2015-06-26 20:49:10
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  
         r = 0;
         g = 0;
         b = 0;
         intensity = 1f;
         if (north != null) {
            r += north.r * north.intensity / (damp + elevation);
            g += north.g * north.intensity / (damp + elevation);
            b += north.b * north.intensity / (damp + elevation);

         }

         if (south != null) {
            r += south.r * south.intensity / (damp + elevation);
            g += south.g * south.intensity / (damp + elevation);
            b += south.b * south.intensity / (damp + elevation);
         }

         if (west != null) {
            r += west.r * west.intensity / (damp + elevation);
            g += west.g * west.intensity / (damp + elevation);
            b += west.b * west.intensity / (damp + elevation);
         }

         if (east != null) {
            r += east.r * east.intensity / (damp + elevation);
            g += east.g * east.intensity / (damp + elevation);
            b += east.b * east.intensity / (damp + elevation);
         }


Damp is the constant I mentioned earlier (Which has to be at least 4) and elevation is something else that isn't really important.

Notice I reset my color values before this all happens that's because each tiles does this individually. I don't have a mixing color class.

edit: And then I limit each value to 1 and 0
4  Game Development / Newbie & Debugging Questions / Re: Tile by tile lighting light wont change from white? on: 2015-06-26 20:44:51
Click to Play


to mix colors in my program I add the color values of all neighboring tiles and then divide by a constant.
5  Game Development / Newbie & Debugging Questions / Re: Tile by tile lighting light wont change from white? on: 2015-06-26 20:32:43
Are your light values from 0 to 1 or from 0 to 255? because if it is from 0 to 1, going over 1 may mess up the color.
6  Game Development / Newbie & Debugging Questions / Re: Tile by tile lighting light wont change from white? on: 2015-06-26 20:28:11
Dont multiply your light values try adding them.
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-26 20:14:38
Did some work in Shel*:

Click to Play


Working on releasing a library so that text adventure games can be made with it but I'm not sure when.
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-25 03:02:53
Discovered Cowboy Bebop  Cheesy
Edit: not entirely programming related but it is a pretty good anime
9  Discussions / Miscellaneous Topics / Re: [All Gone] - Free game/addon keys! :) on: 2015-06-17 12:45:20
Thanks for the key!  Smiley
10  Discussions / Miscellaneous Topics / Re: Free game/addon keys! :) on: 2015-06-17 01:40:41
can i get company of heroes please?
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-11 03:20:35
I had fun uninstalling and reinstalling my nvidia drivers because the Nvidia control panel wouldn't open. All fixed now  Grin
12  Discussions / Miscellaneous Topics / Re: How well does this work? on: 2015-06-10 02:49:08
Im in the 180's 4gb ram, amd fx-4100, gtx 660 - chrome
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-09 04:29:27
I discovered MGMT  Smiley

Also I have played a total of 23 hours of Retro Pixel Castles which is a lot for me since my most played game is Civilization 5 which I got years ago and yet only clocks in at 75 hours. And I only have 34 hours clocked on Skyrim.
14  Discussions / Miscellaneous Topics / Re: What kind of keyboard do you code on? on: 2015-06-08 14:55:36
Imagine the most generic Dell keyboard around and you would have my keyboard  Tongue
15  Discussions / General Discussions / Re: Rayvolution's JGO Appreciation Thread (AKA: Free copies of Retro-Pixel Castles!) on: 2015-06-02 11:02:09
Can I get one please  Smiley
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-27 22:39:20
I did some work on the Arena  Grin and got a new high score ->
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-24 22:58:35
tested out an extremely simple city generation algorithm
18  Games Center / Android Showcase / Re: Tura on: 2015-05-08 23:10:30
I just finished an update blast that'll improve the Tura! I'm now thinking about working on a leaderboard. If you have tried out Tura, some feedback would be much appreciated Pointing, if you have not tried Tura... What are you waiting for!  Grin

Version 2.3 (latest) Change log from Version 1:
- Missing a dot and tapping white space now results in a small time and point penalty
- Dots are bigger
- Ad timings adjusted
- Added Rating pop-up to drive ratings
- Various bug fixes and improvements

You can download Tura above or here: Tura on Google Play
19  Games Center / Android Showcase / Tura on: 2015-05-07 02:05:26
Hey guys, I just released my first app, please check it out:

Tura on GooglePlay  Pointing


From Google play:
Quote
Tura is as simple as it gets. Simply tap the dots until they disappear. Tapping a dot is worth 1 with an additional point when a dot is cleared. Missing a dot and tapping white space will result in a small point and time penalty. The goal is just as simple, aim for a high score with as much accuracy as possible!



Qr code:
20  Games Center / WIP games, tools & toy projects / Re: Pantless Hero on: 2015-05-04 01:59:56
You should add diffraction in the crystals  Pointing that would look amazing (esp with larger crystals)
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-04 00:25:14
I published my first app today  Grin. find it here-> Tura It is VERY simple to play. I hope you guys enjoy it.
22  Games Center / WIP games, tools & toy projects / Re: 2D Terrarian engine on: 2015-04-27 03:29:21
Just a post to say that I have resumed work on this (I took a break because school got a little hectic last week) Cheesy

(rotating entities)
Click to Play
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-04-21 20:06:25
@opiop65 Pssst... Android Studio  Pointing
24  Games Center / WIP games, tools & toy projects / Re: 2D Terrarian engine on: 2015-04-18 15:17:34
Thanks guys. I've been away since Wednesday so that's why I haven't posted anything but I will continue development when I get back on Sunday.
25  Game Development / Newbie & Debugging Questions / Re: Rotation Problem on: 2015-04-14 02:09:07
rx and ry are the rounded (to the grid) versions of the entities position to ensure the pixel stay locked into the grid. They are float values.
[edit]
And catching AIOOBE is nasty.
Yeah I know, I'll fix that when I actually start optimizing
26  Game Development / Newbie & Debugging Questions / Re: Rotation Problem on: 2015-04-14 02:02:30
Oh, Yeah it casts the float to an integer. I do it this way to keep some clutter out of the main code.
1  
2  
3  
4  
5  
6  
7  
8  
9  
public static Tile get(float x, float y) {
      Tile got = null;
      try {
         got = tiles[(int) x][(int) y];
      } catch (ArrayIndexOutOfBoundsException e) {
         return null;
      }
      return got;
   }
27  Game Development / Newbie & Debugging Questions / Re: Rotation Problem on: 2015-04-14 02:00:01
Thanks for the replies! I'm going to look over these sources and try this stuff out!
@BurntPizza Game.get return the tile located at the coordinates specified
28  Game Development / Newbie & Debugging Questions / Rotation Problem on: 2015-04-14 00:17:47
So i have this problem when rotating entities in my program. It seems some tiles are omitted from the rotation in any degree value that is not 90,180,270, or 360. Which I kinda expected, but I can't figure out how to fix it.  Huh
Click to Play


I am rotating a 2d array of tiles:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
for (int x = 0; x < texture.getTexture().getWidth(); x++) {
         for (int y = 0; y < texture.getTexture().getHeight(); y++) {
           
            Vector2 rotate = rotate(new Vector2(x-width/2,y-height/2));//Rotate points about center
            float x1 = Math.round(rotate.x+width/2);//round and translate
            float y1 = Math.round(rotate.y+height/2);//round and translate
            Tile t = Game.get(this.rx / Tile.gridSize + x1, this.ry
                  / Tile.gridSize + y1);//get grid tile
            Color c = texture.pixelData[x][y];//get grid color
            if (c.a > 0 && t != null) {
               t.type = Type.BLOCKED;//make sure tile is solid
               t.r1 = c.r;//assign color to tile
               t.g1 = c.g;
               t.b1 = c.b;
            }
            within[x][y] = t;//assign tile to list
         }
      }


rotation method:
1  
2  
3  
public Vector2 rotate(Vector2 point){ 
      return point.rotate(rotation);
}


Any help would be awesome!
29  Games Center / WIP games, tools & toy projects / Re: 2D Terrarian engine on: 2015-04-13 20:42:46
Yeah I know but I'm trying to challage myself a little by doing it this way.  Pointing
30  Games Center / WIP games, tools & toy projects / Re: 2D Terrarian engine on: 2015-04-13 20:30:49
Thanks,  I'm glad you like it Smiley
Pages: [1] 2 3 ... 17
 
deepthought (32 views)
2015-06-30 15:39:44

deepthought (36 views)
2015-06-30 15:39:09

deepthought (46 views)
2015-06-30 15:36:52

Za\'Anzabar (21 views)
2015-06-29 05:44:54

TritonDreyja (38 views)
2015-06-24 17:10:40

CopyableCougar4 (35 views)
2015-06-23 00:34:45

BurntPizza (39 views)
2015-06-21 20:36:46

cookiecompiler (82 views)
2015-06-11 15:42:53

cookiecompiler (45 views)
2015-06-11 15:41:14

NegativeZero (75 views)
2015-06-11 09:49:18
How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

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
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!