n1ckn1ght / yaml Goto Github PK
View Code? Open in Web Editor NEWLunar Lander clone
Lunar Lander clone
The more #self.segments it has, the slower it is. Because it full cycles every segment and tries to draw it.
There are good solutions, will fix later.
Hard to reproduce
(it's not even the case of 0.1 px of a segment in between, which is also invalid, but relatively easy to fix)
Works as intended for now, still an issue.
Need help for making better terrain generation algorithm.
Works as intended for now, still an issue.
Need help for making better terrain generation algorithm.
Literally forgot to bind it to y-distance to nearest platfrom by x
Ok, that's the only issue because of me just being lazy, will fix later.
There's also a very, very small probability of randoming a guaranteed platform because of my 'hotfix'.
Code is rushed out. Revamp is necessary.
Example:
Height is limited in between 0 and any number.
Previous angle was slightly bigger than -math.pi * 0.5
Last p2.y is 1
angleDiffLimit slighlty less then math.pi * 0.5
Now terrain generator is stuck because it can't produce such segment so it'd have a limited angle and p2 will be lied in [0;n] boundaries by y.
For now it will just generate an off-limit angle spike. need help to make better gen algorithm.
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.