Skip to content

AliHaine/GameFarmerJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

FarmSimulator

This project is a game wrote with html, css and javascript 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.

Features

  • Game settings to configure the major aspect of the game (map size, crops grow speed, ...)
  • Display bar of resources and available elements, so player can select element (such as crops) in a drop down button who are placed in a bar
  • Multiple resources and elements (tree, rock, crops, ...)
  • Shop system to buy or sell animals, builds, seeds, crops...
  • When elements are recolted animation is displayed with the owned resource
  • Conditional harvesting and plant: Impossible to plant crops in a not plowed grass, to harvest a not fully grown crops, [...]
  • Multiple crops with animation, who each of them have different time to grow, different much of resource recolted
  • Map generated randomlly
  • Animals with AI
  • Builds

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

Command Description
Left click Select a element, or set it to the target square if already selected
Right click Act on the target square to collect resources or change the ground
Mouse whell Change the rotation of an object if the object can rotate (such as barriers)

About

Web farm game write in JS HTML and CSS without libs or framwork

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors