Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 4
1  Discussions / Miscellaneous Topics / Re: Game art for programmers with non-existent budgets on: 2014-07-26 09:45:02
Instead of making your own art, you could use the many free assets available around the internet. Sites such as www.opengameart.org offer lots of assets which you can use even in commercial games by doing as little as adding the authors' name in your credits. There's things like this 16x16 fantasy tileset and Kenny's incredible public domain assets.

A google search for public domain pixel art pops up a lot of great results. Good pixel art is reeeally hard to make. Luckily, this world has some nice people who give away their work for free. Cheesy
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-23 16:23:52
Made some progress on my Space Game: Gfycat link
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-20 23:49:24
@mag
That's really neat! Is it rendered in 3D or 2D? I'm guessing 3D by the shadows but I'm not sure. Also, are you using a noise function for that?
4  Game Development / Newbie & Debugging Questions / Re: Having a Problem with ArrayLists and Objects on: 2014-07-20 10:42:21
Instead of storing the objects' index for later, you could loop backwards from your fluidObjects array and remove the objects right then and there.

ex.
1  
2  
3  
4  
5  
6  
7  
8  
for(int i = 0; i < worldObjects.size(); i++) {
    for(int j = fluidObjects.size() - 1; j >= 0; j--) {
        if(shouldRemove) {
            fluidObjects.remove(j);
            continue;
        }
    }
}


I'm not sure why your code creates thousands of objects. Maybe worldObjects contains a ton of fluidObjects arrays for some reason?

I'd also avoid confusing variable names such as naming an ArrayList i because it's easier to forget the objects' purpose. Cheesy
5  Games Center / WIP games, tools & toy projects / Re: Project NAH - A sandbox survival platformer. on: 2014-07-15 22:46:51
Perhaps simply have the camera stop following the player once they reach an edge. Really nice project, by the way! One thing though, falling and jumping look very linear. I would suggest adding acceleration so the player jumps following a smooth parabola and gains velocity while falling down.
6  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-10 22:12:55
Creating a falling meteor space-type game and this is what I have so far:


Random polygon generation, lots of trig, and keeping my code clean for once took up most of the time spent making this project. However, I'll have to replace the polygons with proper textures and the turrets will end up being spaceships so all that math was for nothing. Oh well, at least I learned something. Cheesy
7  Games Center / WIP games, tools & toy projects / Re: Jumproom on: 2014-07-05 22:21:57
Okay, first, reeeally like the graphics. They're so well done and fit perfectly! I've noticed the background is rather static and boring however, simply making the clouds move with some paralax would really add some sense of dimension to the game.

I completed all levels and one warp level with three stars except for level 8 and had tons of fun! I'm not sure it's possible to get the second star in level 8 without falling off the map unless you move it down a block. Also, there's a two second delay before the restart and main menu options appear when you fall down the map which quickly gets annoying. I could also jump across spikes by repeatedly clicking as Bearded Cow mentioned.

How many warp levels are there? I only found one and cannot find the rest.

Good game, nice job! Cheesy
8  Discussions / Suggestions / Re: Pre-WIP section on: 2014-07-01 19:19:42
In addition to a pre-WIP, I think we also need a pre-pre-WIP to document game ideas and get input on them before starting to code them. Cheesy

Seriously though, you don't need to post on this forum if you want to document your progress. There's personal blogs such as Wordpress or Tumblr for that. Cheesy Not yet playable is still WIP; for example, Rayvolution's Retro-Pixel Castles doesn't have any gameplay, but I'd definitely consider it a WIP over a pre-WIP.
9  Java Game APIs & Engines / Engines, Libraries and Tools / Re: libGdx setting a trajektory for a object to move on: 2014-07-01 12:21:51
You could use the four basic equations of kinematics to determine the x and y position of an object relative to its velocity and the amount of time elapsed, but really, it's much easier to just apply gravity to your objects. You simply need three vectors;
Vector2 position
,
Vector2 velocity
, and
Vector2 acceleration
. Set the y component of the acceleration vector to your gravity value (I usually use -10) and the x component to 0. Then set the x and y components of the velocity vector to the speed of your object. In your update method or loop, add the acceleration to the velocity, then add the velocity to the position, ex;
velocity.add(acceleration)
and
position.add(velocity)
.

If you have an angle instead of x and y components for your velocity, you could get the normalized x and y components of the angle with some trig then multiply them by how fast you want your object to move:
x = cos(angle) * xSpeed
and
y = sin(angle) * ySpeed


With this bit of simple physics, your object will move on a parabolic curve. Hope this helps!
10  Game Development / Performance Tuning / Re: Yet another voxel engine on: 2014-06-22 21:58:37
Intel Core i5 1.7 GHz
Intel HD Graphics 4000
4GB RAM
Windows 8

Solid 2000 FPS. Really surprised it's that fast. Shocked
11  Games Center / Archived Projects / Re: Flubber Space on: 2014-06-21 19:49:05
It's more worth your time to use libGDX, as Slick2D is basically dead.

Btw, I would really recommend GifCam.
12  Discussions / Miscellaneous Topics / Re: Longest program you have written? on: 2014-06-18 03:00:32
You'd end up with something similar to FizzBuzzEnterpriseEdition. Cheesy
13  Discussions / Miscellaneous Topics / Re: Interesting Profile pictures on: 2014-06-17 20:41:56
I'm not sure what that could be besides a hat. Tongue

I made my current avatar last summer and uhm... there's really nothing special about it. Sky blue is my favorite color, and I'd love to fly hence the wings. That's about it. Smiley
14  Discussions / Miscellaneous Topics / Re: Code-style: Cringe pics on: 2014-06-05 22:00:57
I can't resist the urge to edit your code, Rayvolution:
1  
public void setAccentMode(boolean on) { accentMode = on; }


I found this:
1  
2  
3  
4  
5  
int length= 0;
for(int i = 0; i < array.length; i++){
    length++;
}
System.out.println("Array has " + length + " elements.");


Going through some old code, I found this:
1  
2  
3  
4  
5  
6  
7  
8  
if(someCondition) {
   if(anotherCondition) {
      if(yetAnotherCondition) {
         SomeObject object = aParameter;
         if(ANOTHERcondition) {
            if(lastCondition) {
               AnotherObject object2 = getOtherObject();
               if(object2 != null) {

I removed the conditions and changed object names to remove confusion, my code wasn't THAT terrible. But six nested if statements, anyone?
15  Games Center / WIP games, tools & toy projects / Re: [Slick2d] Retro-Pixel Castles - Top Down Survival Mayhem! on: 2014-06-03 21:15:08
If you do put a box around the logo, also include the blurbs. They're hard to read when over lava or stone.
16  Discussions / Miscellaneous Topics / Re: Random syntax tweaks! on: 2014-06-01 23:35:59
Dart has really nice constructors and methods with default values:

1  
2  
3  
4  
String method(String foo, {String bar:'default value', String ball:'bat'})

var variable, number, name;
SomeObject(this.variable, this.number, this.name);
17  Discussions / Miscellaneous Topics / Re: Setting up a website for a complete noobie on: 2014-05-29 22:20:20
If you have $4 a year, you could go with http://123systems.net/. I'm planning to use them in the future, because 000webhost sometimes pops up ads on your site when it loads which can deter some visitors.
18  Discussions / General Discussions / Re: New feature: topic labels [solved] on: 2014-05-06 22:12:50
I like this update, looks great! Could you get the labels to also show up in the "Recent Posts" section on the homepage?
19  Discussions / General Discussions / Re: The Differences between Java and JavaScript. on: 2014-04-27 23:03:06
Java to Javascript is like ham to hamster.
20  Game Development / Newbie & Debugging Questions / Re: New vector from known angle on: 2014-04-14 18:46:36
You don't need to calculate a new vector from the angle of reflection. You can just invert the y component of vector A to get vector B.
21  Game Development / Newbie & Debugging Questions / Re: Is this book good for libgdx beginners ? "Beginning Android Games" on: 2014-03-26 20:26:32
Beginning Android Games was written by the author of libGDX. Smiley Throughout the book, you put together a sort of "mini libGDX" while learning the Android API and using it to make 2D and 3D games. I recommend it, it's a really great book.
22  Discussions / General Discussions / Re: Great programming book offer. on: 2014-03-25 02:50:12
@Rayvolution

It depends what you want to do. If you want to figure out a simple problem you have in your program, Google's the way to go. But for learning new programming concepts or languages, books are often much better to learn from.

Mr. Somebody posting programming tutorials online could be anybody, whereas those expensive books are (usually) written by authors with lots of experience and knowledge in their field. The internet is a large patch-work of various resources contributed by any random somebody sitting in front of a computer. You may not find exactly what you need, or the author of said resource may not necessarily be doing what they're doing very efficiently. Sometimes you may find book-quality information, but it's not very common and hard to find. Fancy books (again, usually) contain all that nice high-quality information you rarely find online. They're also more in-depth and cover a lot more material than a bunch of internet sources.

TL;DR: Books are written by authors who know what they're doing. The internet is cats.
23  Discussions / General Discussions / Re: JDK 8 is released on: 2014-03-19 12:22:45
I bet those 30% are mostly stingy public schools who don't want to spend money upgrading any of their computers. Tongue Windows XP is ancient, like Jev said, this gives them a reason to upgrade.

Java 8 looks awesome. I can't wait to learn and use all the new features. Smiley
24  Games Center / Showcase / Re: City Jumper on: 2014-03-17 21:01:14
I am glad to announce update 1.2! This update adds a bunch of new settings including a toggle between jumping on tap and on release. You can also mute the sounds and change the sensitivity. Here's a picture:



Enjoy!
25  Games Center / Showcase / Re: City Jumper on: 2014-03-12 23:00:52
Thanks for the feedback! I tried jumping on tap, but it made the game much too easy in my opinion. I've also been told this different jumping mechanism differentiates my game from the rest, which may motivate players to adapt the different jumping style and play more. I'll try implementing it again and may add a toggle for it if enough people want it.

On other news, I released version 1.1! It contains some performance improvements and fixes a bug where the pause popup doesn't show if the game over popup is open.
26  Games Center / Showcase / City Jumper on: 2014-03-11 02:52:58


City Jumper is a new, fun and addictive game by Float Play. You play as a person jumping from rooftop to rooftop across a cityscape to get as far as possible.

Screenshots:






Simple controls. Tap on the screen, and let go to jump. The longer you hold your finger on the screen, the higher your jump.





-------------------------------------------

Post-creation thoughts:
This is only my second game, and took around a month to make (along side a ton of school work). I learned soooooo much and couldn't be happier. Indeed the hardest part was polishing it up and patching bugs. The game portion took about two days, but making it look nice, finding bugs, and getting it to run smoothly on low-end devices took foreeeeeever. Advertisement and leaderboard integration was also difficult, specifically leaderboards. Google Play Game Services is just waaaaay too difficult, and I ended up ditching it for Swarm. Swarm took an hour to get set up and working correctly, versus two days and tons of frustration with GPGS. I really recommend Swarm to integrate achievements, in-app purchases, and of course leaderboards into your game. They even support libGDX!

In any case, the experience I gained and knowledge I learned was more than any book or tutorial could teach me. If you want to get better at making games, then make games. I made the mistake of reading too many tutorials because I was paranoid I wouldn't know how to properly write a game and end up with a conglomerate of code and a poorly-made piece of software one might call a "game". This time, however, I didn't worry about how messy my code was until I had something working. Then I refactored pretty much everything I wrote and ended up with organized code and a nice game. The point is, don't worry how unpleasant your code is. Your original code will never make it to the final version anyways. By the time you finish, you'll have gone through half a dozen re-writes of almost every class you've written. Moral of the story: Keep calm and create games. Wink

As always, I'd appreciate any feedback or advice given. I'm constantly looking for ways to improve my games, so a little kind criticism never hurts. Cheesy And of course, if you find any bugs tell me. I dislike those pesky bugs as much as anyone, so I'd be more than happy to get rid of them.

Also, yes, this game is only for mobile devices. I need to get money somehow, so this is my business. It's only for Android right now, but an iOS version will come soon; when I get enough money to pay for Apple's ridiculous development fee.
27  Game Development / Newbie & Debugging Questions / Re: libGDX, AdMob, and Google Play Leaderboards on: 2014-03-09 05:28:04
Well saucymeatman sir. I guess you just nominated yourself to implement leaderboards in my game. Tongue Chop chop, write the code.
28  Game Development / Newbie & Debugging Questions / Re: libGDX, AdMob, and Google Play Leaderboards on: 2014-03-09 05:21:15
I managed to fix ads not refreshing by simply not re-loading the ads when the GameScreen is re-entered. I only call LOAD_ADS the first time GameScreen is loaded, and then only hide/show the ads when leaving/entering GameScreen.

But I still have no idea how to implement Google Play Leaderboards into my game with libGDX. Has anyone done this before and can show me how to do it? Thanks in advance! Cheesy
29  Game Development / Newbie & Debugging Questions / Re: libGDX, AdMob, and Google Play Leaderboards on: 2014-03-08 16:10:01
Thanks, your solution worked! Cheesy Ads now immediately display.

I can call an ad request, but it won't restart the cycle. To put it simply, if I request an ad when one is already scheduled to refresh, it interrupts the cycle. Does anyone know how to restart it?
30  Game Development / Newbie & Debugging Questions / libGDX, AdMob, and Google Play Leaderboards on: 2014-03-08 05:14:47
Hi, I'm developing an app using libGDX and have some trouble integrating AdMob and Leaderboards. Lets start with AdMob.

I followed the AdMob tutorial in the libGDX wiki, but have a couple problems. I set my ads to display only when playing, so I have a class called "GameScreen" that shows and loads the ads when instantiated. That way ads don't clutter the title screen or any other screen. The first problem is that ads don't load immediately when GameScreen is loaded. LogCat says the ad finished loading, but it doesn't display (and the AdView's visibility is View.VISIBLE). Only when the next refresh occurs (in thirty seconds) do they start to show.

The second problem happens with ads not refreshing. Staying on the GameScreen playing the game will never interrupt the refresh cycle, but leaving the GameScreen does. When GameScreen exits, it sets the AdView's visibility to View.GONE. Staying in the title screen longer than the time until the next ad refresh causes the cycle to go bork. LogCat prints out "Ad is not visible. Not Refreshing ad." and schedules an ad refresh in sixty seconds (not sure why it's not thirty seconds). When you return to the GameScreen, an ad loads and doesn't refresh. Returning to the title screen and going back to the GameScreen does load a new ad, but it doesn't refresh automatically after thirty seconds while playing. The same ad will show until the player exists the GameScreen.

Here's the code for my MainActivity: Clicky!
And here's the code for my Ad Handler: Clicky!

GameScreen calls SHOW_ADS and LOAD_ADS when created, and HIDE_ADS when it exits.

------------------------

Now for leaderboards. I read the tutorial on the libGDX wiki, but it doesn't go into much detail and only talks about updating scores and achievements. I want to send the scores to a leaderboard I created in my Google Play dashboard and show the leaderboards when I press a button in-game. How do I change the view to the leaderboards view, and send scores to it?

Let me know if you need any more details. Any help would be appreciated for either of my two problems! Cheesy
Pages: [1] 2 3 4
 

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

The first screenshot will be displayed as a thumbnail.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (58 views)
2014-07-18 06:55:21

Zero Volt (49 views)
2014-07-17 23:47:54

danieldean (41 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!