Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Graphwar  (Read 3176 times)
0 Members and 1 Guest are viewing this topic.
Offline catabriga90

Senior Newbie


Projects: 1



« Posted 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

Offline ra4king

JGO Kernel


Medals: 336
Projects: 2
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2012-01-31 23:21:24 »

My math teacher will love this Tongue

Offline ReBirth
« Reply #2 - Posted 2012-02-01 00:59:30 »

Nice polished game. If you want add feature, add laplace version Grin Can I add computer player as enemy?

I remember 2 years ago I did try to create an app to solve normal equation to differential but not success (didn't know how to parse).

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #3 - Posted 2012-02-01 22:32:51 »

This is awesome! I played this yesterday with my host-dad. We loved it!
Afterwards, we brushed up on our math.

Can I suggest you add a test-chamber, or something with/without obstacles, so yuo can try out things?
Maybe a CPU to play against?

Offline Apo
« Reply #4 - Posted 2012-02-01 22:49:26 »

I love it!

Played it against the computer and it was really funny. Nice idea.

Perhaps you can add some better graphics but I love the gameplay. =)
Offline CommanderKeith
« Reply #5 - Posted 2012-02-01 23:04:48 »

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

Offline xsvenson
« Reply #6 - Posted 2012-02-02 11:17:15 »

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.

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Offline catabriga90

Senior Newbie


Projects: 1



« Reply #7 - Posted 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.
Offline ReBirth
« Reply #8 - Posted 2012-02-03 03:55:25 »

^ Sweet! Grin

Offline xsvenson
« Reply #9 - Posted 2012-02-03 12:10:43 »

Very nice!

Now I just need time to take a look at it :/ I wonder if there is a open source project for that too ...

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline catabriga90

Senior Newbie


Projects: 1



« Reply #10 - Posted 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.
Pages: [1]
  ignore  |  Print  
 
 

 
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!