This is an attempt of making the game Hamurabi using modern programming languages. The idea is to time the development and track the progress and the time it took to get in each stage in this document. If possible I want to finish this project in under 12 h.
Hamurabi is one of the first electronic games, arguably the first strategy game. The game is set in Babylon, where the player is the ancient king Hamurabi and must control the resources to feed the people and purchase land for a period of ten game rounds.
The game is based in html5/canvas, CSS and ES6 javascript.
Check it out here
AddLICENSE.md
andREADME.md
Host somewhereCopy PONG project baseCreate drawing/writting functionsResearch and add all the text of the gameCreate the user input mechanicsCreate the end round logicCreate game over conditionsImprove webpageFinished!
00:00 - START! This project has really started at November 6th, 2016 at 21:30 (BRT). I'm timing each step and will be placing the timestamp along with the achieved goal.
Well, since I already made a reproduction of the game PONG, I'll be using it as a base for this project. Then I created a repository at GitHub to host the game with gh-pages.
I'm not really in the mood of remakinkg the old terminal fonts by hands drawing squares on screen. I already did that in PONG and also a vector font in spacewar. Instead I've found a copy of a font for the VT320 terminal in google fonts.
The text drawing function gets a text as input and prints it on screen. If the text is larger than 61
characters, the functions splits it into more lines. So far, the game looks like this:
Since there was not much action in this game, I've spent this time just grinding with code, messing with strings and creating decision trees. Not much fun, but it's done (for now).
I think that the most interesting part was to do some archaeology and read the original source code in BASIC. There I found some constants and text that would be harder to find just by playing the game. So thanks to http://atariarchives.org/.
I also read an assignment for the CIT 591 class of the University of Pensylvania. It was some useful info too.
As far as I tested there were no bugs, but only throwing it into the wild we'll find tem. So I'll be patching once if there's enough feedback.
That's it for now.