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 [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.

-1
votes
1answer
39 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 ...
0
votes
0answers
23 views

Generate spritesheets on the server or in the client browser?

I want to make a browser game (using HTML5-canvas) where the user can create their own character with different clothing and stuff. I want to use something like the Universal LPC Sprite Sheet set. ...
2
votes
1answer
58 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 ...
0
votes
0answers
16 views

Updating same value firebase multiplayer

I've been developing a boss hitting system for my application with utilization of firebase (firestore). Simply put, there is a boss, visible to multiple users, he got max and current hp. The ...
0
votes
1answer
36 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 ...
0
votes
1answer
39 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 ...
3
votes
1answer
134 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 ...
-2
votes
1answer
70 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 ...
5
votes
2answers
1k views

Are browser games still profitable?

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, ...
10
votes
3answers
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 ...
0
votes
1answer
56 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 ...
5
votes
4answers
3k 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 as luck is random based, I'm struggling with fight ...
-2
votes
2answers
559 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 ...
0
votes
1answer
993 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 ...
1
vote
1answer
113 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 ...
1
vote
0answers
323 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 ...
-1
votes
1answer
185 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?
8
votes
2answers
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 ...
1
vote
1answer
73 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 ...
1
vote
0answers
309 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, ...
1
vote
1answer
898 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 ...
1
vote
1answer
316 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 ...
2
votes
2answers
426 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?
5
votes
3answers
226 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 '...
1
vote
0answers
408 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 ...
1
vote
2answers
91 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 ...
0
votes
1answer
2k views

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

I'm currently playing around with phasio.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 ...
1
vote
1answer
315 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 ...
1
vote
1answer
152 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 ...
-1
votes
1answer
1k 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
1
vote
2answers
639 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 ...
-4
votes
2answers
184 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 ...
3
votes
1answer
152 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(), ...
2
votes
1answer
245 views

Marketing a browser game with a specific audience

My issue is that I have extensively developed an online browser game, but mainly the marketing and independent developer guides tailor to action packed executable games. My game also tailors to a ...
5
votes
1answer
2k views

Porting a SFML game to the browser? [closed]

I've been messing around with SFML, it's my first experience with C++ and I'm enjoying it. But I'm wondering how to publish my game onto anything other than a native platform. Noting that this is my ...
1
vote
1answer
601 views

How should browser based muiltiplayer game state be syncronized using WebSockets and a Node.js backend?

I'm in the process of learning how to create browser based html5 games. I'd like to eventually be able to achieve a game with mechanics very similar to that of the game agar.io. I've been observing ...
1
vote
1answer
676 views

Can you have an embedded browser in Gamemaker:Studio

I am trying to make a sort of browser in gamemaker and I wanted to know how to embed a browser within a game. Are there any extensions I need to download?
1
vote
3answers
278 views

Browser-Based Game Design: Keeping track of NPC stats (Attack, Defense, Health, etc)

Hope this is a proper question to ask here. If not, I'd appreciate somebody pointing me to other game developer communities. Since I am creating my game by myself it'd be nice to communicate with ...
1
vote
0answers
122 views

Browser Game - Model or not Model

I'm planing on making a browser game just for fun and to improve my skills, but I have an issue regarding the Software Architecture of the game: I will be using an ORM to communicate with my database....
1
vote
2answers
1k views

which state to add main menu for simple browser game with phaser

In which state should I add the main menu, or should i make it into another separate state? My main confusion here is how I manipulate states properly. Im a phaser/gamedev noob and I dont know how to ...
1
vote
1answer
2k views

Category/genre name for games like: Ogame, Kings of Chaos, and Bitefight.?

I'm searching for a category name for games like: Ogame, Kings of Chaos, and Bitefight. When I learned about those, they were just called browser games, but today where we have the technology to ...
3
votes
2answers
837 views

Are sockets required when developing a browser based MMOG?

I'm in the very early phases of developing a browser based MMOG, kinda like this game but not as cartoonish and with more features. I'm an experienced web developer, yet not once have I ever used ...
1
vote
2answers
2k views

Are web browser games like Travian/Tribal Wars based on asynchronous responses? [closed]

I'm coding in Python. Currently, with some group of people, we are making a decision about server-side language choice for our web-browser-based strategy game. I have some questions: Are games like ...
2
votes
1answer
123 views

How can I display Unity games in Flex?

We have tried the following methods to upload sample Unity3D build to a desktop application in Flex: HTML Loader, NavigateToURL, iFrame and resolvePath. But we only see the text content, not the 3D ...
3
votes
2answers
1k views

Increasing resources overtime for a browser-based game [duplicate]

I've been interested in developing a browser game ala OGame or Ikariam etc. Basically, a menu is displayed with your resources and, overtime, they increase depending on how advanced are you in the ...
3
votes
1answer
91 views

Mouse input and structure in JS [closed]

I am creating a simple concept where I have a small menu to choose a tool from and then I can click and drag to build. For example, I click on the rails tool and then I can click and move the mouse ...
-4
votes
1answer
1k views

How to set up a client-server architecture for a browser based game [closed]

I'm really curious about how to set up a game so like Hayday or Clash Of Clans, especially with regards towards the server-client architecture. How does one set up such an artitecture? What are the ...
2
votes
0answers
361 views

Any open source editor to make video games online without programming knowledge? [closed]

With Scratch we can create video games online, from its web platform, and publish them on the same web. I could download its source code and use it, as many others already did (see Scratch ...
9
votes
5answers
2k views

Turning a board game idea into a browser based, slow paced gameplay

Suppose I want to create a strategy game with global mutable state shared between all players (think game board). But unlike a board game, I don't want it to be real time action and/or turn-based. ...
1
vote
2answers
150 views

Can various browsers be assumed to maintain predictible state accurately in multiplayer online gaming?

With many games it is said that server will assume that clients keep track of the world accurately. Assuming this is true, for a browser based multiplier space invaders game you would only tell the ...