Skip to content

OliHarris/bee-game

Repository files navigation

bee-game

Try it out! Code updated...

✔️ Code in pure React / TypeScript

✔️ Removed jQuery

Old Notes...

Other areas to consider - use hexagons filling with honey for health - the bees inside can be holding the numerical health indicator..?

Remodel on mobile - for obvious reasons, the design can be drastically overhauled on dimensions less than 768px tablet; currently there is too much scrolling. Really the layout should all fit on the screen.

To make it more engaging, the code can be reworked as a game of skill, where the idea is to swat the Queen Bee based on a 'roulette' style.

Things I've learnt about SVGs with this project:

Applying gradients in Adobe Illustrator then exporting to SVGs proves difficult to render - this graphic code had to then be manually edited to remove this rogue gradient code. Arduously editing SVG code is not fun, so stick to solid colours!

It's a strange contradiction that the ':after' pseudoclass cannot be applied to an SVG (it is technically considered an image), even though it can otherwise be manipulated by CSS when inline... The 'shine' CSS masking effect has to be on a rectangular 'block' element rather than a more ideal SVG honeycomb image.

Available Scripts

In the root directory you can run:

npm install

Will perform a usual installation of any dependencies.

npm run dev

Will perform a usual launch of the dev environment.

NOTE:

As this is a Vite app, I hosted it on GitHub pages using this guide:

https://medium.com/@aishwaryaparab1/deploying-vite-deploying-vite-app-to-github-pages-166fff40ffd3

About

Try it out!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages