31 votes

Browser RPG fight calculation formula

Your question can be summarized as "I got a Luck stat in my combat system, please tell me why". Ask yourself: What game-design goal does the Luck stat fulfill? Do you have an immediate answer? If you ...
user avatar
  • 111k
16 votes

Why PHP over C# for PBBG?

PHP has the advantage that it is very widely supported by cheap webhosters. You can rent some shared-hosting LAMP (Linux, Apache, MySQL, PHP) webspace for peanuts. And that webspace can also host your ...
user avatar
  • 111k
12 votes
Accepted

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

Generally, when you start without experience you should go with the existing solution instead of inventing something new. However, your situation is different. Neither FATE nor GURPS are frameworks ...
user avatar
  • 9,927
10 votes

Browser RPG fight calculation formula

You essentially want your crit to scale from 0% to 100% with diminishing returns. Here is a formula that is 0% at luck=0 and approaches 100% as luck goes to infinity. ...
user avatar
  • 720
6 votes
Accepted

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

A rule of thumb is that you use different classes when objects require different code and instances of the same class when the objects only require different values. So when ...
user avatar
  • 111k
6 votes
Accepted

File saved to IndexedDB lost unless we change scenes

D'oh! This is covered in the WebGL troubleshooting documentation (which did not come up in my web search results for 'Unity IndexedDB'). Unity does not flush changes to IndexedDB immediately when you ...
user avatar
  • 3,395
5 votes

Calculate resources real-time. Sockets or not?

Introduction There are pros and cons to each method of synchronization you gave that depend on a couple of factors. First, is your game singleplayer or multiplayer, second, how real-time is your game?...
user avatar
  • 163
5 votes

Why PHP over C# for PBBG?

The other answers are correct, but there's a historical factor that hasn't been mentioned. When I started to search for do and donts and tips I realized that a lot of projects use PHP and I have ...
user avatar
  • 151
4 votes
Accepted

Are sockets required when developing a browser based MMOG?

ajax / html request Slowpoke. Good for loading pages without navigating to another url. No good for action games but should be fine for turn based games I imagine. That is unless it's a very fast ...
user avatar
  • 10.5k
4 votes

Are sockets required when developing a browser based MMOG?

Websockets are a very elegant and fast way to implement asynchronous communication between client and server. But they are far from the only. When low latency isn't that important for you, you can ...
user avatar
  • 111k
4 votes

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

Instead of completely refilling all players action points at a fixed time, you could instead give them a small amount of action points every few minutes and allow them to safe up action points up to ...
user avatar
  • 111k
4 votes
Accepted

Are browser games still profitable?

Do I have to use flash to be accepted on these sites? Flash is dead. The browser vendors killed it and put HTML5+JavaScript in its place. Even Adobe admits that. All the web game portals are moving ...
user avatar
  • 111k
4 votes
Accepted

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

I read somewhere that you shouldn't compare floats Beware programming by hearsay. This is a good way to make mistakes for reasons you don't understand. Instead, ask for clarification. The full ...
user avatar
  • 112k
3 votes

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

You might want to look at internet Diplomacy, which takes the simultaneous moves approach. Diplomacy assumes you will be discussing moves with other players, so you have some idea of what is going ...
user avatar
3 votes

Browser RPG fight calculation formula

What does Luck mean? Luck could increase the chance of some combination of: Hitting Evading Blocking Crit-ing (also potentially crit damage) Getting an item (if there are items) Having that item be a ...
user avatar
3 votes
Accepted

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

After further digging into Patreon material, I found a blog post from them that answers my question. It puts subscription as one of the one of the business models one can use the platform for. 6. ...
user avatar
3 votes
Accepted

In regards to real time turn based games, where should the turn handler be?

The general rule of thumb for handling multiplayer games is that any game mechanics which can be handled on the server should be handled on the server. There are two reasons for that: The less the ...
user avatar
  • 111k
3 votes
Accepted

How to best deal with percentage from gear and skills when stacking

I think you have two concepts mixed up: A percentage multiplier and a percentage bonus. A percentage multiplier can decrease your stats below their original value. If you have a debuff that says "...
user avatar
2 votes

SVG—Adding fire to the roket

This sounds like a good use for a particle effect. When the fire is on, spawn multiple, small dots each frame. Assign a slightly different angle (generally facing downward) and slightly different ...
user avatar
  • 111k
2 votes

Is there a way to use scala with html5?

Have a look to http://www.scala-js.org/ - it is Scala to JavaScript compiler. Supports source maps and since version 0.6 is not longer experimental. http://www.scala-lang.org/news/2015/02/05/scala-...
user avatar
  • 121
2 votes
Accepted

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

You could take some inspiration from the game Neptune's Pride which sounds a lot like you want to do - a board game, browser based, played over weeks. To address your question: but this still ...
user avatar
2 votes
Accepted

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

Unfortunately most of the tutorials you'll see will teach you some bad habits as far as state management goes. What you'll want to do here is avoid the object literal state declaration in favor of ...
user avatar
2 votes

Increasing resources overtime for a browser-based game

tl;dr The resources should only be controlled by the Server (securely) as a decision making entity; The actual work could be offloaded to ...
user avatar
  • 10.5k
2 votes
Accepted

Can you have an embedded browser in Gamemaker:Studio

For Windows projects you can use https://marketplace.yoyogames.com/assets/683/web-browser
user avatar
  • 1,040
2 votes

Marketing a browser game with a specific audience

You have a very specific audience? That's great, because it means that your advertisement is easy to target. Go to where your target demographic is. Find out what communication channels they use, and ...
user avatar
  • 111k
2 votes

building timers in strategy games

The question is "why do you have timers at all? What's the gameplay purpose?" When your answer is that you want to force the player to revisit the game later ("long enough to keep them having to come ...
user avatar
  • 111k
2 votes
Accepted

Turn-based browser game

Unless you expect to have millions of concurrent players, I don't think you have to worry about inherent performance differences of languages or technologies. That is even more true since your game is ...
user avatar
  • 2,056
2 votes
Accepted

2d game with 3d js. game engine

2d rendering is easily possible with 3d rendering engines, even when there is no explicit support for it. How it would work: Just put your two-dimensional geometry parallel to the xy-plane (or any ...
user avatar
  • 1,497
2 votes
Accepted

requestAnimationFrame handles game ticks weird when tab isn't viewed

Indeed, that's one of the "features" of requestAnimationFrame, it frees resources from not-focused tabs. To use this animation method you should use deltatime to keep track of the time elapsed ...
user avatar
  • 745

Only top scored, non community-wiki answers of a minimum length are eligible