Questions tagged [html5]
HTML 5 refers to new web technologies such as high performance JavaScript engines, canvas 2D and WebGL, video and audio tags.
518 questions
0
votes
0
answers
125
views
What technical factors might cause a CrazyGames rejection for a Godot web game?
I submitted a top-down shooter made in Godot (HTML5 export) to CrazyGames, but it was rejected without any detailed feedback. The name of the game is "Spacy Type" (available to preview here)....
0
votes
0
answers
47
views
Is it common/advisable to deploy a game using HTML for the frontend but also provide a backend native?
As a proof of concept I'd like to create the UI of a boardgame using SVG and HTML, so I can deploy it in desktop through Electron, mobile using Cordova and also hosting it in a website.
I also have ...
1
vote
0
answers
60
views
Develop a dialogue system for a game in html 5 canvas
similar to rpgs with a popup window and text options. like stardew valley. Are there any common approaches to implement this?
0
votes
1
answer
271
views
My Godot 4 2D game is running badly on HTML5 on some PCs
I'm using Godot 4.2.1 and my game is a pretty simple top down shooter. I tried exporting to HTML5 on Itch.io and the game runs fine on certain PCs but not others ?...
when running the game on my ...
0
votes
0
answers
222
views
Google Ads in HTML5 Godot 4 game that is embedded Electron chromium browser and that runs on localhost http server
Hi Google Ads shows ads on domain not localhost. But my game that is embedded in Electron browser and runs on htpp server on loaclhost (local html file). I want to show ads from localhost server. But ...
0
votes
0
answers
84
views
Handle roads following in a javascript game
In a browser game made in HTML5/Javascript, I would like to handle the move of units in real-time. But units would have to follow some predefined roads...
Canvas seems better than svg to handle ...
0
votes
1
answer
81
views
Semi transparent objects show fuzzy halos when in shadow
I'm having some issues when drawing a semi transparent object after an opaque object, and the object is in the shadows.
On the left, the torch is rendered just fine, I can see a nice blend of the ...
0
votes
1
answer
39
views
why does my button lose the changed cursor and mouseover behaviour as soon as I attach a class to my file?
Using adobe animate cc - exporting to HTML5 and coding in JS (or at least trying to)
If I just hit cntrl+enter in adobe animate the button works as expected.
If I run the app from a web server using ...
0
votes
1
answer
290
views
Invisible sprites with requestAnimationFrame
I'm trying to animate a sprite sheet. I have a single image, and multiple objects of the same type but drawn at different locations on the canvas.
What I'm trying to do is have each object move with ...
0
votes
1
answer
2k
views
How to rotate an image around its center point in a JavaScript canvas?
I have this function to get the rotation angle from my sprite and a target:
...
0
votes
1
answer
267
views
Tween a pop-up containing several buttons
I am developing a small game with Phaser 3. I want to make a container with several buttons, representing a pop-up dialog. The container needs to pop up on completing a task. When container pops up, I ...
1
vote
0
answers
1k
views
How to play multiple sounds at once without reloading data?
I am making an HTML5 game, which involves one audio being played multiple times at once.
I searched this issue up and found this: https://stackoverflow.com/questions/25654558/html5-js-play-same-sound-...
0
votes
1
answer
278
views
How do you make html elements not blurry
I was making a html game and all the elements are blurry is there a fix to this?
I use css but it makes it blurry
Code
...
0
votes
1
answer
240
views
Timers: check in game loop, or run independently?
Specifically talking in the context of JavaScript game development.
For example, I can use the language specific timeout mechanism:
...
0
votes
1
answer
282
views
How can I load assets dynamically on user's input in LibGDX HTML?
I am working with LibGDX and GWT and I am trying to publish my app as a HTML webapp, it has many assets with around hundred of folders, now I want to load them dynamically (user input is sent to JSNI, ...
1
vote
1
answer
141
views
In regards to real time turn based games, where should the turn handler be?
I'm currently developing a pool-like browser game. I'm stuck on where should I handle the turn changing, timer, etc.
Currently, turn timer (i.e. 15 seconds left to do action, then turn will change) is ...
0
votes
1
answer
412
views
I can't clear the paint image in my Canvas
I'm trying to make the Mario move, but somehow it leaves traces behind, can anybody help???
...
0
votes
1
answer
263
views
Web Game Security - AntiBot
I'm going to develop a real-time browser game using NodeJS in backend for a fast WebSocket, but I'll both prevent bots and other cheats, so my frontend JS might be very advanced.
I'm experienced with ...
2
votes
1
answer
109
views
Procedural vs Event Driven Paradigm Clash in HTML5
I've been writing some console-based games in python and got in the habit of having a "mainloop" that looks something like this (if it were ...
2
votes
0
answers
34
views
Javascript: Eventlistener 'keydown' not registering all keys pressed when holding down other keys [duplicate]
Sollution provided in the comments. The issue is that my keyboard has what is called ghosting issues, this means it doesn't support some key combinations when pressed together.
When the user holds 's'...
0
votes
0
answers
72
views
Abstraction for dialogue and quests in web game
I'm not very experienced with web languages, but I know a little bit of JavaScript. I'm working on creating a text-based rpg in HTML and need a way to modify dialogues for main story or quest ...
0
votes
0
answers
131
views
object position handling for multiplayer a game
I am creating a multiplayer HTML game which focuses on manipulating planet trajectories with gravity points. I am creating bunch of planets with random initial velocity and random direction and i am ...
1
vote
1
answer
216
views
Using a setTimeout to Jump
I am trying to make a jump function.
I am making a game in html5 canvas with Javascript. I have gotten the player to move. When making the jump function I decided to use a timeout to reverse the ...
0
votes
2
answers
2k
views
How to get projectile direction vector in a 2d grid?
I am having trouble figuring out how to trace the path of my projectiles in an Asteroids clone. Currently the ship is locked to the center of the screen and can be rotated a full 360 degrees. I know ...
0
votes
0
answers
275
views
Using dom elements for game interaction - slow performance
I have a need for my html5 game (using melonjs) to allow users to click tile areas on the map. The idea is it will show a css styled hover area. The browser tested is chrome.
I could do this natively ...