Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html]

The tag has no usage guidance.

0
votes
2answers
60 views

html/ javascript shop

Im new to drop down menus. How can I make a working shop in html/javascript. I have this so far http://prntscr.com/o15oj7 . I want help with the selling of a material part. i know i should use if ...
0
votes
0answers
33 views

How to control text font-size and plane width on a plane object with A-frame

I'm trying to create a VR game using A-frame. The problem is that the font-size of the mouseMenu: ...
1
vote
1answer
41 views

Is there a way to automatically group tiles in a A* pathfinding grid to find the largest areas?

I'm making an RTS game using html canvas. I've made a program that randomly generates levels in order to test my pathfinding script. it divides the pathable blocks into squares so that you can apply A*...
0
votes
0answers
43 views

Keyboard arrow Navigation

My crossword is a table made with <td> tags. The input boxes are textboxes (input="text"), styled with CSS. My question is how do you get the focus to the ...
0
votes
1answer
165 views

Link CSS file with HTML file in Unity Power UI

I want to link css file with html in Unity with the help of Power UI. I already converted css file into bytes format but it not still worked. Here is the code ...
0
votes
0answers
11 views

Crossword puzzle [duplicate]

How do you make the keyboard arrow keys interactive so that when the user presses one of these it will move the cursor in that direction; I am working in html. Thanks Angela Jackson
0
votes
0answers
344 views

Collision detection not working in Phaser 3

I am new to phaser. So I started working on a game but I am stuck at implementing collision detection. I want to do it between a static group(dot) and a Sprite(obs). function create(){ ...
0
votes
2answers
56 views

How do you setup a scrollable overworld map on an HTML/JQuery based game?

Problem and Requirements I'm putting together a simple game that will involve an overworld map consisting of 12px x 12px square terrain tiles. These maps may be as large as 500x500 in size (so 250k ...
1
vote
1answer
71 views

I keep coming across an error “Cannot read property 'innerHTML' of undefined”

I'm new to game designing and have to create a game for my project but I keep coming across an error to do with: index.html:93 Uncaught TypeError: Cannot read property 'innerHTML' of undefined ...
0
votes
2answers
114 views

ForEach vs For loop in JavaScript | Which is more efficient? [closed]

I was wondering which for loop is less hard on the computer, and why it is Example: ...
1
vote
0answers
211 views

JavaScript HTML — How can I implement gravity/jumping into my basic game?

I am making a basic game. I currently have an object (box4) that moves left and right using Keycode Events. But I want to add Gravity. I'm not sure how to go about this; everything I've found online ...
1
vote
0answers
156 views

Create styled grid with phaserJS gaming framework

I am new to Phaser and this is my first game with Phaser gaming framework. Am trying to find the right way of coding a grid what you see in below image In some articles is being suggested to code it ...
-2
votes
1answer
92 views

Why does the score increase faster the second time the user plays my game?

In my HTML game, if you press the "play" button, the game will start and the score will increase by one every second. If you then press the back button and click the play button again, the score ...
1
vote
1answer
799 views

How do I make my character jump on a platform?

This is the code I've written so far: Html: ...
1
vote
2answers
3k views

javascript game camera that follows my player

I am experimenting with game developement here but my player disapears my player is alowed to just walk of the screen and never be seen again so i was wondering if someone could help me with adding a ...
2
votes
0answers
79 views

I'm having very negative thoughts, can you help me? [closed]

I'm 27 years old and I recently started vocational studies for app development. The first year is mostly about introduction to c# programming and also a light introduction to html and javascript. I ...
1
vote
2answers
723 views

HTML canvas, Node WebSocket and multiplayer game like slither.io. How to send visual data over websockets?

Where to start creating a multiplayer game like slither.io, agar.io, etc. I need only learn how to draw live positions and other data of all players into one fullscreen HTML5 canvas with update ...
1
vote
1answer
62 views

Sprites in Object Pool spawning and updating, but not rendering

So I've been trying to draw sprites onto the world canvas. These sprites are held in a Group (aka object pool. They are meant to be bullets). They update properly, even go off bounds, but they never ...
1
vote
1answer
119 views

Twine game animated blur effect

I'm making a horror text adventure using Twine (snowman version, which uses HTML, CSS, Javascript, JQuery, and Markdown). I wanted to know what the best (easiest) way is, you think, for creating a ...
1
vote
2answers
487 views

Object have the same “speed” all time JavaScript

I try to create a 2D game with a big map and multiple objects. The player is always in the middle of the screen and all the other objects is moving around so it feels like a big map. I want the ...
1
vote
0answers
216 views

Using GLFX.js on a full HTML page

I have a friend who is developing a game for HTML, and wants me to implement GLFX into the site page. The problem is GLFX was designed specifically for use with the HTML5 Canvas, which he isn't using, ...
1
vote
0answers
395 views

Unity Browser inside UI Panel

What is the best option if I want to show a remote webpage inside a UI Panel in Unity ? I want to target android and iOs platform. I had uniWebView in mind but that thing is more like an overlay I ...
3
votes
1answer
1k views

HTML UI with SDL2 [closed]

I realized that I need an HTML-like UI in my game, because by myself I wouldn't be able to achieve such effects (divs, text, coloring, and styling). So I started to look around for a HTML Engine for ...
20
votes
5answers
6k views

Prevent cheating in html Javascript game [duplicate]

I have made a Javascript/html game. Now the problem I have is anyone can edit the client code and cheat in game for example there is a man shooting a enemy. Man HP:      &...
0
votes
3answers
696 views

How do I keep a PHP server running forever?

I'm making a web game RTS, it's mostly create units, manage resources, attack with army, and level up factories. I have created the basics of the game using Javascript, PHP, and MySQL databases. I use ...
2
votes
2answers
8k views

Chromium Embedded Framework and Unity3D?

I have recently heard about the Chromium Embedded Framework and was over-joyed as I want to use html as my GUI source. I did find a C# version but it seems to be for Windows Forms. I'm not too ...
2
votes
1answer
105 views

Website within Skyrim

I'm new to the Skyrim Creation kit but I've been through a few tutorials and looked through the documentation but I couldn't see a way to do this. Is it possible to display an HTML page within the ...
4
votes
2answers
742 views

Change screen dimensions in libgdx in HTML

Can i change the screen dimensions in libGDX in HTML? If I inspect the element (the game) in Chrome and I change canvas width or height it changes the screen dimensions, but I don't know how to do it ...
0
votes
1answer
928 views

How do I make the background color fade into a different color after hovering it? [closed]

I was trying to make the starter inputs for my text rpg change the background color in a fade effect with JQuery, but I cant figure out what i did wrong. Heres the part im focusing on: ...
0
votes
1answer
428 views

How do I combine two HTML levels? [closed]

If I have two levels that I have made separate in HTML5 how may I combine them so one comes after another?.
0
votes
1answer
46 views

How do I store game data with cookies?

Im working on a game right now, but I was wondering how I would store the game data in cookies(in javascript) where you can load it up, and resume the last spot you were at. I was looking at some ...
0
votes
2answers
424 views

How do i make an idle-styled counter in Javascript & HTML

I just started making a basic game in HTML, CSS, Javascript, and JQuery, but I want to have the money add up after a certain amount of time (if you have ever played an idle game, you'd know what i ...
1
vote
1answer
648 views

Unity3D WWW get HTML displayed in browser

I currently have in a web page, on a localhost server, some information that I want to use in Unity. My problem is that this information are stored in some js variables. I tried to use the WWW class ...
0
votes
1answer
769 views

How to use setInterval and clearInterval

I have a game that I am making and cannot seem to get the setInterval and clearInterval methods to work. When I debug it in the ...
1
vote
1answer
3k views

JavaScript: Rotating a canvas around its center for a 2D sidescroller

I've been making a 2D sidescrolling game using JavaScript and HTML. The game is set in space, where the player character can fly around (Up, Down, Left and Right keys) and rotate the world around him (...
1
vote
2answers
1k views

Bouncing off a circular Boundary with multiple balls?

I am making a game like this : Yellow smiley has to escape from red smileys, when yellow smiley hits the boundary game is over, when red smileys hit the boundary they should bounce back with the same ...
1
vote
2answers
377 views

Make perfect constant game animation using javascript

I tried different ways to make constant animations using JavaScript and HTML. The problem is that they are never perfect. If I want to move a square exactly 5 pixels every 50 miliseconds I would use ...
0
votes
1answer
177 views

What strategies can I use to update the visuals of my game to be more modern? [closed]

I'm making a browser strategy game. Now my problem is that I have a feeling that my design is dated. For now I have only used background colors and borders to make things look nice, but I have ...
1
vote
1answer
6k views

Draw user interface in OpenGL using web technologies

I am developing a desktop game in C++ and OpenGL. Frameworks I use are GLM and SFML. Since today I used the console window for debug messages. But I want to get rid of that and display debug ...