Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Graphwar  (Read 1472 times)
0 Members and 3 Guests are viewing this topic.
Offline catabriga90

JGO n00b
*

Posts: 3



« on: 2012-01-31 13: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
*****

Posts: 3155
Medals: 196


I'm the King!


« Reply #1 on: 2012-01-31 17:21:24 »

My math teacher will love this Tongue

Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #2 on: 2012-01-31 18: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! Go get 'em!
Offline Mads

JGO Ninja
***

Posts: 674
Medals: 16


Directly directional


« Reply #3 on: 2012-02-01 16: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

Full Member
**

Posts: 172
Medals: 1



« Reply #4 on: 2012-02-01 16: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

JGO Wizard
****

Posts: 1455
Medals: 9



« Reply #5 on: 2012-02-01 17: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

JGO n00b
*

Posts: 31



« Reply #6 on: 2012-02-02 05: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

JGO n00b
*

Posts: 3



« Reply #7 on: 2012-02-02 12: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

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #8 on: 2012-02-02 21:55:25 »

^ Sweet! Grin

Offline xsvenson

JGO n00b
*

Posts: 31



« Reply #9 on: 2012-02-03 06: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! Go get 'em!
Offline catabriga90

JGO n00b
*

Posts: 3



« Reply #10 on: 2012-02-03 12: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]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.112 seconds with 19 queries.