Final Screenshot

Sea War

seaWar-logo This is a 2D real-time strategy game! It lets two player play on one machine.

P.S. This game is for my sons, They are 4+ and 2+.(four years old and two years old)


Give this entry an award


Ratings (show detail)

Overall: 2.2
Fun: 1.7
Production: 2.4
Innovation: 2.4

23% respondents marked the game as not working.
1% of respondents wished to disqualify the entry.
Respondents: 13


File Uploader Date
Final Screenshot
milker 2008/04/20 07:45
Sea War 1.0 Release
milker 2008/04/04 23:15
Keyboard handle
milker 2008/04/04 23:02
SeaWar 1.0 rc2 release
milker 2008/04/04 21:06
Game Designning
milker 2008/04/04 07:57
GamePad Control
milker 2008/04/04 05:03
Player Area Infomation
milker 2008/04/04 04:00
Robot infomation in Text mode
milker 2008/04/04 03:02
Object Info display in line mode
milker 2008/04/04 02:48
0.9 Alpha release
milker 2008/04/03 17:46
Play in One User Mode
milker 2008/04/03 16:31
The Game is Over.
milker 2008/04/03 10:10
Sea War in 2008-04-03
milker 2008/04/02 17:30
Screen display Object Info
milker 2008/04/02 03:59
2008-04-01 has focus dot
milker 2008/04/01 16:55
Sea War 2008-4-1
milker 2008/03/31 17:48
Sea War Logo
milker 2008/03/31 17:40
Sea War MKII
milker 2008/03/31 08:58
The sea war
milker 2008/03/30 16:53

Diary Entries


Change !!!!!!!!

Add a comment

change it.

change it.

Add a comment


Boom is change!!!!!


New It

I will write the new game.
  1. Just use 8bit color
  2. follow robot theme
  3. add configure tool.
  4. use the new game logic


The robot icon

This is the robot icon, maybe it can help someone.

Add a comment

Another robot icon

This is another robot icon, it is four octopus.

Add a comment

The green robot icon

This is the green robot icon.

Add a comment

The sea nettle robot

It is green, have fun ?

Add a comment

Bubble Boom

This is four Bubble Boom.

Add a comment

Write a New game.

I will write a new game in this week.

I am sorry! because I was don't follow the rule before.


1 comment

Now power

Today Morning, My computer wasn't power.!!!
Everything was stoped.

Add a comment

The Focus Dot

This is Focus Dot, it use for user handler, I like the handler is Joystick and many keys to handle user input.

Add a comment

Two Focus Dot

I create two Focus Dot, I use it to handle user input.


People Icon

This is the people icon, that show player how many robot is alive.


Mark, Just a mark.

Just a Mark, Mark it and go away.

Add a comment

Children are playing Sea War.

there are my two sons, who are playing Sea War.


SeaWar Alpha 0.8 Release

Enjoy it. :>

HowTo play the game ?
Just press 'K_h' and see the help page.

Or see the source code. heeee!!!

1 comment

SeaWar 0.9 Alpha Release

You can run in non joystick mode, one joystick mode and two joystick mode, it will auto detect your system's joystick.

Just Download it --

Sea War is running in One User Mode, now!!


  1. Sea War cann't running in more then two joystick mode. ( has bug, now.)
  2. Sound is Ok!


Game configure tool or Document ?

I want write a configure tool for my game.

But I haven't more time for it.

I think: I need to choice:
  1. configure tool
  2. Document for game. (my english is poor! maybe you cann't understand.)
Are you have any idea?


Why write a Game ? ( SeaWar )

In 2008 easter, I wanted to write someting. that can help my sons to learn.

I have two gamepad and I am a linux user too.

So, I started to learn write a game. It is name Racing Killer. it is a shooting game.

My two sons love it more. they play it everyday.

I was decide to post it to internet. I found pyweek

pyweek#6 is my first challenge about computer skill.

I join it and post Racing Killer in there.

But it was broke the rule( because the game isn't write this week.), so I write a new game, it name SeaWar.


Game philosophy (Sea War)

Sea War is a 2D real-time strategy game. It isn't like C&C , it just design for children about 4+ ( fours year old. ), so the game logic is very simple.

Another thing, Sea War is design for multi-player, they can play in same time and using one LCD monitor. they are taking up them joysticks and play it, they are talking and laughing.

I don't know howto active a two mouse in linux, so Sea War use joystick to play, and my son love joystick than keybroad and mouse.

Add a comment

Coding style

In many year ago. I started learning OO (Object Oriented) in programming skill. when I learned ruby and Java .

OO is difference than Old C style. ( my first computer language is Basic . it was running on a 8089 processor. it had not OO :<

One day my friend told me, he wrote a new java game.

He said that, when he did re-create a world. there had a ball and a stick.
  1. what color was the ball has?
  2. the ball was moving like ?
  3. what color was the stick has?
  4. the stick was moving like ?
  5. when the stick met the ball ?
  6. what happen, when the stick met the ball ?
  7. or the world has power object. it was becoming ball and stick ? that was liked Aristotle said.
It didn't to thinking about process, focus to thinking about ball or stick,
when you care ball and stick. the world ( game ) should become very interest.

I did same in Sea War.

Add a comment

Sea War player manual

The World

SeaWar has two part in game screen, Top is the sea, bottom is the player information broad. Robots is working in sea area.

Robots in SeaWar
Robot Octopus is player soldier in the game. The game have green octopus and blue octopus.(two tearm)

they can run and fight, they are automatic.
they split up, when they have full power.
Robot See Nettle, No player own them, it is growing in see.
They can grow, but cann't move location in the sea, except player move it.
Robot Octopus eats it to incoming them power.

Robot's information (line mode and Text mode)

In the every robots ( Octopus and See Nettle ), It has some usefull infomation.

Line mode
  1. power circle -- It shows the robot power. See Nettle can use the life circle to remote-kill another robot.
  2. life line -- robots has a fix life time, whe the time is over it will die. 
  3. high point line -- It is recode the robot highest power point in his lifetime.

Text mode
Player can use text mode display robot's infomation in player area. ( Pleas see PlayerControl )
  1. p -- power
  2. h -- high point
  3. l -- life

Robot's mark
Robot has rich mark sign.

Fire, When robots the power is low. it will burning and display the fire sign.
Mark, It is a player handle sign, Please see PlayerControl.
Focus, It is a player handle sign, Please see PlayerControl.
X, Robot is hitting.

Player Area Information
SeaWar has two playarea, (TODO: SeaWar can play more then  two player in same time, so maybe SeaWar can has more then two playerarea in future. )

This information area can help user to make a good decide and enjoy control robots. 

Many useful information in playarea.
  1. Player team total powers: It shows how many power in player team, When player's total powers lost, other player will win the game.
  2. Team Members: It shows how many soldiers in player team.
  3. mark robot: Player can mark any robot in game. ( See PlayerControl )
  4. catch robot: It shows what robot is catched. Player can safely move the robot location in the Sea.
  5. mark robot and focus robot: Display a robot's information in text mode. 

HowTo Play the Game (PlayerControl)
SeaWar is design for 4+ and 2+ children. so all robots don't need control. they should working smooth for themself!!

If the player want to control them, player can move the focus mark in the sea, and do:

Player move focus sign, focus will automatic scan robots information and display text mode information in focus robot area and mark robot area.

If player want to mark someone. (It will keep display marked robot's information in mark area).  player can use mark, when robot marked, it will display mark sign in its face. Of course player can release the mark.

Player move focus sign, focus can catch a robot in one times. when player catchs a robot, the robot face will display focus sign, then player can safely move the catch-robot anywhere in sea. when player free catch. the robot will working automatic again.

When Player complete destruction another side's robot soldier. He will win the game.

GamePad Control structure

  1. move Robot See Nettle to feed your soldier.
  2. move the less life time soldier to eat robot see nettle.
  3. ......

Keyboard Support ( When system hasn't joystick )
use key [WSAD] for move; [f] for mark, [v] is release mark and [g] for catch, [b] is release catch.

Thank john, who give me idea to support keyboard.


freeze the project

Thank richard, who created PyWeek.

I enjoy it. see you later. ( Maybe in pyweek#7 )


Keyboard's arrow key

Many game use arrow key to handle robot or car, like running or jumping.

It is easy to handle for more people, but not for my sons.
because my keyboard is Happy Hacking Keyboard.
If my son need to press 'K_UP', he need to press [Fn] + [[]
So, the joystick control is good enough for them. If you don't have any idea to control your robot. Pleas support Joystick ( Thank you !!)


SeaWar 1.0 RC1 Release

I try add keyboard support in game.

it can run. but very ugly (has bugs).


use key [WSAD] for move, [fv] for mark and [gb] for catch.


SeaWar 1.0 RC2 Release

Add Keyboard support.
I suggest you use joystick to play this game.
Keyboard support just show in non-joystick system ( hasn't joystick ).

use key [WSAD] for move; [f] for mark, [v] is release mark and [g] for catch, [b] is release catch.

P.S. I had compete debug about Keyboard support.
But now the code is ugly.
If I have time, I will clear it later

SeaWar is depend:
  1. python 2.4( maybe can running in above 1.5 )
  2. pygame 1.7

Thank john, who give me idea to support keyboard.

Add a comment

SeaWar 1.0 Release

Thank you.

Just say [[[[Thank you.]]]]
special thank my wife.

She support me to join pyweek#6.

See you in pyweek#7
enjoy OpenSource, enjoy Python, enjoy pyweek....


Can I change the final screenshot ?

Please help me.
I want to change the final screenshot to

Who can help me ?

1 comment

Sea War Home Page

You can find addon or later version in here.
SeaWar 1.01 release. ( change focus graphic ).

Add a comment

I haven't python2.5

I am sorry.

I cann't success to test all game in my linux box.
my machine running debian 4.0 and python 2.4

python2.5 isn't full support in debian4.0


SeaWar some lib was coming from RacingKiller

Thank john talk me that.

=== You are supposed to make the game itself, including the lib after the compo started.===

I am sorry. SeaWar was use some old lib, that the lib was create before the compo.

If any people don't like that. I just say sorry. and tell richard to cancel my entry. please.

This is my first times to play in pyweek ! Just say sorry. :(


Can I modify some game and post the link in here ?

Hi, everybody.

I love some game. that was created in pyweek#6. Can I modify it ??
And Post the link in here ??


Thank You for your respondents

I think: the game's logic isn't easy understand. and the game need two player and two joystick, maybe isn't good for you.
But I enjoy it.

Thank you for your respondent.
P.S. I will care the diff type joystick setting in next game. ^^
and keep it easy control from us keybroad.
Thank you for report it cann't running in XP.
I just test it in my linux ( debian ) .

Add a comment

library before challenge

I am sorry,I want to ask another question:

some people can use some library, that create before the challenge, and some people cann't.

Why they can? why the cannot??

1 comment

Dancing Block (post pyweek#6)

It is a post pyweek#6 game.

You will like it.
Now: it require a dancing-pad.

:) it will support keybroad, later.

Project Home:


Dancing Block 1.5 (Keybroad Support)

Dancing Blocks 1.5

Add Keybroad Support. ^^

Add a comment

Dancing Block 2.0 release

Thank you for your care and play.

I hope that, you will like it.

Add a comment