Simply not using the letterbox option would make sure the canvas takes the full width and height of the screen. Then, you can create a game object and make it take the full width and height of the canvas. This game object can contain a colored rectangle or an image and will act as your background. You can use the k.onResize() handler to update the width and height of the game object when the window is resized.
Hi! I use Kaplay because it was the first library I learned and I really like its simple API. However, you might see Phaser tutorials on the channel in the future but I won't promise anything yet.
I think react shines when it comes to making UIs because you can easily create new UI components and manage their state in a way that is scalable. Also, you don't have to create UI elements from scratch in Kaplay anymore. There is so much you get for free by using React and HTML/CSS that for UI heavy games, I think it's the way to go. It doesn't have to be React it could be another framework/library but React is what I'm already familiar with and is the most popular.
hey i have a request .first make a small video discussing advantages of making games on react.Second how to handle very big projects.and third tell me what should i start with in gamedev in js kaplay phaser impact
Hi! Just discovered your channel. Thanks so much for the work and content you delivered here. I hope a lot more views follow soon! All the best, Seb
Thanks for watching!
Wow, i was looking forward for this tutorial, it made my day. Thanks!
I had you in mind when I made this, I knew you wanted to see react content on the channel.
@@JSLegendDev thank you. you're amazing🥹
Amazing Guide ! Keep up the Good Work 🙌
Thanks for watching!
Cant wait to watch this one!
How can I have a full screen background?
Simply not using the letterbox option would make sure the canvas takes the full width and height of the screen.
Then, you can create a game object and make it take the full width and height of the canvas.
This game object can contain a colored rectangle or an image and will act as your background.
You can use the k.onResize() handler to update the width and height of the game object when the window is resized.
Awesome, but i have a question, why do you use Kaplay(before Kaboom) instead Phaser in all your projects? Greetings from Colombia.
Hi!
I use Kaplay because it was the first library I learned and I really like its simple API.
However, you might see Phaser tutorials on the channel in the future but I won't promise anything yet.
GREAT EFFORTS
wow made with reactttt
pls can you tell advantage of making games in react ,and make a big project in it
I think react shines when it comes to making UIs because you can easily create new UI components and manage their state in a way that is scalable. Also, you don't have to create UI elements from scratch in Kaplay anymore. There is so much you get for free by using React and HTML/CSS that for UI heavy games, I think it's the way to go. It doesn't have to be React it could be another framework/library but React is what I'm already familiar with and is the most popular.
thanks for free education.
Thanks for watching :)
hey i have a request .first make a small video discussing advantages of making games on react.Second how to handle very big projects.and third tell me what should i start with in gamedev in js kaplay phaser impact
For the first, you can read this : jslegenddev.substack.com/p/why-use-react-for-game-development
Vue.js better 😅
dy play 🤣🤣🤣
Интересно, изучим на досуге.