gniziemazity / self-driving-car Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
You are showing something in the video and the code works something else. This is not a good practice.
I want to add mobile controls by touch and I tried to add document.ontouchstart = (event) => {}
and also this.canvas. ontouchstart = (event) => {}
(by adding the canvas object to Car and then to Controls). But both didn’t work. Checked that by putting console.log(event);
and/or this.forward = true;
inside the above functions.
Could anyone help me to get that work and especially learn what I did wrong?
Thank you.
And if you, Radu, will read it: The courses are really great. Calm, in detail, perfect. Thanks.
I have created a Genetic Evolution library inspired by this project. Check it out
For some browser/computer combos the char encoding will fail when trying to draw the arrow symbols on the network canvas.
If I am explicit about setting the character encoding in the html header then it works everywhere.
Example:
In index.html
, add a charset meta tag
<html>
<head>
<meta charset="utf-8">
...
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.