Skip to content

A 2D game in which you are playing an ant eater chasing an ant in her journey to gathering leafs. It is based on Monogame library and illustrates the basics of a state machine

Notifications You must be signed in to change notification settings

itivadar/LilAnt-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lil Ant Game

This project is a fun game based on the MonoGame library. The library lets you create cross-platform games by offering features such as: game framework, 2D rendering and handing user inputs.

The user plays as the ant eater who chase the ant in her journey of gathering leafs. The user can control the ant eater by moving the mouse. The ant moves automatically and her behaviour is predicted by a state machine. The ant will try to gather as many leafs as possible but avoiding the ant eater. You can make the ant to run away if you bring the ant eater too close to the little creature.

You can give it a try by download it from the the latest release.

Game screen

The state machine

The ant behaviour is defined by a state machine. Each state represents an action that the ants takes. The transitions between these states are based on conditions that needs to be met.

The ant will not go for the leaf if the ant eater is too close. State machine

Screenshots

Leafing

Running

About

A 2D game in which you are playing an ant eater chasing an ant in her journey to gathering leafs. It is based on Monogame library and illustrates the basics of a state machine

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages