mirre / circle-heist Goto Github PK
View Code? Open in Web Editor NEWGame for my School Project
Game for my School Project
Either change to bigger screen, feels to small. Or add support for resolution changing?
Instead of reversing the direction of the ball when it is bouncing X-wise, Check the X coordinates of the ball and the collided object and then you can see if the collided is to the left or the right.
Pseudo:
if(ball.x > collided.x) //Ball to the Left of the Collided
push ball to the left
else if(ball.x < collided.x)
push ball to the right
Since latest update, The camera has been positioned at the left bottom of the map in the beginning instead of the location of the Truck Location. Possibly SetObject(Pixmap map) did this.
Todoo:
Should I store the level of the PixelObjects in it's class? OR
Should I use a static field which gets set to the current Level, Null if not in the real gamescreen?
Possible solutions:
* Distance check, Get the center of the rectangle, Compare distances of the possible collided block with the center location. If one of them are nearest then call the collide on that.
Possible reasons:
* Not breaking out of overlap check loop.
* The boundaries starts from a direction, either left tiles or right tiles maybe messing with the order can fix the problem
Status: Fixed
Distance check between the four boundaries and choosing the nearest boundary.
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.