Making Your First Phaser 3 Game in TypeScript - Part 3

  Рет қаралды 2,756

ourcade

ourcade

2 жыл бұрын

This is a repost from the main ourcade channel: / ourcadehq
Want to learn more about using TypeScript with Phaser 3? We have a free book that teaches you how to create an Infinite Runner. Get it here: ourcade.co/books/infinite-run...
Learn how to make an #HTML5 Phaser 3 game using #TypeScript to write code that scales. This series takes the official Phaser guide by the same name but translates the JavaScript code into TypeScript.
Part 3 wraps up with adding stars to collect and bombs to add some difficulty.
Making your first Phaser 3 game: phaser.io/tutorials/making-you...
Making Your First Phaser 3 Game in Modern JavaScript: blog.ourcade.co/posts/2020/ma...
Full Series:
Part 1: • Making your First Phas...
Part 2: • Making Your First Phas...
Part 3: • Making Your First Phas...
Ourcade is a playful #gamedev community for open-minded and optimistic learners and developers. 🎮🕹👾🤗 ourcade.co

Пікірлер: 5
@captstrugglebunny
@captstrugglebunny 2 жыл бұрын
FYI, TypeScript raises an error saying 'fill' doesn't exist in TextStyle. Using 'color' did the trick for me.
@aleksmarinic5748
@aleksmarinic5748 7 ай бұрын
i have some problems with my player... he's able to jump from stars (i don't want that)... how can i make, that he can jump only from the platform?
@zb2747
@zb2747 Жыл бұрын
For those who are getting Uncaught TypeError: Cannot create property 'score' on boolean 'true' at runtime in dev console when adding += 10 to score replace the overlap function with this: this.physics.add.overlap(this.player, this.stars, (player, s) => { this.handleCollectStar(player, s); }, undefined, true );
@naares4372
@naares4372 Жыл бұрын
Hey or you could bind the context like this.physics.add.overlap(this.player,this.stars,this.handleCollectStart.bind(this),undefined,true); Its because you are working out of scope in that function, binding context will always help.
@zb2747
@zb2747 Жыл бұрын
@@naares4372 Nice - thank you family! Do you have a discord or twitter? Been meaning to collaborate or share ideas with others who like to make games with phaser :)
Erdős-Woods Numbers - Numberphile
14:12
Numberphile
Рет қаралды 81 М.
How to Shoot Bullets from a Space Ship in Kaboom.js
16:36
ourcade
Рет қаралды 1,1 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,4 МЛН
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
The ARCH LINUX Experience
34:30
Bog
Рет қаралды 112 М.
Switching Between Maps in Phaser JS and Typescript
5:48
Yugen
Рет қаралды 1,7 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 173 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 98 М.
grep from scratch with Gleam v1.3.0!
Louis Pilfold
Рет қаралды 11
Learn Three.js for Games using TypeScript (modern way)
14:02
🗺 A* Star Pathfinding using EasyStar.js in Kaboom.js
28:13
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,4 МЛН