(On Disconnect) Last player hangs
I have a multiplayer game that assigns and displays an avatar for each player that accesses the game. When a player leaves the game, it will drop the image so the avatar is no longer on screen. This...
View Articlesocket.to(socket.id).emit - Not Working
It seems that to send a private message to a player, you are supposed to use socket.to(socket.id).emit. I need to emit an image to a specific player so am using this concept, however it doesn't seem...
View Article[ Canvas ] keyboard input activ only on canvas element
Hello people ! I'm working on a project code in javascript without using any framework and I struggle with keyboard input. I would like to disable window (or document, I don't know the difference)...
View ArticleWorld map interactions
Hello! I am very new to game development, using Phaser. I try to create a Risk-like game. In that game, I have a sprite representing the world, with delimited territories. My question is how should I...
View ArticleCreating an online chat game 2d
Hello, I would like to create a 2D online multiplayer network game in html5 and javascript as in the picture below. I wanted to know if it was a good practice to create all <div> with images by...
View ArticleCanvas Tilemaps - Javascript Help
Ello guv'nors! GOOGLE HAS FAILED ME! I got some dumb probably really easy javascript things I'm stuck with and I'm in an endless loop of eh? So I've got the this array 0 = wall = cant move into 1 =...
View ArticleCanvas getting "selected" on mouse drag when div is visible.
Hi, this is very annoying, why is this occuring? See this vid: https://i.gyazo.com/e6b3a40f04dd00ec45fe6d7d00ed7619.mp4 Why is this happening? Thanks in advance.
View Articlesprites with gradients / gaussian blur
I'm wondering if you have a 30x30 solid square compared with a 30x30 square with a gradient or a gaussian blur applied to it, will that be extra processing power to move & animate it? From my...
View ArticleTrying to find a library for pixel art shader
Hi! I did a Game Jam recently, our group used the p5 library because someone suggested it to us, and indeed it helped us develop an ok prototype in a short amount of time. The game wasn't perfect at...
View ArticleLandscape or portrait mode for html5 game
Hello, I would like to know which screen orientation is more in demand for html5 browser/mobile games?
View ArticleMaking a sprite turn to an angle by a constant degree each tick
Hello! I am new to phaser and I'm stuck at really simple thing. I have a sprite which i want to rotate towards mouse. I tried using various functions like getShortestAngle (since when it comes to 180...
View ArticleMultiple Canvas Interaction
i have multiple canvas in my application one above another . Both canvas have some elements. Is there any possibilities to click elements in both canvases. in normal case we can click the last child...
View ArticleHow to load next levels without game frameworks ?
Hello everyone, I'm new to programming and HTML5 game development. In these days I'm trying to make a platformer shooter game, but before starting that project I tried to learn many concepts such as...
View ArticleWhere to get game assets?
Hi all. I am just now beginning to learn the Phaser game engine. I was just wondering how people get the assets for their Phaser games? I know engines like Unity and Unreal have an asset store...
View ArticleMaking Particle Color Match Sprite Color
Hey Everyone, Pretty new here but glad to be a part of the community. Question, I have a game with sprites that are all of the same prefab but the only difference is the actually image of the...
View ArticleWhen you first got started with game development, how did you think of games...
Did you simply make a bunch of clones of games or did you think of something somewhat, "original". I have trouble trying think of interesting games to create. Are there any tips for "brainstorming" a...
View Articlehow to loop
how can i loop my background and make it like it move going to left??? thank you!
View ArticleBending Text
Is there any way to bend text so that it follows an arc? Without going letter by letter with new text fields per letter?
View ArticleOnly 'mousemove' | 'pointermove' events fire
Hello, I am just starting out with Pixi and have an animated sprite working with this: var sprite = PIXI.extras.AnimatedSprite([] of Texture) // array of textures sprite.x = 0; sprite.y = 0;...
View Article