Skip to main content

Questions tagged [browser-based-games]

A game that runs in an internet browser, either using core browser features (HTML5, CSS and JavaScript) or plugins including Flash, Java, Silverlight or the Unity Web player. Add the relevant tags for the plugin or language you're using.

Filter by
Sorted by
Tagged with
0 votes
0 answers
99 views

Export Blender models and (procedural) material to Browser?

Given that Verge3d cannot support Volume input, or volumetric shader property in the material output node. Using WebGl 2, and possibly 3.js, is it possible for me to export my blender models and their ...
Francis Mike Nathan's user avatar
0 votes
0 answers
986 views

Client says they want Unreal scene viewable in a web browser 😳 last minute

I have a job that I did for a client and the client wants the project to be viewable in a web browser. I looked into it and all I found was people telling me that it's impossible, but this is a low ...
ChristianOConnor's user avatar
1 vote
1 answer
596 views

How can I protect against a cheater changing variables on the client?

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot ...
李白 puer's user avatar
0 votes
0 answers
38 views

Signalling time-expiry to clients in a browser-based multiplayer game

I'm trying to develop my first ever browser-based multiplayer game that utilizes my own websocket server which has no multi-threading capability. It will be a game where players try to be the fastest ...
Decent Dabbler's user avatar
0 votes
0 answers
43 views

Strategy browser game - Update tables on refresh

I am building a Travian clone for learning purposes using FastAPI for the backend. I want to update my current logged user tables whenever they are making a new request (such as loading a new page) ...
Pierre-Alexandre's user avatar
1 vote
2 answers
3k views

Is there a way to make a game that uses Python/pygame that will work through a web browser?

Is there any framework or method that will allow to use browser to run a 2D game made in python with pygame graphical library?
GKozinski's user avatar
  • 133
1 vote
1 answer
298 views

Best way to implement a to hit formula based on provided stats

There are a ton of these questions, some can get really mathy - which is fine, but I am looking for a simple way based on a few stats, I thought I came up with one, so I will share it in hopes that ...
Kyle Adams's user avatar
0 votes
1 answer
86 views

How do I change the turn from a user to the next?

I was asked by a friend to develop a small web game which should support 10 players. Very basic game-play: There is a piñata which has x-"healthpoints". Each player can hit the piñata when ...
theloneswiftman's user avatar
7 votes
2 answers
2k views

File saved to IndexedDB lost unless we change scenes

Our game includes an in-game level editor. When the user saves a custom level, the level is serialized and written to a file: ...
Kevin's user avatar
  • 6,854
1 vote
1 answer
98 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 ...
Ardi's user avatar
  • 15
0 votes
0 answers
183 views

Proper way to handle timers at scale

At scale for multi-users, what is the proper way to implement timer updates? I'm making a game where Users have buildings to upgrade which involve timers (Yes I know there are plenty of questions ...
ChrisW's user avatar
  • 1
0 votes
0 answers
76 views

Unity WebGL Canvas only loads on select machines

https://herbertjoseph.com There is a WebGL build in the background of this site, and it doesn't seem to laod on my iPad. I've asked a few people to visit and check it out, and some have said that the ...
Herbert Joseph's user avatar
1 vote
6 answers
644 views

How to deal with players having too much money (or any large numbers)?

I'm working on a browser MMORPG in PHP and MySQL and today got a bug report about int32 overflow, due to the player having too much money. When I was designing the core system, I completely forgot ...
matronator's user avatar
2 votes
2 answers
252 views

Where can I find sources on how many people play with sound disabled/enabled?

This is probably more a problem with me being unable to find statistics which i am absolutely certain must exist in some form: How many people play with the sound off/on when playing browser games or ...
Hobbamok's user avatar
  • 172
1 vote
1 answer
503 views

database design for browser based game [closed]

I'm wondering how to design a database for the player's experience, whether to create a single table that will collect basic information such as. Class, race, number of experiences, number of occupied ...
martin suchodol's user avatar
1 vote
0 answers
300 views

Why would running WebGL app in Edge improve performance in Firefox?

I have a WebGL app (built using Unity 2019) which I'm testing locally in Firefox and Edge. If the app is only running in a tab in Firefox, it runs at 25 - 50 fps and has noticeable stutter. If I run ...
Kevin's user avatar
  • 6,854
3 votes
0 answers
202 views

Game runs at different speeds in Chrome versus Firefox

I am using Box2D for physics on the server side. Player position is updated on the server, so there is nothing the client can do except give input. But running game in Chrome only, the player moves ...
JustStarted's user avatar
2 votes
3 answers
287 views

Testing Multiplayer Browser Game on Single Computer

I am writing a multiplay browser based game and am running into an issue with playtesting simple interactions. When a browser window loses focus is stops running requestAnimationFrame calls. This ...
stats's user avatar
  • 135
1 vote
1 answer
206 views

Same scroll speed across devices with different DPI

I am creating a simple game in JS, something like the flappy bird :) For pipe scroll, I am using a linear tween. I noticed that the speed of the pipes are different across different smartphone ...
igobivo's user avatar
  • 111
0 votes
1 answer
467 views

Web based poker on Phaser 3

Please can somebody help me as I'm a lil bit new to game dev and user interface designing. I am trying to create a simple Texas holdem poker using phaser3 for multiplayer application. I have a few ...
user8903551's user avatar
2 votes
1 answer
594 views

Issues with AABB on a platformer game

i'm facing an issue at the moment in my javascript/html platformer game that despite searching for this issue i can't solve. The problem is this: When i place two platforms next to each other and the ...
Dom's user avatar
  • 123
0 votes
1 answer
52 views

If online games use permalinks

I'm trying to figure out how to accurately capture the state of the web app by a URL, similar to something like https://jsfiddle.net/, where they create ...
Lance Pollard's user avatar
0 votes
1 answer
65 views

How to store information about a simulated sport match in a browser game?

There is a browser game called Soccerstar where users play in a soccer team and compete in matches against other teams. Matches are scheduled at specific times of the day and played automatically and ...
firion's user avatar
  • 109
3 votes
1 answer
210 views

Is Patreon a viable way to implement a subscription-based monetization strategy?

I am looking for an alternative to premium currency and microtransactions as a monetization strategy for a persistent browser game. Subscriptions seem the straightforward solution, though I don't want ...
Rodrigo Borges's user avatar
-1 votes
1 answer
340 views

Making a Java Swing game a browser based game [closed]

I have made a game in Java using Swing for the GUI. It is a network game relying on the client-server model. Basically the game is a turned-based chess-like game. It has a connection menu, game ...
Reedy's user avatar
  • 1
5 votes
2 answers
2k views

Are browser games still profitable? [closed]

Back in middle school I would play games like bowman, kitten cannon, sniper assassin, etc. On sites like addictinggames.com, or crazymonkeygames.com. I know these games would have ads run on them, ...
Gage Hendy Ya Boy's user avatar
11 votes
3 answers
3k views

Why PHP over C# for PBBG? [closed]

I am a C# developer and wanted to start a hobby project building a persistent browser based game (PBBG). I work with C#, MSSQL and Angular and thought I would use those techniques for my hobby project ...
Kurus's user avatar
  • 111
0 votes
1 answer
100 views

Should all stats only exist on MySQL database for my Flash browser RPG?

I'm creating a browser RPG in Flash which will have some multiplayer elements and in-app purchases so security is a high concern. Would it be better to have all game stats like health and such exist ...
BladePoint's user avatar
5 votes
4 answers
5k views

Browser RPG fight calculation formula

I am making a simple browser rpg game, similar to battleknight. To keep the game simple, I have just Strength, Constitution, and Luck, but since Luck is based on randomness, I'm struggling with combat ...
tprieboj's user avatar
  • 159
-2 votes
2 answers
2k views

How to develop a PBBG?

I enjoy playing a lot of text-based PBBGs (Persisent Browsing Based Games). A good example of the style of game I'm referring to is lyrania. I would like to work on developing this style game but have ...
Shniper's user avatar
  • 129
0 votes
1 answer
3k views

Implementing Turn based Combat Using Node js

I am creating a browser game that allows players to fight monsters using Nodejs, Socket.io and ...
Valamorde's user avatar
  • 427
1 vote
1 answer
220 views

Accounting for drift between ticks

What are some solid techniques to account for the gap between processing time and frame update ticks? In other words, the game/render loop looks like this: Some important points: Tick timings are ...
davidkomer's user avatar
1 vote
0 answers
753 views

Detecting keys presses between keyboard layouts, operating systems and javascript

I've recently encountered a few headaches when I tried to detect key presses for a custom game engine to supports Windows, MacOS, Linux, and WebGL. Naive approach: At first I naively thought that ...
FanManPro's user avatar
  • 131
-1 votes
1 answer
231 views

Browser RPG mechanic from tabletop RPG [closed]

The GURPS "you have 100 point to buy attributes, advantages and skills, but you can get disadvantages for bonus points" mechanic can work in browser based RPG's?
Feralheart's user avatar
8 votes
2 answers
1k views

Adapting pen & paper RPG rule system for use in a video game [closed]

I want to make a browser based RPG. I am considering to use an existing pen & paper rule system (like FATE or GURPS) instead of developing my own rule system from scratch. What pitfalls should I ...
Feralheart's user avatar
1 vote
1 answer
249 views

requestAnimationFrame handles game ticks weird when tab isn't viewed

So i have the game logic and render in the callback for requestAnimationFrame, and somehow the ticks run very weird. In fact, the rendering happens alright. But the ticks seem to skip an ...
nitwhiz's user avatar
  • 47
1 vote
0 answers
382 views

How to create communication with node.js server to client browser about monsters(object)

First hello and sorry for my English, and now about my problem. I create node.js server that communicates with the browser-client for player position, life, def, ...
Георги Няголов's user avatar
2 votes
1 answer
1k views

2d game with 3d js. game engine

I'm trying to understand if it's possible to create a game where the player can switch between 2d (strategic/bird view) and 3d (actual gameplay) using only the 3d supported JS/HTML5 game engine, like ...
Kata's user avatar
  • 123
1 vote
1 answer
473 views

How can a BabylonJS FreeCamera be rotated from code?

Say I have a FreeCamera in a BabylonJS 3D world. How could I rotate that camera from program code? Or, more specifically, how might I bind camera rotation (not movement, which I know how to bind to ...
Theo's user avatar
  • 13
2 votes
2 answers
783 views

Turn-based browser game

I want to try to build a multiplayer turn-based browser game. What technologies do you recommend me to use for server side considering I plan to host it on a shared host? Would PHP be fast enough?
CuriousGuy's user avatar
5 votes
3 answers
463 views

Calculate resources real-time. Sockets or not?

I'm currenly developing a game in Javascript. It's a Single Page Application so every change should be pulled from the server without page refresh. I'm currently wondering how I should handle the '...
Jordy's user avatar
  • 161
1 vote
0 answers
627 views

how do i make an object in gamemaker only overlap on one side?

I am making a small flash game in game maker 8.0 pro and I need some help. In my game, the character is in an office with cubicles. I need my character to be able to walk behind and in front of the ...
Austin's user avatar
  • 11
1 vote
2 answers
183 views

Detecting collision between browser window middle point and other sprites visible in the window

In HTML5 canvas, I have an object which is always in the middle point. On the big map there are other moving objects. I want to detect if the middle point of the window hit any shape we see on the ...
newguy's user avatar
  • 255
0 votes
1 answer
3k views

Phaser.io with Socket.io - What should the Server calculate and what the Client?

I'm currently playing around with phaser.io and socket.io to create a really simple multiplayer. For the beginning I created basic movement which is synched via socket.io. The clients are sending ...
Frnak's user avatar
  • 103
1 vote
1 answer
536 views

Designing PHP RPG game: Should I use multiple classes for each type of item or a single table?

I'm making a text-based role playing game written in PHP. I have a hard time figuring out how to handle items in game - there will be a few types of objects (weapon, machine, tool, building etc) each ...
user3343366's user avatar
1 vote
1 answer
301 views

building timers in strategy games

I've got a web-based strategy game in which you build a city. Coding is smooth, but I'm kind of hung up on how long it takes my buildings to build. I want to keep the user playing, but have them long ...
chaoskreator's user avatar
0 votes
1 answer
2k views

WebGL - Open URL in new tab? [closed]

How to open URL in new tab for WebGL? Tried Application.OpenURL("url"). But it's opens a tab in same window Thanks
Nurlan Shukurov's user avatar
1 vote
2 answers
1k views

How is persistence managed by browser games?

I was wondering, when you play browser games you never seem to witness a page refresh, even if there is data being stored on the server. So how are databases handled by browser games. In my opinion ...
チーズパン's user avatar
-4 votes
2 answers
245 views

What software to use to make games for free with commercial use? [closed]

I am going to make a 2D game, I need free software for my team of five or less people. I should be able to sell in-game currency but the game will be free. The software should be able to compile the ...
MaximumOfEnter's user avatar
3 votes
1 answer
246 views

What techniques are useful for modelling Character Actions via OOP? [duplicate]

I'm trying to rewrite a legacy php Browser-Based-Game so that it uses object oriented programming. I find it relatively easy to model concrete nouns, like: new Npc(), new Character(), new Account(), ...
Kzqai's user avatar
  • 1,198