Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Scala.js - Getting the Best of JavaScript and Scala

Devoxx via YouTube

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

Reviews

Start your review of Scala.js - Getting the Best of JavaScript and Scala

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.