zettelkasten/OneNoteExport/Technik/Programieren/Javascript/06_Spiel Programmieren.md

108 lines
1.5 KiB
Markdown
Raw Normal View History

2023-08-17 19:32:37 +02:00
Spiel Programmieren
Montag, 1. November 2021
13:55
 
![Computergenerierter Alternativtext: Canvas Draw() • Hintergrund Zeichnen • Rakete Zeichnen s zeic nen 4) - 41: A pp Key Listener Update() Koordinaten ändern Kollisionen erkennen ](media/image1.png){width="7.385416666666667in" height="4.104166666666667in"}
 
Erfasster Bildschirmausschnitt: 01.11.2021 13:55
 
<https://www.youtube.com/watch?v=eWLDAAMsD-c>
 
Java script course 8 Hours Javascript Kurs 8 Stunden:
 
<https://www.youtube.com/watch?v=Qqx_wzMmFeA>
![Computergenerierter Alternativtext: F6H EST SER RTL ](media/image2.png){width="11.3125in" height="7.25in"}
 
Erfasster Bildschirmausschnitt: 02.11.2021 16:46
 
 
Sound ausgabe :
 
var msg = new SpeechSynthesisUtterance();
msg.text = \"Turn left and Send to 2000 feeds\";
window.speechSynthesis.speak(msg);
 
Vollständig :
let speech = new SpeechSynthesisUtterance();
let msg = \"Turn left and send to 2000 feeds\";
speech.lang = \"en-US\";
speech.text = msg;
speech.volume = 1;
speech.rate = 1;
speech.pitch = 0.3;
 
window.speechSynthesis.speak(speech);
 
Aus \<<https://www.studytonight.com/post/javascript-text-to-speech-using-speechsynthesis-interface>\>
 
 
 
 
 
 
 
 
var msg = new SpeechSynthesisUtterance();
var voices = window.speechSynthesis.getVoices();
msg.voice = voices\[23\];
msg.volume = 1; // From 0 to 1
msg.rate = 1; // From 0.1 to 10
msg.pitch = 2; // From 0 to 2
msg.text = \"Turn left and Send to 2000 feeds\";
msg.lang = \'en\';
speechSynthesis.speak(msg);