Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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]
1  Games Center / Showcase / Re: Graphwar on: 2012-02-03 18:32:08
Really great idea!

You should enter this in the STEM comp: http://www.java-gaming.org/topics/national-stem-video-game-challenge/25197/view.html

That sounds really nice, perfect competition for this game, unfortunately I am not a US citizen.
2  Games Center / Showcase / Re: Graphwar on: 2012-02-02 18:05:27
I noticed You have source available, so I'll take a look later on

BUT ...

The most I'm interested of is the part that interprets the math function. Is this done by a lib or did You write something Yourself ?
What functions does it support ? etc...

I have an old old utility program, that visualizes some functions, but sofar the functions are hardcoded. I'd love to rewrite it so I could just dynamically input the equation.


I wrote it all myself, the code you would be interested is in PolishNotationFunction.java . It is mostly not specific to the game and would probably be easy to use on your own code with minimal modifications. The functions supported are:

sqrt()
log()
ln()
abs()
sin()
cos()
tan()
exp()

and the operators are: + - / * ^

Adding new functions would also be simple, I had actually a few more functions implemented but decided to remove from the game, like hyperbolic sines. Adding new operators would be much more complex.
3  Games Center / Showcase / Graphwar on: 2012-01-31 19:23:42

Graphwar is an artillery game in which you must hit your enemies using mathematical functions. The trajectory of your shot is determined by the function you wrote, and your goal is to avoid the obstacles and your teammates and hit your enemies. The game takes place in a Cartesian Plane.

It's an applet and I have a website for it: www.graphwar.com

Up to 10 players can play online and it is also possible to play against a computer, but be careful, the computer is really good so try to play against very low levels (around 10) in the beginning.

There is a tutorial and I recommend reading it to understand how to play: http://www.graphwar.com/tutorial2.html

The code is open source and released under the GPL and is available on the website.

Cheers

Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (140 views)
2013-05-17 21:29:12

alaslipknot (149 views)
2013-05-16 21:24:48

gouessej (180 views)
2013-05-16 00:53:38

gouessej (173 views)
2013-05-16 00:17:58

theagentd (183 views)
2013-05-15 15:01:13

theagentd (168 views)
2013-05-15 15:00:54

StreetDoggy (212 views)
2013-05-14 15:56:26

kutucuk (236 views)
2013-05-12 17:10:36

kutucuk (235 views)
2013-05-12 15:36:09

UnluckyDevil (240 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.072 seconds with 21 queries.