Skip to content

This is simple implementation of Flyweight, strategy and singleton patters to minimize memory usage and optimize game play in your project

Notifications You must be signed in to change notification settings

gramishvili/Flyweight-In-UnderWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flyweight-In-UnderWorld

output:

Starting game ...


!!!Enemies turn!!! Attacking with electricity. Voltage: 10.000



Player got damage, life left: 90.0



!!Players turn!!


HumpbackFish got damage, life left: 80.0




!!Players turn!!


HumpbackFish got damage, life left: 60.0




Enemy gets closer to the player, so change attack strategy to close battle



!!!Enemies turn!!! Biting player with power: 10.000



Player got damage, life left: 80.0



player got Booster attacking with epic power


!!Players turn!!


HumpbackFish got damage, life left: 40.0




!!Players turn!!


HumpbackFish got damage, life left: 20.0




!!Players turn!!


HumpbackFish got damage, life left: 0.0



HumpbackFish died!




More enemies are coming, be careful!


Process finished with exit code 0

About

This is simple implementation of Flyweight, strategy and singleton patters to minimize memory usage and optimize game play in your project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published