├── README.md ├── audio ├── sounds │ ├── button.ogg │ ├── construction.ogg │ ├── machine_gun-0.ogg │ ├── machine_gun-1.ogg │ ├── sell.ogg │ ├── tank-fire-0.ogg │ ├── tank-fire-1.ogg │ ├── tank-fire-2.ogg │ └── tank-fire-3.ogg ├── talk │ ├── acknowledged.ogg │ ├── affirmative.ogg │ ├── awaiting_orders.ogg │ ├── moving_out.ogg │ ├── over_and_out.ogg │ ├── ready_and_waiting.ogg │ ├── reporting.ogg │ ├── right_away.ogg │ ├── unit_reporting.ogg │ ├── vehicle_reporting.ogg │ └── yes_sir.ogg └── voice │ ├── building.ogg │ ├── building_in_progress.ogg │ ├── cancelled.ogg │ ├── cannot_deploy_here.ogg │ ├── construction_complete.ogg │ ├── insufficient_funds.ogg │ ├── low_power.ogg │ ├── mission_accomplished.ogg │ ├── mission_failure.ogg │ ├── new_construction_options.ogg │ ├── not_ready.ogg │ ├── on_hold.ogg │ ├── reinforcements_have_arrived.ogg │ └── unit_ready.ogg ├── debug.html ├── images ├── blank-blank.gif ├── blank-pointer.cur ├── buildings │ ├── advanced-power-plant-sprite-sheet.png │ ├── barracks-sprite-sheet.png │ ├── bib-sprite-sheet.png │ ├── bib │ │ ├── bib-2.gif │ │ ├── bib-3.gif │ │ └── bib-4.gif │ ├── construction-yard-sprite-sheet.png │ ├── hand-of-nod-sprite-sheet.png │ ├── power-plant-sprite-sheet.png │ ├── refinery-sprite-sheet.png │ ├── tiberium-silo-sprite-sheet.png │ └── weapons-factory-sprite-sheet.png ├── bullets │ └── 120mm.png ├── cursors.png ├── cursors │ ├── blank.cur │ ├── blank.gif │ └── invisible.cur ├── htitle.jpeg ├── loading.gif ├── logo.jpg ├── maps │ └── gdi │ │ └── map01.jpeg ├── sidebar │ ├── buttons │ │ ├── hmap 000.png │ │ ├── hmap 001.png │ │ ├── hmap 002.png │ │ ├── hrepair 000.png │ │ ├── hsell 000.png │ │ ├── hstripdn0.png │ │ ├── hstripdn1.png │ │ ├── hstripup0.png │ │ ├── hstripup1.png │ │ ├── repair-pressed.png │ │ └── sell-pressed.png │ ├── cnc-2.ttf │ ├── cnc.ttf │ ├── hold.png │ ├── icons-sprite-sheet.png │ ├── icons │ │ ├── advanced-communication-tower-icon.png │ │ ├── advanced-guard-tower-icon.png │ │ ├── advanced-power-plant-icon.png │ │ ├── air-strike-icon.png │ │ ├── airstrip-icon.png │ │ ├── apache-icon.png │ │ ├── apc-icon.png │ │ ├── artillery-icon.png │ │ ├── barbed-wire-icon.png │ │ ├── barracks-icon.png │ │ ├── chain-link-icon.png │ │ ├── chem-warrior-icon.png │ │ ├── commando-icon.png │ │ ├── communications-tower-icon.png │ │ ├── concrete-wall-icon.png │ │ ├── engineer-icon.png │ │ ├── flame-tank-icon.png │ │ ├── flamethrower-icon.png │ │ ├── grenadier-icon.png │ │ ├── guard-tower-icon.png │ │ ├── gunboat-icon.png │ │ ├── hand-of-nod-icon.png │ │ ├── harvester-icon.png │ │ ├── helipad-icon.png │ │ ├── hover-craft-icon.png │ │ ├── ion-cannon-icon.png │ │ ├── jeep-icon.png │ │ ├── light-tank-icon.png │ │ ├── mammoth-tank-icon.png │ │ ├── mcv-icon.png │ │ ├── medium-tank-icon.png │ │ ├── minigunner-icon.png │ │ ├── msamicnh.png │ │ ├── nod-buggy-icon.png │ │ ├── nuclear-strike-icon.png │ │ ├── obelisk-icon.png │ │ ├── orca-icon.png │ │ ├── power-plant-icon.png │ │ ├── recon-bike-icon.png │ │ ├── refinery-icon.png │ │ ├── repair-facility-icon.png │ │ ├── rocket_soldier-icon.png │ │ ├── sam-site-icon.png │ │ ├── sandbags-icon.png │ │ ├── ssm-launcher-icon.png │ │ ├── stealth-tank-icon.png │ │ ├── support-aircraft-icon.png │ │ ├── temple-of-nod-icon.png │ │ ├── tiberium-silo-icon.png │ │ ├── transport-icon.png │ │ ├── turret-icon.png │ │ ├── weapons-factory-icon.png │ │ └── wooden-fence-icon.png │ ├── message_box.jpg │ ├── placement-red.gif │ ├── placement-white.gif │ ├── power │ │ ├── power_bar_green.png │ │ ├── power_bar_orange.png │ │ ├── power_bar_red.png │ │ ├── power_indicator.png │ │ └── power_indicator2.png │ ├── primary.png │ ├── radar │ │ ├── gdi │ │ │ ├── radar 000.png │ │ │ ├── radar 001.png │ │ │ ├── radar 002.png │ │ │ ├── radar 003.png │ │ │ ├── radar 004.png │ │ │ ├── radar 005.png │ │ │ ├── radar 006.png │ │ │ ├── radar 007.png │ │ │ ├── radar 008.png │ │ │ ├── radar 009.png │ │ │ ├── radar 010.png │ │ │ ├── radar 011.png │ │ │ ├── radar 012.png │ │ │ ├── radar 013.png │ │ │ ├── radar 014.png │ │ │ ├── radar 015.png │ │ │ ├── radar 016.png │ │ │ ├── radar 017.png │ │ │ ├── radar 018.png │ │ │ ├── radar 019.png │ │ │ ├── radar 020.png │ │ │ ├── radar 021.png │ │ │ ├── radar 022.png │ │ │ ├── radar 023.png │ │ │ ├── radar 024.png │ │ │ ├── radar 025.png │ │ │ ├── radar 026.png │ │ │ ├── radar 027.png │ │ │ ├── radar 028.png │ │ │ ├── radar 029.png │ │ │ ├── radar 030.png │ │ │ ├── radar 031.png │ │ │ ├── radar 032.png │ │ │ ├── radar 033.png │ │ │ ├── radar 034.png │ │ │ ├── radar 035.png │ │ │ ├── radar 036.png │ │ │ ├── radar 037.png │ │ │ ├── radar 038.png │ │ │ ├── radar 039.png │ │ │ ├── radar 040.png │ │ │ ├── radar 041.png │ │ │ └── radar 042.png │ │ └── nod │ │ │ ├── radar 000.png │ │ │ ├── radar 001.png │ │ │ ├── radar 002.png │ │ │ ├── radar 003.png │ │ │ ├── radar 004.png │ │ │ ├── radar 005.png │ │ │ ├── radar 006.png │ │ │ ├── radar 007.png │ │ │ ├── radar 008.png │ │ │ ├── radar 009.png │ │ │ ├── radar 010.png │ │ │ ├── radar 011.png │ │ │ ├── radar 012.png │ │ │ ├── radar 013.png │ │ │ ├── radar 014.png │ │ │ ├── radar 015.png │ │ │ ├── radar 016.png │ │ │ ├── radar 017.png │ │ │ ├── radar 018.png │ │ │ ├── radar 019.png │ │ │ ├── radar 020.png │ │ │ ├── radar 021.png │ │ │ ├── radar 022.png │ │ │ ├── radar 023.png │ │ │ ├── radar 024.png │ │ │ ├── radar 025.png │ │ │ ├── radar 026.png │ │ │ ├── radar 027.png │ │ │ ├── radar 028.png │ │ │ ├── radar 029.png │ │ │ ├── radar 030.png │ │ │ ├── radar 031.png │ │ │ ├── radar 032.png │ │ │ ├── radar 033.png │ │ │ ├── radar 034.png │ │ │ ├── radar 035.png │ │ │ ├── radar 036.png │ │ │ ├── radar 037.png │ │ │ ├── radar 038.png │ │ │ ├── radar 039.png │ │ │ ├── radar 040.png │ │ │ ├── radar 041.png │ │ │ └── radar 042.png │ ├── ready.png │ ├── repair-big.png │ ├── repair-small.png │ ├── select 000.png │ ├── select 001.png │ ├── sidebar.png │ ├── tabs.png │ └── trans2.gif ├── tiles │ └── temperate │ │ ├── tiberium-sprite-sheet.png │ │ ├── tree-sprite-sheet.png │ │ └── trees-sprite-sheet.png ├── turrets │ ├── guard-tower-sprite-sheet.png │ └── gun-turret-sprite-sheet.png └── units │ └── vehicles │ ├── harvester-sprite-sheet.png │ ├── light-tank-sprite-sheet.png │ └── mcv-sprite-sheet.png ├── index.html └── js ├── --no-seqs ├── cnc-old.js ├── cnc-v0.1.js ├── cnc-v0.2.js ├── cnc-v0.2b.js ├── cnc-v0.3.js ├── cnc-v0.31.js ├── cnc-v0.3b ├── cnc-v0.3b.js ├── cnc-v0.3c.js ├── cnc-v0.3d.js ├── cnc.js ├── jquery.js └── jquery.min.js /README.md: -------------------------------------------------------------------------------- 1 | Command & Conquer - HTML5 2 | ============================= 3 | 4 | ## About 5 | 6 | This is a recreation of the original Command and Conquer, Real Time Strategy game entirely in HTML5 and Javascript. 7 | 8 | This project is only intended as a technical proof of concept to demonstrate the basic working elements of an RTS game in HTML5. No commercial use is intended. All images and sounds used are from C&C - Tiberian Dawn and are property of the original game creators. 9 | 10 | This game works best on Google Chrome or Mozilla Firefox. The images can take a little while to load so please be patient. 11 | 12 | ## Notes & Demo URL 13 | 14 | You can find a working demo of this project on http://www.adityaravishankar.com/projects/games/command-and-conquer-demo/ 15 | 16 | Details and notes about the development of the project are available on my website at http://www.adityaravishankar.com/2011/11/command-and-conquer-programming-an-rts-game-in-html5-and-javascript/ 17 | 18 | NOTE: The source code shared here is from the earlier demo version of the project. This version is no longer being developed and the code is being shared so others can learn from it. 19 | 20 | ## Newer Version & Updates 21 | 22 | A more recent version of the project is available here. http://www.adityaravishankar.com/projects/games/command-and-conquer/ 23 | 24 | This version is a complete rewrite of the earlier demo shared on github. 25 | 26 | The new version has more levels from the original game, more units, explosions, effects and background music. Multiplayer support is also being tested using Node.js & nowjs. 27 | 28 | [Demo Video](http://www.youtube.com/watch?v=HTZCMxNtloQ) 29 | 30 | This new version is NOT open source. It is still free to play. 31 | 32 | News, updates, screenshots, videos and invites to beta releases are available on the [C&C HTML5 Facebook page](http://www.facebook.com/CommandConquerHtml5) 33 | -------------------------------------------------------------------------------- /audio/sounds/button.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/button.ogg -------------------------------------------------------------------------------- /audio/sounds/construction.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/construction.ogg -------------------------------------------------------------------------------- /audio/sounds/machine_gun-0.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/machine_gun-0.ogg -------------------------------------------------------------------------------- /audio/sounds/machine_gun-1.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/machine_gun-1.ogg -------------------------------------------------------------------------------- /audio/sounds/sell.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/sell.ogg -------------------------------------------------------------------------------- /audio/sounds/tank-fire-0.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/tank-fire-0.ogg -------------------------------------------------------------------------------- /audio/sounds/tank-fire-1.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/tank-fire-1.ogg -------------------------------------------------------------------------------- /audio/sounds/tank-fire-2.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/tank-fire-2.ogg -------------------------------------------------------------------------------- /audio/sounds/tank-fire-3.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/sounds/tank-fire-3.ogg -------------------------------------------------------------------------------- /audio/talk/acknowledged.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/acknowledged.ogg -------------------------------------------------------------------------------- /audio/talk/affirmative.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/affirmative.ogg -------------------------------------------------------------------------------- /audio/talk/awaiting_orders.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/awaiting_orders.ogg -------------------------------------------------------------------------------- /audio/talk/moving_out.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/moving_out.ogg -------------------------------------------------------------------------------- /audio/talk/over_and_out.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/over_and_out.ogg -------------------------------------------------------------------------------- /audio/talk/ready_and_waiting.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/ready_and_waiting.ogg -------------------------------------------------------------------------------- /audio/talk/reporting.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/reporting.ogg -------------------------------------------------------------------------------- /audio/talk/right_away.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/right_away.ogg -------------------------------------------------------------------------------- /audio/talk/unit_reporting.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/unit_reporting.ogg -------------------------------------------------------------------------------- /audio/talk/vehicle_reporting.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/vehicle_reporting.ogg -------------------------------------------------------------------------------- /audio/talk/yes_sir.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/talk/yes_sir.ogg -------------------------------------------------------------------------------- /audio/voice/building.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/building.ogg -------------------------------------------------------------------------------- /audio/voice/building_in_progress.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/building_in_progress.ogg -------------------------------------------------------------------------------- /audio/voice/cancelled.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/cancelled.ogg -------------------------------------------------------------------------------- /audio/voice/cannot_deploy_here.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/cannot_deploy_here.ogg -------------------------------------------------------------------------------- /audio/voice/construction_complete.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/construction_complete.ogg -------------------------------------------------------------------------------- /audio/voice/insufficient_funds.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/insufficient_funds.ogg -------------------------------------------------------------------------------- /audio/voice/low_power.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/low_power.ogg -------------------------------------------------------------------------------- /audio/voice/mission_accomplished.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/mission_accomplished.ogg -------------------------------------------------------------------------------- /audio/voice/mission_failure.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/mission_failure.ogg -------------------------------------------------------------------------------- /audio/voice/new_construction_options.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/new_construction_options.ogg -------------------------------------------------------------------------------- /audio/voice/not_ready.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/not_ready.ogg -------------------------------------------------------------------------------- /audio/voice/on_hold.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/on_hold.ogg -------------------------------------------------------------------------------- /audio/voice/reinforcements_have_arrived.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/reinforcements_have_arrived.ogg -------------------------------------------------------------------------------- /audio/voice/unit_ready.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adityaravishankar/command-and-conquer/44eb28bcd48df3a6560398b91d4cb6572c351712/audio/voice/unit_ready.ogg -------------------------------------------------------------------------------- /debug.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |Updates: 111 |
Controls: 139 |
DISCLAIMER: This project is only intended as a technical proof of concept to demonstrate the basic working elements of an RTS game in HTML5. No commercial use is intended. All images and sounds used are from C&C - Tiberian Dawn and are property of the original game creators.
165 | 166 |This is a recreation of the original Command and Conquer, Real Time Strategy game entirely in HTML5 and Javascript.
108 |This page works best on Google Chrome or Mozilla Firefox. The images can take a little while to load so please be patient.
109 | 110 |This is still a work in progress. Any comments or feedback (including bugs), is appreciated. I intend to develop this game further - improving the AI, pathfinding (See improved pathfinding demo here), adding more units and levels. If you are interested in helping out with this effort (even by just testing the game and giving feedback), please let me know.
111 |BUGS and ISSUES:
Please report bugs on the github issues page or in the comments section below. https://github.com/adityaravishankar/command-and-conquer/issues
If you liked this demo, please let me know by clicking on the Like button below and leaving me a comment. Please share this page with your friends so that they can see it too.
114 |You can read more about the development of this game on my blog. You can also check out some of the other games I have written or read some of my game programming articles.
115 | My goal is to take this game as far as possible - Add more units, optimize the code, add better AI and multiplayer games. You would be able to come to this page, find a random partner and start playing!!169 |
Updates: 174 |
Controls: 222 |
DISCLAIMER: This project is only intended as a technical proof of concept to demonstrate the basic working elements of an RTS game in HTML5. No commercial use is intended. All images and sounds used are from C&C - Tiberian Dawn and are property of the original game creators.
248 | 249 |
141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | Tweet 151 | 152 | 153 |