This is based of the classic T-Rex Dinosaur Game that you played when opened your browser and realised you had no internet. However, the thing is that game was too easy so to make it more challenging the trees and pterodactyl are now able to spawn more randomly and could be grouped together much closer. This would be a bit too difficult of course since you wouldn't make it far so you have the ability to shoot fireballs too. You are only allowed to shoot three fireballs at a time and there is a waiting period between each fireball to be shot. Just know that this game requires both luck and skill to get far. You can view the source code on my github.