Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 / General Discussions / Re: Website Content Management on: 2014-09-22 12:18:45
Or any of numerous other options, just don't roll your own!  Grin

What major features do you consider make it worthwhile to choose wordpress or drupal over a roll-your-own solution?

I find wordpress and php harder to learn than servlets and jquery so I opted for a self-rolled solution. However I have a problem that there's precious few open source java forum software projects on offer. The best I could find was jforum2 (https://code.google.com/p/jforum2/).

Cheers
2  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-17 00:59:52
He already "left" Java two years ago. He's been working on things with Unity and Dart/WebGL in the meantime.

This is one of the main reasons why MineCraft was so successful: because java applets let players try out the free version in the beginning.
Now that applets are dead, moving to javascript/webGL seems like a good idea. But I don't think webGL support is universal yet and there are still many browser bugs.
Congrats to Notch, he's an inspiration to us all. I don't think he sold out, he stuck it to the man by charging $2.5b!
3  Games Center / WIP games, tools & toy projects / Re: Praxis LIVE v2 - live visual / coding env - request for testing / comment on: 2014-09-02 02:08:42
Also I tried downloading the example zip file (examples 120620.zip) but couldn't figure out how to load it.

After unzipping externally it should recognise all the subfolders (01 Hello World, etc.) as projects which can be opened.  Huh  Also, in case you got this far, remember to restart the hub (red circular arrow) between trying to run each example.

The project zip / unzip menu items are from the underlying platform, and may be more trouble than they're worth at the moment.  I'll do some testing with them prior to the next release, and if they're not proving that useful will hide them.

Thanks for your input, Neil
Aha! cool, yep the examples work now that I open them as projects. The video input and blob examples were cool, they grabbed the video from my laptop camera just fine. How did you do that? What java lib can get access to the video camera so easily?
Thanks for letting me know about RSyntaxPane, it looks much better than JSyntaxPane  Cool
I couldn't figure out how to edit the code in the 'live coding project', there wasn't any button next to the properties of the code element.
The GLSL example just showed a blank window, but I couldn't turn on the openGL pipeline since only the 'Software Renderer' was available in Tools/Options/Video.
New Custom and Smoky 3D were good. Would be nice to see a demo with an animation of flashing lights or something which is sync'ed with the bass of a song.
Cheers,
Keith
4  Games Center / WIP games, tools & toy projects / Re: Praxis LIVE v2 - live visual / coding env - request for testing / comment on: 2014-09-01 14:01:58
I downloaded the latest test build and it worked well.
Would be good if it came pre-loaded with a cool demo project that would play some music and make a video with GLSL just to show off the features.
Impressive for how you were able to borrow some code from netbeans. Was it difficult to integrate? I've also experimented with the swing code editor JSyntaxPane but found it to be unreliable and always wanted to know how hard it would be to borrow the editor from netbeans or eclipse.
Cheers,
Keith

PS: The older version 131206 didn't work when I started it. Just an opening splash screen and then it died, with the process disappearing on the task manager. Windows 7, intel i7.
Also I tried downloading the example zip file (examples 120620.zip) but couldn't figure out how to load it. When I did import project from zip, it popped an error dialog saying "entry anImageFileName already exists. Replace, change....". Then it failed to add the project. Unzipping it manually and trying to load as a project didn't work either since it wouldn't let me select the unzipped examples folder or any sub folder.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-03 11:01:30
Looking suave! Is that the waltz?
Congratulations
6  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: https://www.google.com.au/?#q=excel+order+of+operations+bug
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?
7  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:
http://m.wolframalpha.com/input/?i=-2%5E2&x=0&y=0
8  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.
9  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).

Cheers,
Keith
10  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??
11  Discussions / Miscellaneous Topics / Re: Losing projects on: 2014-06-13 16:15:27
Bitbucket.org has free unlimited private repos too.
12  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.
13  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?
14  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.
https://en.wikipedia.org/wiki/Kinetic_energy#Frame_of_reference

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?
15  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.
http://www.zdnet.com/adsense-leak-controversy-heats-up-as-google-denies-favoritism-theft-allegations-7000028913/
https://news.ycombinator.com/threads?id=adsenseclient

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.
16  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.
17  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.
18  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-13 14:08:13
Hi,
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:

http://serverbear.com/compare/vps

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:
https://code.google.com/p/javamelody/

Cheers,
Keith
19  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.
20  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
21  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:
https://code.google.com/p/straightedge/
Cheers,
Keith
22  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:
https://github.com/EsotericSoftware/scar
23  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.
24  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 :-)
25  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.

Quote
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?
26  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:

1  
2  
3  
4  
5  
6  
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:

1  
2  
3  
4  
5  
627 calls to sun.java2d.loops.ScaledBlit::ScaledBlit(IntRgb, SrcNoEa, IntRgb)
629 calls to sun.java2d.windows.GDIBlitLoops::Blit(IntRgb, 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.
27  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.
http://www.oracle.com/technetwork/java/javase/java2d-142140.html#gcrus

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.

Cheers,
Keith
28  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:
https://productforums.google.com/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.
29  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?
30  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.
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.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (43 views)
2014-09-23 14:38:19

radar3301 (25 views)
2014-09-21 23:33:17

BurntPizza (62 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (37 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
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
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!