Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (550)
Games in Android Showcase (139)
games submitted by our members
Games in WIP (593)
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: Java Certificates on: 2015-02-01 08:19:44
I did the java certification exam just because i had no formal qualification and wanted to show on my resume that i was a serious programmer.
Unfortunately i failed the first time because it was harder than i thought!

I agree that if your name is on a big project then it's not necessary.
2  Discussions / General Discussions / Open source licensing of creative works on: 2015-01-31 07:30:07
When choosing an open-source license, I'm inclined to use the GPL 'copyleft' share-alike style license since it's the most restrictive, and gives me the option of putting a less restrictive license in the future if I want. Whereas if I release my work with a more permissive license such as BSD or the unlicense, then I will never be able to make it more restrictive if I want. I've lost the option.

What are your thoughts on this issue?

The reason why I ask is that I maintain a website for my students to answer questions relevant to the subjects that I teach:
http://www.fightfinance.com
Recently a new teacher took over one of my subjects. I'd like to let her continue using the tutorial questions and answers that I made.
It would be nice to see my work continue to be used after I lose interest in it.
However it would be upsetting if a textbook publisher poached all of my work and wrote a textbook based on the questions and charged students to buy it.
For this reason I'm inclined to use a creative commons attribution share-alike license, which is similar to GPL:
https://creativecommons.org/licenses/by-sa/4.0/

Some background for those who are not familiar with the broad families of licenses:
  • Unlicense/creative commons (CC) zero/public domain style licenses. Bitcoin uses the unlicense.
  • Apache/BSD/MIT/CC attribution style licenses. BSD unix obviously uses the BSD license.
  • Copyleft GPL/CC share-alike, and then copyright. Linux, GNU, Webkit browser (Chrome and Safari), Wikipedia, and Oracle Java (with class path exception) use the GPL license.

Here's some data on the prevalence of each license:
https://www.blackducksoftware.com/resources/data/top-20-open-source-licenses
http://blogs.the451group.com/opensource/files/gplusage.png

Altruistic programmers and authors choose the most permissive licenses which are the public domain or attribution BSD-style license.

Most open source projects use GPL which forces any improvements to the code base to be shared. Businesses dislike contributing to projects with this license since it nullifies any competitive advantage from their investment because they have to share their improvements with potential competitors.

For software that I want to make money from, of course I maintain copyright.
But so far I've made no money from any software! So I always end up open-sourcing my work after I realise that I won't be able to sell it because there are a million free and better alternatives or because I lose interest and then I slap a BSD style license on it.

Jimmy Wales founded Wikipedia, arguable the greatest open-source resource, and has now moved on from there to make private wiki sites for games and other things that he can make money from. That's quite an interesting switch.
http://en.wikipedia.org/wiki/Wikia
3  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-29 15:03:40
I personally had the impression for a long time that programming was this thing that only math geniuses could do. This wasn't aided at all by the fact that, in high school, while there was a computer programming class, being in the most advanced math track was seemingly a prerequisite for taking part.
That's funny, I often thought that math geniuses were disadvantaged when doing programming since equality in maths and assignment in programming use the same = symbol but are quite different ideas, consider 'y = y+2', which makes no sense in maths but is perfectly acceptable in programming.

...Fewer than one in thirty people will ever have any use for it, if that. Probably a lot less...
If you consider MS Excel to be programming, which it basically is, then more people than you think know how to program.
For example, most people working in the finance and insurance services industry would know how to do a VLOOKUP in MS Excel and that industry employs 1 in 25 workers in Australia:
http://www.abs.gov.au/ausstats/abs@.nsf/Lookup/by%20Subject/1301.0~2012~Main%20Features~Employment%20in%20Australian%20Industry~241
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-23 18:08:02
I made something similar for polygons (regions) rather than points which was just a simple 2D array of tiles. Would be interesting to see your algorithm working with overlapping regions too.
What do you plan to use your algorithm for?

Sounds like the good ol' Bin.
R-trees can be used for arbitrary shapes as well, both storage and queries, the two types of queries most suited to them is intersection/containment (given shape S, what objects in the tree intersect it?) and k-nearest neighbors.
http://en.wikipedia.org/wiki/R-tree

I'm entering a contest which requires fast spatial queries; I deemed R-trees the way to go.
Now to port it to C...  persecutioncomplex

Interesting topic. Thanks for the link to the bin, yes I made a crude version of a bin. It surprises me to see how far academics have studied geometric algorithms like this.
I notice on the wiki page that bins have similar characteristics to hashmaps. This must be an advantage of the bin over the tree since it makes queries O(1), assuming no collisions.
Trees on the other hand cannot go straight to the correct leaf, they have to climb through the branches from the trunk which is O(log(n)).
But the disadvantage of the bin is that data is often clustered and with each bin being the same size there will be some full bins and lots of empty bins wasting memory.
Is this a correct assessment?
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-21 12:43:47
Been prototyping an R-tree implementation using fancy Sort-Tile-Recursive bulk loading, as detailed here.

Generated from random points, notice the nice, clustered, non-overlapping (leaves) packing:
...
Probably one of my favorite data structures.
Nice job. Looks great.
I found that caching objects in local groups can speed up 2D pathfinding and even rendering significantly. I made something similar for polygons (regions) rather than points which was just a simple 2D array of tiles. Would be interesting to see your algorithm working with overlapping regions too.
What do you plan to use your algorithm for?
6  Discussions / General Discussions / Re: Client/Server Library Discussion on: 2015-01-08 14:24:38
I used MINA and it works well but just figuring out how to send a byte array was very painful.

I haven't used Kryonet but peoples' feedback in the forum is very positive and fellow JGO'er Nate is the developer and he's very astute.

A similarly good API that you might consider is that made by Riven, https://code.google.com/p/pyronet/ which is very fast and low-level.

Some discussion of the API's and the origin of pyronet and kryonet can be found here:
http://www.java-gaming.org/topics/pyronet-lowlevel-nio-wrapper/20647/view.html

Cheers,
Keith
7  Discussions / General Discussions / Re: 2015 Game Development Goals on: 2015-01-01 09:34:53
I recently discovered that this will require me to learn C which I'm quite excited and scared about.

You don't necessary have to know C/C++ to learn OpenGL, though some guides may require you to understand the basic syntax.
- Jev

I've read that openCL computation kernels are programmed in C99. From wikipedia: http://en.wikipedia.org/wiki/OpenCL#OpenCL_C_language
Quote
The programming language used to write computation kernels is called OpenCL C and is based on C99

As are openGL shaders. From wikipedia: http://en.wikipedia.org/wiki/OpenGL_Shading_Language
Quote
OpenGL Shading Language (abbreviated: GLSL or GLslang), is a high-level shading language based on the syntax of the C programming language.

Cheers,
Keith
8  Discussions / General Discussions / Re: 2015 Game Development Goals on: 2015-01-01 05:23:51
Over 2014 I was happy to learn novice-level html, javascript, SQL, linux and tomcat java enterprise edition and java server pages. Game-wise I made little progress but that's fine, I think these broad web development related skills will come in handy for games eventually. 

For 2015 I plan to learn about openCL and openGL. I recently discovered that this will require me to learn C which I'm quite excited and scared about.

It's nice to see so many new folk at JGO, and the older people still contributing interesting insights. Happy new year everyone  Smiley
9  Games Center / WIP games, tools & toy projects / Re: Defiance - An open-source multiplayer 2D shooter game in Java. on: 2014-12-31 01:40:42
Perhaps it's because one of the bots picked up speed shoes?!

GreenLantern made lots of awesome improvements to the game play. My favourites are the tranquiliser gun, rocket launcher, grenades and the trash-talking bots.

10  Games Center / Contests / Re: TAFSJ - The Actually Finish Something Jam on: 2014-12-23 11:23:39
Here is progress for today(warning: 21.9mb gif; click here for still image):
To be continued next week!

Great soft shadows, nice work!
11  Discussions / Miscellaneous Topics / Re: Markus bought a new house on: 2014-12-20 03:18:44
I couldn't live happily in a house like that - too much excess!

Me too! But does it say in the video that he'll live in it rather than rent?
He has to invest his money in something. Buying a big house isn't a bad investment, especially if he rents it out. It's better than blowing cash on a fancy car that just loses money.
The US real estate market hasn't fully recovered from it's big slump in the financial crisis, especially in LA, so I think he's made a good investment:
https://research.stlouisfed.org/fred2/series/LXXRSA


Some religions say that righteous people should donate 10% of their salary to charity (and Christians say that you should save another 10% for hard times in the future).
I'm sure Markus has given some money to charity, and probably gets hassled to every day, but he has no obligation.
12  Discussions / Miscellaneous Topics / Re: Markus bought a new house on: 2014-12-19 11:41:12
Incredible house. Markus is a hero.
It does look like a suitable place for minecraft HQ with the blocky architecture and flat lines everywhere  Cheesy
I still hope that one day I'll make it big like him.

As an aside, I wonder if he bought the house to live in or as an investment that he'll rent?
I'm doing research on house prices for my phd thesis. Average gross rental yields in Australia are 3.8%, which means that his $70m house should cost $2.66m per year to rent. However most high-end property rents for much less.
This indicates that buyers of high-end property place a premium on ownership and the benefits of not having a landlord. They also hope for high capital gains to make up for low rental yields.
13  Discussions / General Discussions / Re: Educational Game Ideas (for comp) on: 2014-12-19 11:22:17
Your chemistry idea is awesome, sounds like crafting which is all the rage.
14  Games Center / Contests / Re: End of 4K. Thanks all! on: 2014-11-30 03:01:40
I'm wondering what the greener pastures are? HTML5/WebGL/javascript as SimonH suggests?

I'm also moving my interests to other pastures.

Would it be heresy to suggest an HTML5 contest instead? I love java dearly but we have to be pragmatic.

Despite never participating i also thought it was a fantastic contest and enjoyed playing the games and seeing the horror and genius of the code.
15  Java Game APIs & Engines / OpenGL Development / Re: LWJGL 3; how's it getting along? on: 2014-11-19 03:36:25
Hi, Fantastic new release. Thanks for all of Spasi's and the LWJGL team's hard work.
The new window system is great.

By the way I was trying Riven's excellent tutorial on drawing geometry here (http://www.java-gaming.org/index.php?topic=24272.0) and it all works in LWJGL 3.0 without a hitch except for one line:

1  
ByteBuffer dataBuffer = GL11.glMapBufferARB(GL_ARRAY_BUFFER_ARB, ARBBufferObject.GL_WRITE_ONLY_ARB, (9 + 9) << 2, null);


Which just required ARBBufferObject.GL_WRITE_ONLY_ARB to be replaced with ARBVertexBufferObject.GL_WRITE_ONLY_ARB .

Cheers,
Keith
16  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Announce Pure Java HIDAPI on: 2014-10-21 15:04:37
I thought I read here a few hours ago that the api was not pure java but actually used JNA. Is that the case? Seems strange if those posts were deleted? Or am I going mad?  Huh
17  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
18  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!
19  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
20  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.
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-03 11:01:30
Looking suave! Is that the waltz?
Congratulations
22  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?
23  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
24  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.
25  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
26  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??
27  Discussions / Miscellaneous Topics / Re: Losing projects on: 2014-06-13 16:15:27
Bitbucket.org has free unlimited private repos too.
28  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.
29  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?
30  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?
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.

Archive (29 views)
2015-01-29 04:26:08

theagentd (24 views)
2015-01-28 15:33:52

GamerIDGoesHere (36 views)
2015-01-27 01:23:23

GamerIDGoesHere (37 views)
2015-01-27 01:22:15

CopyableCougar4 (46 views)
2015-01-27 00:34:41

CopyableCougar4 (30 views)
2015-01-26 04:47:56

Olo (23 views)
2015-01-25 21:26:00

Olo (28 views)
2015-01-25 18:44:22

Robo11 (46 views)
2015-01-25 06:14:26

basil_ (38 views)
2015-01-17 22:29:32
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

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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