Scala.js - Getting the Best of JavaScript and Scala
Offered By: Devoxx via YouTube
Course Description
Overview
Explore Scala.js through a hands-on game development tutorial using the JavaScript library Phaser. Learn how this language compiles to JavaScript while maintaining close ties to Scala/JVM and enabling seamless interaction with JavaScript libraries. Follow along as Sébastien Doeraene, a Ph.D. student at EPFL and Scala.js developer, guides you through creating a memory game. Gain insights into Scala.js syntax, development workflows, and techniques for integrating JavaScript libraries. Discover how to leverage Scala.js features like abstract classes, pattern matching, and state management while building an interactive game with preloading, event handling, and score tracking. By the end of this 49-minute Devoxx conference talk, you'll have a solid understanding of Scala.js's capabilities and its potential for bridging the gap between Scala and JavaScript development.
Syllabus
Introduction
Scala GS
Live coding session
Simple memory game
Show of hands
Phaser
Event Loop
Class Declaration
Preload Method
Importing tools
Translating the API
State Manager
Toit
Preload
Console
Creating things
Creating images
Shuffle images
Double loop
Input processing
Events
Interact
Game logic
Cards
Testing
Declarations
Abstract class
Guess states
Card class
Abstract classes
Interface
Store State
Pattern Matching
Index
NoGas
One Card
Two Cards
Key Reuse
Key
Front
Displaying score
Untype
Question time
Add events
Add index
Check guest state
Recompiling
Thanks
Source code
Taught by
Devoxx
Related Courses
Introduction to Programming for Musicians and Digital ArtistsCalifornia Institute of the Arts via Coursera ¡A Programar! Una introducción a la programación
University of Edinburgh via Coursera Interactivity with JavaScript
University of Michigan via Coursera Windows可视化程序设计
Xi'an Jiaotong University via Coursera Android Basics: User Input
Google via Udacity