Phaser 3 Tutorial: How to load assets via JSON Pack

  Рет қаралды 304

Scott Westover

Scott Westover

Күн бұрын

#gamedev #phaser
In this quick tutorial, we take a look at how we can split the configuration needed for loading in all of the assets used in our game, from our game code and how we can load this configuration via an external JSON file. By using the built in Phaser 3 Plugin Loader, we can use the pack method to have Phaser 3 dynamically load all of the various assets we need like: spritesheets, images, audio, json, and more!
Video Chapters
0:00 - Intro
1:24 - Phaser loader plugin
2:36 - Start of code
7:14 - Test changes
7:36 - Wrap up
8:38 - Thanks and links to other content
The completed code for this project can be found here on GitHub:
github.com/devshareacademy/ph...
Credit for the assets used in the example:
/ xdeviruchi
axulart.itch.io/small-8-direc...
Interested in more great content?
Check out my videos on Phaser 3 here on KZbin:
• Phaser 3
Check out my free courses here on KZbin:
Monster Tamer - Pokemon like RPG Tutorial with Phaser 3:
• Monster Tamer - Pokemo...
Introduction To GitHub Actions Course:
• Introduction To GitHub...
JavaScript Course:
• Learn JavaScript Course
Follow Me:
/ scott-westover-77393a97
github.com/scottwestover
Blog:
scottwestover.dev/

Пікірлер: 1
@unclechris
@unclechris 15 күн бұрын
I have my assets (including this json file) in ./assets but they are not respecting the "path": "./assets" in the json file and 404's the images. If I prepend "./assets/someimage.jpg" to the "url": in the actual data, they load. Never mind, I had the "path" positioned incorrectly within the JSON file.
Phaser 3 Tutorial: How to load and create animations via JSON
7:02
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 167 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 80 МЛН
The TSConfig Cheat Sheet
5:36
Matt Pocock
Рет қаралды 33 М.
Don't put your types in .d.ts files
3:54
Matt Pocock
Рет қаралды 131 М.
Chatting with ReVa - An unplanned demo
7:49
サイバーカイダ
Рет қаралды 1,5 М.
Protocol Buffers Crash Course
36:07
Hussein Nasser
Рет қаралды 239 М.
How to Design a REST API That Doesn’t SUCK
23:32
ArjanCodes
Рет қаралды 17 М.
Where Did Arch Linux Come From?
16:21
Action Retro
Рет қаралды 29 М.
I'm Never Using Tmux The Same Again!
6:58
DevOps Toolbox
Рет қаралды 14 М.
How I Make My Successful Coding Shorts On YouTube
7:35
Indently
Рет қаралды 30 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 393 М.
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 91 М.
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 1,8 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 59 МЛН