klesun-misc / poverty-vs-you-2d Goto Github PK
View Code? Open in Web Editor NEWA game on EaselJS in a draft state
A game on EaselJS in a draft state
I just realized the buildings do not vitally require redrawing. I suppose it will still look nice if i just move the bitmap when camera moves... i believe.
But whereas building bitmap will linearly (or * 0.5, parallax, stuff ?) moves, the grid must stay still.
Moving elements by their vector values should be general.
Each element should have a "mass" property.
See: https://en.wikipedia.org/wiki/Brownian_motion for reference.
Particularly: https://upload.wikimedia.org/wikipedia/commons/6/6d/Translational_motion.gif
If mass is zero (missile), element is not affected by gravity and does not affect other elements physically (does not change their vectors).
If mass is 9999999, the heavy element is almost not affected by other elements physically. If an easy element interacts with it, the easy element is just mirrorly reflected.
If mass is normal - do as in the image.
I believe i even had code doing this in Pascal: https://github.com/klesun/Progmeistars_tasks/tree/master/Sem4_MathGraphic_SergeyTroll/d7
Look somewhere around, there was a version with 3 balls... also you could rotate the triangle
This should be childishly simple thanks to HTML5
What i think is, jumping on heads of enemies is big fun! And, like, the much height is, the much damage enemy takes, but if you landed not on enemy, but on the ground, damage will be taken by you!
Jumping several times in a row on same enemy head should also be ok. Each next time should be harder than previous to get the aim.
Sometimes missile shape freezes and does not disappear.
Steps to reproduce:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.