Home

GameFarmer

JavaScript
HTML
CSS

This project is a game wrote without framework or external libraries. This game is a farm manager, player have to plant crops, build, manage animals, to recolt resources and make money. The main motivation for this project is to learn and increase skills in JavaScipt, HTML and CSS.

Before image

Features

Architecture and Pattern

MVC for the global project logical.

Class only: This project is mainly for learn my personal skills, so I decide to use classes only to explore the limitations and advantages of classes in JS.

ESM: Completely work with the modern ESM module management.

Commands

CommandDescription
Left clickSelect a element, or set it to the target square if already selected
Right clickAct on the target square to collect resources or change the ground
Mouse whellChange the rotation of an object if the object can rotate (such as barriers)