Page 1 of 1

HTML5 Defcon

Posted: Wed May 22, 2013 7:45 pm
by gtanczyk
Hello! My name is Grzegorz, I love DEFCON game, bought it few years ago, played online very often. Recently I started work on HTML5 DEFCON clone. The game is written in JavaScript language(vanilla) and is supposed to work in my GameCloud solution. It's "noBackend" type of service, which lets anyone develop multiplayer game, writing code like server side never existed.

The game name is Dupocracy, it came from polish word: "dupokracja", which means ass-o-cracy :)

Jokes aside, I need help, source code is hosted on GitHub. So far I managed to develop working prototype of game, although it is missing "conventional warfare". The code is full of bugs, graphics.. well theere are no graphics, the game is barely working, yet it has great potential.

Any help is needed, coding, testing, designing gameplay, UI and graphics. Contact me or respond here if You are interested and/or have any questions. Thanks! :)

GitHub source repository:

Playable demo:
(hint: to create other room, change "introversion" into to other word)
(hint^2: use Chrome, it does not work properly on FireFox.. YET)

Screenshot from recent state of game:

Posted: Wed May 22, 2013 9:22 pm
by NeatNit
This looks great, I hope to see you develop this further.

Posted: Wed May 22, 2013 11:37 pm
by Laika
Not sure if I can help you, but I'm fairly interested where it goes. Good luck !

Posted: Thu May 23, 2013 2:40 am
by kudayta
Ok, I'll admit it, that looks pretty cool.

Posted: Fri May 24, 2013 11:00 am
by NeatNit
I am especially interested in a HTML5 version of any game, but this one seems very promising. Specifically, I hope I could get this working on computers in my office, where they are disconnected from the internet (instead using a separate network) and I cannot insert anything through USB. So HTML5 games can simply be printed at home and typed back in into the office computers.
It would also be excellent if I could get this working without too much relying on the existence of a server, only requiring the game files locally and an IP address of one of the players which would be host. If you could make it work like that it would be great for me. :)

DEFCON is a great game for office because it doesn't need constant attention.

Posted: Fri May 24, 2013 8:07 pm
by gtanczyk
Networking in this game is a kind of pseudo peer to peer, in code it looks like players are directly connected to each other. One of players is a host.
For now it works via websocket server(hosted on amazon ec2), however its only role is to exchange messages between players, handle timeouts, disconnections etc.
There are other other options like WebRTC(true p2p in browser). It is possible to seamlessly change networking component in future.

Chrome Apps is an option for "office computers" and I was already doing some stuff with it, so it is definitely possible to achieve something like this: files localy + IP address of host.

If You are inteterested in helping me with this game just by testing it and providing some feedback, send me a PM so I can arrange some testing, when I achieve milestone in development. It may take few weeks until it will become playable tho :)

Posted: Mon Jun 03, 2013 11:15 pm
by trickser
NeatNit wrote:So HTML5 games can simply be printed at home and typed back in into the office computers.

:shock: What?

To the actual topic: pretty appealing idea to have a browser defcon!

Posted: Tue Jun 04, 2013 5:16 am
by NeatNit
trickser wrote:
NeatNit wrote:So HTML5 games can simply be printed at home and typed back in into the office computers.

:shock: What?

To the actual topic: pretty appealing idea to have a browser defcon!

All graphics will be redrawn in Paint.

Posted: Tue Jun 04, 2013 10:39 am
by Magellan
Great work!

Posted: Wed Jun 05, 2013 7:58 pm
by gtanczyk
Thanks for response. There was some significant progress in development, however there are still no ships, submarines, bombers nor fighters ;)

Maybe it will be playable before end of June. Gameplay is not finished yet(no scoreboard, victory modes, game speed, alliances etc.) and I will have to put a lot of work and heart in UI/UX and graphic assets.

Some more recent screenshot (those white dots, these are "scouts", passive aircrafts):

Posted: Thu Jun 06, 2013 5:18 am
by BMN
I've tried playing this.
Two problems: It won't start unless I make two players in two browsers to play against each other. I guess there's no ai or solo ability. This is okay but a little annoying.
Also, When I do start, it gets suck on the "place radars, you have 2 minutes!" screen. Everything else is black and I'm not sure whether I wait for minutes on end before game starts or something is wrong.

Posted: Sun Jun 09, 2013 10:24 pm
by gtanczyk
Most likely it was one of those bugs, I will fix them all :)

I've just started working on AI, however I didn't play DEFCON vs computer, so I'm not sure if I can do it properly. Should be done within a week.

Btw. I have some experience in programming AI, here is link to my programming game: (for anyone who is into programming in JS)

Posted: Thu Jun 20, 2013 12:17 am
by gtanczyk
Single player version with working AI: ... l?loopback

Next thing I will work on are UI and performance improvements.

New screenshot: