Incremental kingdom defense game using JavaScript and Canvas