Don't Click the Bombs Phaser Game Mini-Course

  Рет қаралды 1,140

WClarkson

WClarkson

Күн бұрын

Пікірлер: 12
@zaher1710
@zaher1710 3 жыл бұрын
This has been a huge help in the mouse events for coding Duck Hunt! Thank you so much!
@divine_beam
@divine_beam 2 жыл бұрын
which IDE are you using, do you have a video for setup to get all the nice autocomplete that you have?
@WClarkson
@WClarkson 2 жыл бұрын
I was using Sublime in this video, but I have now switched to Visual Studio Code. There are extensions that will help with auto-complete. I've also started using typeScript which has an amazing auto-complete feature.
@divine_beam
@divine_beam 2 жыл бұрын
@@WClarkson thanks for the detailed answer!
@bruceonder3117
@bruceonder3117 4 жыл бұрын
Nice game parts! :) Isn't there a property to kill sprites once they are off world bounds?
@WClarkson
@WClarkson 4 жыл бұрын
There may be. I tend to use maths whenever possible, because it is easier to transport that knowledge between languages. In this case it is a simple matter to check the y position.
@brunagobi7393
@brunagobi7393 3 жыл бұрын
Bruce I guess you can use something called 'frustum culling' ?
@BruceOnder
@BruceOnder 3 жыл бұрын
@@brunagobi7393 That's a bit advanced for what I'm asking about. :). In Phaser 2 there was a method on sprites called .outOfBoundsKill() and if the sprite went beyond the world bounds, it would be destroyed. This was removed in Phaser 3 since destroying sprites completely is not very environmentally friendly, and it would be better to just deactivate them, hide them, and maybe even put them in a group to pull from later. I found this SO article related to this: stackoverflow.com/questions/53091837/outofboundskill-equivalent-in-phaser-3
@sicoles11
@sicoles11 2 жыл бұрын
At 5:49 why do you need .bind(this) on the callback function?
@WClarkson
@WClarkson 2 жыл бұрын
Sorry for the late reply. .bind(this) means that the 'this' keyword will refer to the class. Without using bind the keyword will refer to the scope of the function.
@brunagobi7393
@brunagobi7393 3 жыл бұрын
nice tutorial, but for me appears " Uncaught TypeError: can't access property "emit", " and I already imported
@WClarkson
@WClarkson 3 жыл бұрын
you can send me your code through the dropbox link on the contact page of PhaserGames.com and I'll have a look
Ultimate Game Parts Template for Phaser 3 - Basics Overview
7:35
Building Phaser 3 Output Files with NPM
8:27
WClarkson
Рет қаралды 1,4 М.
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 9 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 121 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 125 МЛН
Phaser 3 Online Course - Match Madness -Preview
9:33
WClarkson
Рет қаралды 1 М.
Using Keyboard Locks in Phaser 3
6:49
WClarkson
Рет қаралды 586
Change Image On Click in Phaser 3
10:00
WClarkson
Рет қаралды 4,3 М.
Set Up Ultimate Games Parts Template for Phaser 3
2:51
WClarkson
Рет қаралды 642
Why I loathe Kamala Harris | Lionel Shriver
28:45
spiked
Рет қаралды 1,5 М.
How to Extend a Scene in Phaser 3
4:55
WClarkson
Рет қаралды 3,8 М.
Access One Scene From Another in Phaser 3
2:43
WClarkson
Рет қаралды 2,8 М.
Loading a TileMap in Phaser 3 using JSON
4:41
WClarkson
Рет қаралды 13 М.
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 9 МЛН