Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
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 ... 53
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-03 11:01:30
Looking suave! Is that the waltz?
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-18 14:32:03
I came across the bug by accident and it took hours to figure out what was wrong.
I just googled it and apparently it's known:
It was funny reading the links and seeing smarter guys than us on engineering forums argue about order of operations too.

Microsoft must have made a conscious decision to keep that bug forever to preserve backwards compatibility. So funny. Many bank models and other important things are done using excel, I wonder how often that error pops up and invalidates their equations?
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-18 11:20:28
I just tested it on wolfram alpha and it says its -4:
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-18 08:43:00
Some excel madness. Somehow fascinating, no?
Ah hah! An excel data table. I used to have to do sensitivity analysis using these.
How do you find MS Excel?
I like the concept of it and the keyboard short cuts. It's the best thing for playing around with numbers and equations.
But the formulas are hopeless. For example if cell A1 contains the number "2", and cell B1 contains "=-A1^2", then B1 will show 4, not -4.  Huh? It violates mathematics.
VLOOKUP sucks, as do 'array' functions such as SUM(IF(A1:A100=true, 1, 0)) {ctrl+shift+enter} since they don't work with non-array functions. For example SUM(IF(AND(A1:A100>0, A1:A100<1, 1, 0)) will not work. You have to do SUM(IF((A1:A100>0)*(A1:A100<1), 1, 0)) which is quite frustrating.
I also hate how there's 30 ways to paste a copied cell except there's no way to copy the textual contents (formula text) of a cell without manually highlighting the text within the cell.
Also, VBA sucks compared to Java. I still don't know how to use it, it appears to have no structure to its method names.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-17 14:53:08
Today I learned about how to add extra indexes to an sql database table which all of a sudden sped up my high score page from taking 20 seconds to 1 second load times.

Last week I migrated my VPS from Linode (2GB RAM, 20$/mth) to RamNode (0.5GB RAM 6$/mth). Since I barely used 1% of the Linode VPS's CPU or bandwidth resources and that plan was their minimum subscriptio,n I think the effort to move was warranted.

Layout manager finally working... in one dimension. Next step... the perils of the second dimension!
Your approach is interesting, but why not just use one of the countless layout managers that already exist? Swing, TWI and libgdx all have layout managers that you could pilfer or adapt for free.
I know that skinning components is hard to get right in any look-and-feel widget toolkit, but I've found that java layout managers work quite well (though html/css one's don't).

6  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JRebel on: 2014-06-18 00:00:51
It does look cool, but would you pay $365 per year for it??
7  Discussions / Miscellaneous Topics / Re: Losing projects on: 2014-06-13 16:15:27 has free unlimited private repos too.
8  Discussions / General Discussions / Re: [Swing] Can swing look sexy? on: 2014-05-29 15:30:28
I think aayout managers are far better than CSS. I can do any layout with a a layout manager, but with CSS it's a massive headache. CSS is full of random hacks and does not behave as expected. CSS can't be programmed as well.
9  Discussions / General Discussions / Re: Oracle wins copyright for the Java APIs on: 2014-05-10 08:51:44
I just don't understand how there is copyright at all when Sun open sourced the java language and API's? Can't everyone use and copy the API as much as they want so long as they abide by the open-source license?
10  Game Development / Game Mechanics / Re: [Math] Kinetic energy of impact between two moving objects on: 2014-05-09 07:06:30
What an interesting problem, I never thought about that.
Half way down this article it explains your problem, see the "frame of reference" sub heading.

As it applies to your game, why not just always use the game landscape as the frame of reference to calc the damage which is a function of kinetic energy?
11  Discussions / General Discussions / Re: JGO coinage tally on: 2014-05-02 16:13:21
True, it does sound like they have a public relations problem.

But I wonder how many scammers must try to rip money out of adsense? It might be that the 1% of innocents like JGO and otherpublisher websites have been massacred in the mass-banning of the scammers.
12  Discussions / General Discussions / Re: JGO coinage tally on: 2014-05-01 11:29:25
I think the leak is false, it doesn't make sense that Google would ban a website that is displaying successful AdSense advertisements, making money for the website publisher and google.
Perhaps this is a disgruntled employee or just a trouble-maker who made it all up.
Another question, why didn't the people who resigned earlier in protest not spill the leak? They would have nothing to lose.
13  Discussions / General Discussions / Re: [Web Games] What is the best second language? on: 2014-05-01 11:10:36
Portuguese! Bom dia!

I actually don't think it matters which language anymore, soon all languages will be able to be compiled to others, including human languages.
14  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-13 14:08:13
I use Linode but it's pricey and overkill for me. It expires in a month and then I'll switch to a smaller RamNode.
Serverbear has a good rundown and the different VPS servers available and their performance:

Most VPS cost peanuts per month so I'd highly recommend them over anything else.
I host my sites on a VPS using apache tomcat which for me was easier than having to learn php, wordpress and the apache http webserver. Tomcat only required knowledge of java, servlets and JSP's. If you decide to go that route, I highly recommend this framework for watching performance:

15  Discussions / General Discussions / Re: JGO Kickstarter on: 2014-04-01 01:47:04
That's cool, good idea. I think this is better than project wonderful because all of the cash goes to jgo instead of a chunk of it going to project wonderful.
But when I click the badges on the right hand column I get an internal server error 500.
16  Discussions / General Discussions / Re: JDK 8 is released on: 2014-03-26 12:40:29
It's a pity that Oracle charge companies for distributing commercial java programs on ARM devices.
What kappa linked to about asm JavaScript is pretty amazing. That sounds like the way forward
17  Game Development / Artificial Intelligence / Re: AI path finding on non tile based game? on: 2014-03-15 10:29:50
Hi, I made a little project that might help with non-tile-based pathfinding:
18  Game Development / Newbie & Debugging Questions / Re: Done with "core" Java , but now... on: 2014-03-14 23:20:30
The problem : now i'm facing things like  building ,deploying , xml  , Maven , Ant , etc..etc..
and i find all this stuff incredibly boring.
My question : i have to resign  and dive into these icy waters , or i can somehow avoid this punishment ?
Thanks a lot for any tip !
I find maven and ant so idiosyncratic and clumsy. Why must they be programmed in XML rather than the language we already know: Java?
Luckily, If you use an IDE then it will do everything for you automatically. Another cool option is something that the jgo user Nate made:
19  Discussions / Business and Project Management Discussions / Re: RTS Programmers WANTED! on: 2014-02-21 01:55:13
If the game isn't started at all this is false advertisement and you might have lost some potential people. Working from scratch is hard to do, and of really isn't that wise. Use an already made graphics library to help you, don't write it all yourself.
Umm, but hasn't he already written all of the graphics? And they look excellent, better than any I've seen in an RTS including AOE2. See the screen shot in the first post.  Clueless

I think artists are harder to find than programmers.
20  Discussions / Business and Project Management Discussions / Re: RTS Programmers WANTED! on: 2014-02-20 15:35:47
Your graphics are very nice, they fit well together. If you have animations for walking, attacking etc already then I think you've already done at least 50% of the work to make this game.
The only hard thing left is the multiplayer code which some people here would actually enjoy coding.
I think you have a good chance of finding a developer to turn this into a game. If i had some time I would, but I'm working and studying full time so unfortunately I can't. But I will definitely be a paying customer when this turns into an AOE2 style game :-)
21  Game Development / Performance Tuning / Re: Improving draw performance for constantly changing image on: 2014-02-12 14:26:14
Java2d graphics pipelines are a part of the VM and are not configurable beyond the few vm args you already know about.

Each time a new frame is decoded, the data is copied into the raster and repaint(30) called (to trigger an asynchronous swing repaint
Perhaps using active rendering might work better, bit then again it may be negligible.

Why dont you try switching to OpenGL and see how it goes?
22  Game Development / Performance Tuning / Re: Improving draw performance for constantly changing image on: 2014-02-12 05:11:57
Oh, my previous traces had quite a lot of extra stuff in them (debug overlay text etc) that for simplicity's sake I've commented out. Here it is with literally just the image render:

With D3D enabled:

862 calls to sun.java2d.d3d.D3DSwToSurfaceScale::ScaledBlit(IntRgb, AnyAlpha, "D3D Surface")
16 calls to sun.java2d.d3d.D3DMaskFill::MaskFill(AnyColor, SrcOver, "D3D Surface")
863 calls to sun.java2d.d3d.D3DRTTSurfaceToSurfaceBlit::Blit("D3D Surface (render-to-texture)", AnyAlpha, "D3D Surface")
5 calls to D3DFillRect
1 call to D3DDrawGlyphs
1747 total calls to 5 different primitives

With D3D disabled:

627 calls to sun.java2d.loops.ScaledBlit::ScaledBlit(IntRgb, SrcNoEa, IntRgb)
629 calls to, SrcNoEa, "GDI")
31 calls to sun.java2d.loops.MaskFill::MaskFill(AnyColor, SrcOver, IntRgb)
3 calls to sun.java2d.loops.FillRect::FillRect(AnyColor, SrcNoEa, AnyInt)
1290 total calls to 4 different primitives

Please note they weren't run for exactly the same amounts of time, so numbers may vary.

sun.java2d.loops operations are the software blitting, and in your output for D3D it looks like none of that is going on which is good.
But in your D3D output there is a lot of:
862 calls to sun.java2d.d3d.D3DSwToSurfaceScale::ScaledBlit(IntRgb, AnyAlpha, "D3D Surface")
"Sw" stands for software I believe, so this may be the slow operation that is bogging down the CPU and frame rate.
I am not an expert on java2D and most of my knowledge is just from experimenting with different things and some reading, but I have found that VolatileImages are a little faster than BufferedImages. So you could try switching to them.
Another thing, fullscreen exclusive mode with D3D on and triple buffering may result in much faster speeds since page flipping is likely to be enabled.
Another thing, there is a java2d class that is supposed to give details of graphics capabilities but it is buggy and won't actually tell you if page flipping is possible or not.
Unfortunately Java2D has not been worked on for some time and all of oracle/sun's energy has been put into javafx, though there is little to show for it.
23  Game Development / Performance Tuning / Re: Improving draw performance for constantly changing image on: 2014-02-11 15:57:31
Unfortunately the performance of java2D is not great when it comes to blitting rotated images. This might also be the case for scaled images too, I can't remember.
Use the java2d trace option and let us know what the output is. It's better than using the profiler.

Most people doing demanding rendering on this forum use openGL. OpenGL is faster but less reliable since it  depends on opengl drivers which can be flaky.
When I use java2d it's usually only for painting in a window or applet that is a fraction of the screen size since that's the only way I can achieve a reasonable frame rate on slow computers.
Since you're blitting to 4 monitors I think you will have to switch to opengl to achieve reasonable performance, I don't think java2d can be tweaked to achieve 60 fps on 4 monitors using a computer with or without a video card since many java2D operations (such as image rotation) are not hardware accelerated.

24  Discussions / General Discussions / Re: JGO coinage tally on: 2014-01-30 18:52:50
Back in early 2010 when I added AdSense, everything seemed to go well. Within three months I reached the payout threshold of about $100, and I was a happy overlord. Unfortunately, in spring 2010 some guy from Belgium (according to his IP) clicked ~20 times on the same ad. I reported this activity to Google, with the offending IP address, and they quickly responded by suspending my AdSense account, indefinitely... in case you're wondering, yes, it is still banned and yes, I contested their decision to no avail.

That's totally unfair! I was reading about adsense and how to lift the ban and everyone says it's impossible.
But there's this discussion on google's product forum:!topic/adsense/BQYp_jvO13k
Maybe if you raised the matter in a new thread there then they might notice? Seems bizarre that they ban you for doing the right thing.

Accepting donations from members would be fine. For the older members here a cost of $10 per year is nothing. I'm sure there'd be at least 30 members who'd pay $10 from their paypal account to keep JGO going. That would cover costs for about the next 2 years.

Another option may be to use the community more.
I have a VPS of which I use barely 1% which could be used to host JGO. I'm sure others are in the same situation.
But the hassle of moving JGO to new hosts would be a waste of labour.
25  Discussions / Miscellaneous Topics / Re: What will be the next hype after zombies? on: 2014-01-09 12:09:56
Before zombies it was vampires and werewolves.

It seems the undead are all popular. Even skeletons and mummies.

Ah yeah, I remember the movie 'the mummy', terrible. And Diablo, they loved their skeletons.

Also, demons and angels had their time in the 'DaVinci Code' and 'Angels and Demons'. Diablo had them too.

Maybe mutants might be next? Fears of radiation poisoning as a new cold war erupts between China and the US with the possibility of nuclear armageddon.

Or apes! Like 'plant of the apes'. I liked those old movies, but the recent one was a stinker.

Or aliens?
26  Discussions / Miscellaneous Topics / Re: What will be the next hype after zombies? on: 2014-01-08 19:28:00
Before zombies it was vampires and werewolves.
Maybe next it'll be witches or trolls? But Harry potter kind of did that already... Hmm.
27  Discussions / General Discussions / Re: Opinions of games engines on: 2014-01-07 11:12:09
From my days of working for the man...tinkerers, especially very skilled ones, was my biggest nightmare. 
That's because those guys hate working for the man!
Most people here would fit into that category.
Chances are that they're bored with their jobs and the best part of their day is finding a little tinkering challenge that they can struggle with to make the perfect API or the most efficient code.
28  Discussions / General Discussions / Re: Opinions of games engines on: 2014-01-06 13:34:39
The more productive developers here don't seem to use monolithic game engines, they have a tool chain of different things.
Kev Glass, author of Slick2D and a bunch of high quality games used to use
- LWJGL for rendering,
- Inkscape vector drawing program for making free-from curvy levels which can be saved as SVG an XML format,
- Tiled or some other program for tile-based game world creation,
- Phys2D for physics (an early derivative of Box2D before JBox2D superseded it),
- Paint.NET or gimp for pixel art, and lots more I'm not aware of.

The key thing with these engines is not the coding aspect, it is the level building. If you use libgdx to make an RPG shootem up platformer. How are you going to make the levels? You will have to write some custom software to create levels. With these visual editors that interact with code seamlessly you do not need to write as much custom software. But you still need to actually code the game.

Yeah that's true about the level editing. Most of us never get to that stage. After we make the cool effect or achieve the super fast 'frames per second' goal we're satisfied and call it a day.
29  Discussions / General Discussions / Re: Opinions of games engines on: 2014-01-05 21:13:23
I respect Carmack but I would like him to respect the right of paternity especially when it concerns the scientific studies that he has used for years (not only French papers), public fundamental research isn't useless after all.

What do you mean? I never heard of anything about Carmack and scientific studies.
30  Game Development / Newbie & Debugging Questions / Re: Java Security BS, Can I Get Around It? on: 2014-01-03 21:36:32

The link is fixed. I'm pretty sure I've signed them correctly using these two .bat files:

Well it works for me in Chrome browser on windows, but requires clicking through 2 menus, one by chrome which isn't too scary and one by oracle which is quite off-putting.

I read recently that Google is shutting down the old netscape plugin API which affects java:
While click-to-play has been available in Chrome for several years, the feature has not been enabled by default, except for a number of plug-ins that Google considered to present a higher security risk, like Java, RealPlayer, QuickTime, Shockwave, Windows Media Player and Adobe Reader prior to Adobe Reader X. That policy will soon change.

"Starting in January 2014, Chrome will block webpage-instantiated NPAPI plug-ins by default on the Stable channel," Schuh said. A temporary exception will be made for the most popular NPAPI plug-ins that are not already being blocked for security reasons in order to avoid disruption to users, he said.

The plug-ins that will be temporarily whitelisted will be Silverlight, Unity, Google Earth, Google Talk and Facebook Video, as they were used by more than 5 percent of users during the past month. Java was used by almost 9 percent of users, but it's already on the list of blocked plug-ins.

"In the short term, end users and enterprise administrators will be able to whitelist specific plug-ins," Schuh said. "Eventually, however, NPAPI support will be completely removed from Chrome."
Pages: [1] 2 3 ... 53

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

The first screenshot will be displayed as a thumbnail.

atombrot (25 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (13 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (58 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08 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!