DEV Community

Adam Whitlock
Adam Whitlock

Posted on

3 1

Vue Game Development With Greensock

Here is a quick mockup that I threw together as a way to run a simple animation based game using vue and greensock.

Greensock provides the collision detection, and we fire an intersection check for the 2 game elements, which are the line, and the circle.

The circle, her name is rebecca. Rebecca purple is in the house.

Next, we fire off the animation and stop the game if the event occurs outside the intersection elements.

Persistent state through LocalForage will store my current high score.

I'm not going to lie to you, I can't seem to get above 45.

Comment your changes/high scores.

:)

https://codesandbox.io/s/zlxk5lwqkx

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay