Featured games (78)
games approved by the League of Dukes
Games in Showcase (426)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
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  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.
2  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.
3  Discussions / General Discussions / Re: Great programming book offer. on: 2014-03-25 02:50:12

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.
4  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
5  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:

6  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.
7  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.


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.
8  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.
9  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
10  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?
11  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
12  Game Development / Newbie & Debugging Questions / Re: Transparency and the Graphics2D object on: 2014-02-16 14:24:21
will draw an outline of a rectangle. I think you're looking for
. Cheesy
13  Discussions / Miscellaneous Topics / Re: What is your typing speed? on: 2014-02-13 02:47:53
Tried again on my computer and got 81 wpm Cheesy

14  Game Development / Newbie & Debugging Questions / Re: Looking for a good beginners book for game development with Java on: 2014-02-12 17:21:11
For learning how to make a 2D side scroller, David Brackeen's Developing Games in Java is perfect. Although a bit old (2004), the concepts of game programming stayed the same. The first four chapters talk about threads, 2D rendering, input, and sounds, then chapter five combines them all to make a simple 2D side-scroller. And if you ever feel like going into 3D, the rest of the book should teach you everything you need to know.
15  Discussions / Miscellaneous Topics / Re: What is your typing speed? on: 2014-02-12 13:27:57
I'm not at home, but I got 53 wpm on my phone: Cheesy

Big image; click here to see.
16  Game Development / Newbie & Debugging Questions / Re: Is it easy to make games through pure java? on: 2014-02-09 16:55:23
You don't see a lot of games made with Java2D because people usually use it for their first few games to learn how to make games, and thus don't release them.

Java2D is easy to use, but very limiting. You can't do half the things OpenGL will let you (for example, shaders), and it's speed may hinder you from rendering too many sprites or having nice particle effects.

Start with Java2D to learn the fundamentals of game development. Once you feel you're ready, move onto libGDX/LWJGL. libGDX is much easier than LWJGL, as it abstracts most of OpenGL for you through easy-to-use classes. LWJGL is basically pure OpenGL with event handing and window utilities. If you want to use LWJGL, you'll have to learn about OpenGL first. The Arcsynthesis tutorials with ra4king's port of them to LWJGL will help.

Good luck! Cheesy
17  Game Development / Newbie & Debugging Questions / Re: Closest Plane in Ray Pick on: 2014-01-31 22:20:26
this code should work for you


What is 'dot'? Like multiplication?
And also, you cant add and subtract Vector3fs like that.
Or multiply them like that... Or compare them to 0 like that. Vec3 is not a valid object in java, and 'dot' is not a valid function. So no, that code won't work for me, or anyone. Sorry mate.
You know that's pseudocode, right? Obviously you can't copy + paste that code in. It's a layout of what the actual code should end up doing.

Dot product is basically this:
Assume U and V are two vectors.
U.V = U.x * V.x + U.y * V.y
18  Games Center / WIP games, tools & toy projects / Re: Paint.JAVA - Attempt at cloning Paint.NET (with cross-platform support) on: 2014-01-25 03:19:19
The Batch Icon set has a lot of wonderful icons, some of which may relate to your project. Cheesy
19  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx + Eclipse. on: 2014-01-15 12:32:57
This isn't a libGDX problem. You need to refresh any Eclipse project if you change a file other than a class. AFAIK, There's no option in Eclipse to have it automatically refresh. :-/
20  Game Development / Game Mechanics / Re: Font rendering with BMFont on: 2014-01-14 13:30:48
I can't find anything wrong in your code above, but I think this has to do with how you render the font. Characters that should be aligned with the baseline but ascend above it (t, f, l, any capital letter, etc) are rendered as though they're characters that descend below it (y, g, p, q, etc) and vice versa. So you just need to "flip" the y-offset for those characters. Hopefully this makes sense. Cheesy
21  Discussions / General Discussions / Re: Keyboard spill! :D on: 2014-01-11 21:55:14
I have a Razer BlackWidow with Cherry MX Blue switches. I loved it at first, but using for a year got me tired of the really loud clicking. I recently bought a small, wireless Logitech keyboard and love it. I guess I just prefer simple flat keyboards. Cheesy

Anyways, I've never spilled anything on my electronics as I don't eat or drink in my room. Cheesy I've only ever had water damage to my phone, and had to get it replaced as the microphone and home button stopped working. :-/
22  Discussions / General Discussions / Re: Keyboard spill! :D on: 2014-01-11 17:17:51
You... submerged it in water? Huh

AFAIK, water + electronics = dead. Water (and milk, I guess) short-circuits the components, thus they function improperly.

I would just get a new keyboard. You don't need to buy an expensive one either; a $25 Logitech keyboard works just as fine as a $100 gaming keyboard. Cheesy
23  Games Center / Showcase / Re: Penny Pitch on: 2014-01-06 22:47:43
I initially designed the game for desktop so I didn't have time to change the options into proper buttons; instead, I just added bounds around them and check if they contain each click or touch event. Had I spent more time, I would've made proper, nicely-sized buttons.

Odd, the game runs fine on everything I've tested it on, including an old Motorola Droid. I'm not working on this game anymore, though, as I have midterms and other things to worry about ATM. Undecided

Thanks! It can get tricky. Cheesy

Didn't expect anyone to keep this game installed. Smiley
24  Games Center / Showcase / Re: Bad Hedgie! on: 2014-01-05 23:37:25
My FPS feels like a solid 60, so it's probably some linux thing.

Really nice game! I do agree with wessles however that your textures would look nicer if they had the same resolution, but you said this was a game made for a personal jam, so art doesn't really matter. I especially like the bomb texture BTW. Cheesy

Instead of pressing Q, I think it'd be easier to just have the fuel increment automatically.

Cool game, pretty nice for ten hours. Smiley
25  Games Center / Showcase / Re: Penny Pitch on: 2014-01-05 23:36:45
Thanks! I made it with libGDX so it works on desktop too, which is why you can press B to return (you could just click anywhere too).

I experimented with different chances to get extra pennies and found 20% (the current chance) a nice balance otherwise games would go on forever because you'd keep getting more pennies and never run out.
26  Games Center / Showcase / Penny Pitch on: 2014-01-05 23:16:53
I've been working on this game for a few weeks for a school project, and I finally finished. It's the first game I made without following any tutorials, and I couldn't feel more accomplished. So without further ado, I present Penny Pitch, the small and fun game for everyone!

The concept is really simple. You shoot pennies out of a cannon onto a board to get the most points. The closer to the center, the more points you receive!

ESC to pause
Up/down/enter/click: navigate menus
Hold the mouse down to increase cannon power; let go to fire!

This is my first game, so I'd like any feedback at all. Things such as what I could improve, what could be better, and of course, positive comments would be nice as well. Smiley I'm not working on this game anymore, so I could use your feedback for some of my future games. Also, I understand the game doesn't have much of a purpose, but it's a simple school project and I'm happy with it.

27  Game Development / Newbie & Debugging Questions / Re: Interleaved VBO problems. on: 2014-01-03 01:11:20
I only know some basics about OpenGL, but

glVertexPointer(vertexSize, GL_FLOAT, stride, 0L);
glTexCoordPointer(textureSize, GL_FLOAT, stride, 8L); // 8L should be a pointer to the first vertex in the array
// so it might have to be (first tex coord location * bytes in a float) = (3 * 4) = 12 instead.
glColorPointer(colorSize, GL_FLOAT, stride, 16L); // Same here, should be (5 * 4) = 20 instead


Hope this helps. Cheesy
28  Games Center / 4K Game Competition - 2014 / Re: In The Dark 4K on: 2014-01-03 00:47:47
Amazing! It looks very detailed and "complete" for a 4K game.

Will you release the source code? I'm curious how you're rendering, calculating lighting, particle effects, and collisions all under 4K.
29  Discussions / Miscellaneous Topics / Re: Welcome to 2014! on: 2014-01-01 18:41:05
What I achieved in 2013:
  • Learned how to make Android apps
  • Started to learn about OpenGL
  • Learned a lot about game development by completing my first game

I didn't do much this year... but I really wanted to. I have a big list for 2014 though, so hopefully I can check everything off this year! Grin

What I hope to achieve in 2014:
  • Make more games!
  • Be more active on JGO
  • Learn everything about OpenGL Smiley
  • Make a 3D renderer with pure Java to learn about the math behind it and how OpenGL works
  • Make a ray casting engine
  • Release a game on Google Play and the iOS App store
  • Get better at drawing graphics
  • Learn a new language (still undecided which one...)
  • Enter all Ludum Dares
  • Learn how noise functions work
  • Finish reading Developing Games in Java by David Brackeen

Good luck to everyone with their resolutions!
30  Discussions / General Discussions / Re: libGDX + IntelliJ = :( on: 2013-09-22 18:26:02
Thanks! I used the working directory method that last night and it worked wonderfully.

I love Eclipse. I've used it for over two years now. But there were too many minor issues that piled up and made me want to switch. I'm still not 100% certain I want to stick with IntelliJ, though, since Eclipse has more support.
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.

xsi3rr4x (74 views)
2014-04-15 18:08:23

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

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

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

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

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

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

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

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

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