PlayCanvas End-to-End : the quick version

Rate this content
Bookmark
The video covers the basics of PlayCanvas, a web-first game engine that runs on mobile devices and browsers, making it fully cross-platform. It guides you through building a game in three phases: scene setup, interactivity, and polishing. You'll learn about importing assets, scripting, physics, animation, debugging, user interface (UI), audio, and publishing. PlayCanvas features real-time collaboration, asset management, and an open-source framework available on GitHub. The video also explains creating and managing entities using templates, adding physics with collision and rigid body components, and creating UI elements like a 2D screen and text elements. Debugging is supported through Chrome DevTools. Finally, publishing a game is straightforward with PlayCanvas's hosting solution, providing a shareable link to your game.

From Author:

In this workshop, we’ll build a complete game using the PlayCanvas engine while learning the best practices for project management. From development to publishing, we’ll cover the most crucial features such as asset management, scripting, audio, debugging, and much more.

This workshop has been presented at JS GameDev Summit 2022, check out the latest edition of this Tech Conference.

FAQ

PlayCanvas is a web-first game engine that allows for the creation of 3D games and applications. It operates entirely in the browser, making it accessible on multiple platforms including mobile devices. PlayCanvas features real-time collaboration, asset management, and an open-source framework for detailed customization and functionality.

To publish a game in PlayCanvas, use the Publish/Download tool in the editor. Simply provide a title for your game, optionally add a description, and click 'Publish Now'. This generates a permanent link to your build, which you can share with others. The game will be hosted on the PlayCanvas platform, accessible to anyone with the link.

In PlayCanvas, UI elements like text and images can be created by adding a '2D Screen' entity first to manage screen space elements. Then, add UI components such as 'Text Element' or 'Image Element' under this screen. Customize properties like alignment, anchoring, and fonts using the editor's properties panel to fit your game's design.

PlayCanvas supports debugging through Chrome DevTools. Developers can inspect code, set breakpoints, and monitor game performance in real-time. Custom logs and event handling can also be tested directly in the browser, facilitating an efficient debugging process during game development.

Yes, the PlayCanvas engine is open-source and hosted on GitHub, allowing developers to contribute to its development. Interested contributors can access the repository, submit changes, and help improve the engine by addressing issues, adding features, and updating documentation.

PlayCanvas supports various major 3D file formats including FBX and GLB. The platform handles asset processing and texture compression, simplifying the workflow for developers by automatically optimizing content for performance across different devices.

PlayCanvas is designed to be collaborative by nature, allowing multiple users to work on the same project simultaneously. Changes made by one user are updated in real-time and visible to all collaborators, which is ideal for teams to work together efficiently regardless of their physical location.

João Ruschel
João Ruschel
121 min
18 Apr, 2022

Comments

Sign in or register to post your comment.

Video Transcription

1. Introduction to Play Canvas Workshop

Short description:

This workshop will cover the basics of Play Canvas and guide you through building a game in three phases: scene setup, interactivity, and polishing. You'll learn about importing assets, scripting, physics, animation, debugging, user interface, audio, and publishing. Play Canvas provides its own hosting solution for easy sharing of your game.

Hi, everyone. My name is João and this is the workshop for Play Canvas End to End, the quick version. So Play Canvas End to End, the quick version. Quick, not so quick, because it will be around 2 hours of workshop. But yeah, we'll still be able to build a full game in this 2 hours.

So the way that we will structure this workshop is, so just to do some brief introductions, but then I'll talk about Play Canvas. So I'll just talk about, you know, the basic features that we have, you know, like the everything you can do in Play Canvas. And we'll go into the actual core of the workshop where we'll build a game together.

So I split that into 3 different phases. Phase number 1 is like just a general scene set up, so we'll start just importing some assets, placing some stuff around, some obstacles, some ground. We'll talk about that in a second. And we'll talk about launching and like testing your game out. Phase 2 will be about interactivity. So we'll go over scripting, question scripts, we'll go about the event system that we have in Play Canvas, also about how to do physics with rigid bodies. We'll talk about the animation system as well. And then some debugging capabilities using Chrome. And then phase 3 will be about polishing and publishing. So we'll create just some final touches on user interface, how to do audio, and then we'll be able to publish that to the world. We'll be able to do that using Play Canvas' own hosting solution, so you don't need to have anything on your own, you just press a button and you'll have a firmware link to your build of the game, and then you can share it with anyone that you want. And then we'll do some wrap-ups towards the end.

2. Play Canvas Project Phases

Short description:

We'll be using a Play Canvas source project that already contains all the assets and boilerplate code. You can fork the project at any phase if you get lost and start from there. The final project with full documentation will also be available for reference. You can choose to listen and learn or build along with me.

Now, the way that we'll be doing the different phases there in the actual game is that we'll – I prepared a Play Canvas, like a source project that already contains all the assets and the boilerplate stuff that we'll need, and what you guys will be able to do is actually is you take that and make a fork out of it, so you'll be able to copy that as your own project and then make whatever you want with it. I'll be doing the same thing, so I'll be starting from the same like, starter project, and then together we'll build up to the final game. Now each of the phases, we also have a project for those, so let's say that you're in the middle of phase one and you kinda get lost. It's okay, just wait for phase two, and then you can clone, you can fork a project starting at phase two, and then same thing for phase three. If you get lost in the middle of the scripting stuff on phase two, just wait and I'll send the link for phase three, and then you can fork phase three and restart from there, so you have these three kind of like, checkpoints that we can go along the way, and also the final project, like the end thing, with full documentation, with all the features, will also be available for you guys to take a look at, so see the entire thing done as well. So you can also just sit back, take a coffee, tea, water, whatever you fancy, and just listen out how to build the full thing, or you can build out, like together with me as you go through it.

Watch more workshops on topic

Make a Game With PlayCanvas in 2 Hours
JSNation 2023JSNation 2023
116 min
Make a Game With PlayCanvas in 2 Hours
Top Content
Featured WorkshopFree
Steven Yau
Steven Yau
In this workshop, we’ll build a game using the PlayCanvas WebGL engine from start to finish. From development to publishing, we’ll cover the most crucial features such as scripting, UI creation and much more.
Table of the content:- Introduction- Intro to PlayCanvas- What we will be building- Adding a character model and animation- Making the character move with scripts- 'Fake' running- Adding obstacles- Detecting collisions- Adding a score counter- Game over and restarting- Wrap up!- Questions
Workshop levelFamiliarity with game engines and game development aspects is recommended, but not required.
Introduction to WebXR with Babylon.js
JS GameDev Summit 2022JS GameDev Summit 2022
86 min
Introduction to WebXR with Babylon.js
Workshop
Gustavo Cordido
Gustavo Cordido
In this workshop, we'll introduce you to the core concepts of building Mixed Reality experiences with WebXR and Balon.js.
You'll learn the following:- How to add 3D mesh objects and buttons to a scene- How to use procedural textures- How to add actions to objects- How to take advantage of the default Cross Reality (XR) experience- How to add physics to a scene
For the first project in this workshop, you'll create an interactive Mixed Reality experience that'll display basketball player stats to fans and coaches. For the second project in this workshop, you'll create a voice activated WebXR app using Balon.js and Azure Speech-to-Text. You'll then deploy the web app using Static Website Hosting provided Azure Blob Storage.
Tiny Game Live Coding Workshop
JS GameDev Summit 2023JS GameDev Summit 2023
115 min
Tiny Game Live Coding Workshop
Workshop
Frank Force
Frank Force
Dive into the captivating world of micro-game development with Frank Force in this interactive live coding workshop. Tailored for both seasoned developers and curious newcomers, this session explores the unique challenges and joys of creating games and demos with extreme size constraints.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Optimizing HTML5 Games: 10 Years of Learnings
JS GameDev Summit 2022JS GameDev Summit 2022
33 min
Optimizing HTML5 Games: 10 Years of Learnings
Top Content
PlayCanvas is an open-source game engine used by game developers worldwide. Optimization is crucial for HTML5 games, focusing on load times and frame rate. Texture and mesh optimization can significantly reduce download sizes. GLTF and GLB formats offer smaller file sizes and faster parsing times. Compressing game resources and using efficient file formats can improve load times. Framerate optimization and resolution scaling are important for better performance. Managing draw calls and using batching techniques can optimize performance. Browser DevTools, such as Chrome and Firefox, are useful for debugging and profiling. Detecting device performance and optimizing based on specific devices can improve game performance. Apple is making progress with WebGPU implementation. HTML5 games can be shipped to the App Store using Cordova.
Building Fun Experiments with WebXR & Babylon.js
JS GameDev Summit 2022JS GameDev Summit 2022
33 min
Building Fun Experiments with WebXR & Babylon.js
Top Content
This Talk explores the use of Babylon.js and WebXR to create immersive VR and AR experiences on the web. It showcases various demos, including transforming a 2D game into a 3D and VR experience, VR music composition, AR demos, and exploring a virtual museum. The speaker emphasizes the potential of web development in the metaverse and mentions the use of WebXR in Microsoft products. The limitations of WebXR on Safari iOS are discussed, along with the simplicity and features of Babylon.js. Contact information is provided for further inquiries.
Making Awesome Games with LittleJS
JS GameDev Summit 2022JS GameDev Summit 2022
34 min
Making Awesome Games with LittleJS
Little.js is a super lightweight and fast JavaScript game engine that has everything included to start making games right away. It has a tiny footprint and no dependencies, making it perfect for size-coding competitions like JS13K. Little.js is built with an object-oriented structure and comes with several classes. It provides a fast rendering system, a comprehensive audio system, and various starter projects for different game types. Little.js is designed to be simple and easy to understand, allowing you to look at and modify the code.
How Not to Build a Video Game
React Summit 2023React Summit 2023
32 min
How Not to Build a Video Game
Watch video: How Not to Build a Video Game
The Talk showcases the development of a video game called Athena Crisis using web technologies like JavaScript, React, and CSS. The game is built from scratch and includes features like multiple game states, AI opponents, and map editing. It demonstrates the benefits of using CSS for game development, such as instant load times and smooth transitions. The Talk also discusses optimizing performance, supporting dark mode, and publishing the game to other platforms.
Boost the Performance of Your WebGL Unity Games!
JS GameDev Summit 2023JS GameDev Summit 2023
7 min
Boost the Performance of Your WebGL Unity Games!
The Talk discusses ways to boost the performance of WebGL Unity games, including issues with bundle size, memory usage, and runtime performance. It suggests using Brotli for compression and non-exception support for better performance. Choosing the appropriate texture compression format and experimenting with separate builds can also help. The Talk also covers optimizing textures, models, audio, and assets by reducing build size, using compression, disabling unnecessary models, and optimizing audio quality. Unity's optimization tools and profilers are recommended for analyzing performance and memory issues.
Web 3 Gaming: What it is and Why it Matters
JS GameDev Summit 2022JS GameDev Summit 2022
36 min
Web 3 Gaming: What it is and Why it Matters
Web3 gaming enables decentralized identity and finance, allowing game developers to bypass centralized platforms. It is driven by wallets, ERC20 tokens, and NFTs. Web3 games focus on collaborative world-building, ownership, and open-source collaboration. The challenge is achieving decentralization while addressing economic and technological limitations. Web3 aims to redefine the gaming industry by using economic tools and exploring new genres like RPG and RTS games.