FAQ
- How do I get started?[1] (for everyone)
- 10 Mostly Easy Steps To Become An Indie Dev[2]
- How do I make games?[3] (for programmers)
- How can I write my own (more complex) game?[4]
- How much fun is game programming?[5]
- What do I need to learn once I know how to program?[6]
- What do I do after school?[7]
- What are the key concepts to start with?[8]
- How do I actually finish a game?[9]
- Do I want to do this for a living?[10]
What’s on this page? I’m interested in producing complexity out of simple parts. This page contains bookmarks that I collected while working on games since 1990; I did not write most of the content linked from here. As a result the set of links here reflects the types of things I needed to know: only a few specific topics (not everything related to game programming), general ideas instead of platform-specific information (graphics, sound, compilers), and ideas and designs instead of source code (I find it easier to go from an idea to code than from code to an idea). Other sites, like Gamedev Tuts+[11], Gamedev.net[12], and Gamasutra[13], cover lots more topics than mine does.
Shortest Paths#
Determining how to move around on a map is an interesting problem. There are many different approaches, ranging from simple (walk forward until you hit something) to the complex (path finding algorithms with heuristics). These are pages about pathfinding in general, with some bias towards A*:
- Amit’s Introduction to A*[14], Breadth-First Search, Dijkstra’s Algorithm, and Greedy Best-First Search — with interactive diagrams and sample code
- Overview of Motion Planning[15] covers both movement and pathfinding algorithms
- Amit’s Notes about Path-Finding[16]
- Overview of the main issues that come up when choosing a pathfinder[17]
- Choosing a graph representation for pathfinding[18]
- Game pathfinding and AI resources[19]
- Technical papers about navigation and paths[20]
These pages are about specific techniques for pathfinding[21] and object movement[22]:
- Applet showing obstacle avoidance[23] (also see more steering behaviors[24])
- Steering Behaviors[25]
- Pathfinding for Tower Defense[26] — with interactive diagrams and sample code
- Design flaws with steering behaviors[27]
- Collision Avoidance Behavior of Pedestrians[28]
- Terrain Analysis[29] used in Age of Empires
- Pathfinding movement in RTS games[30] including groups and formations.
- Motion using Potential Fields[31]
- Coordinated Unit Movement part 1[32] and part 2[33]
- Pathfinding: the basics[34] covers different types of graphs (grids, waypoints, navmeshes) used for graph search algorithms like A*
- Fringe Search[35] [PDF] - possibly faster than A* for games (download the code here[36])
- Cooperative Pathfinding[37] [PDF] - useful when you have many units moving in narrow spaces, and need the units to be aware of each other
- Introduction to Pathfinding Algorithms[38]
- More Pathfinding algorithms[39] (minimum spanning tree, Dijkstra’s algorithm, Johnson’s Algorithm, Bellman-Ford, Floyd-Warshall, …)
- Terrain recognition and obstacle avoidance[40]
- Movement in space[41], with spaceship acceleration. Also see part 2[42] and part 3[43].
- Using Regions for Shortest Path (discussion)
- Shortest Path vs. Maze Solving Algorithms
A*
A* is a variant of Dijkstra’s Algorithm and Breadth First Search. It’s a fairly popular choice for pathfinding. It can handle varying terrain costs well, and it seems to be faster than most graph searching algorithms. However, it’s only one piece of a pathfinding solution. Map design and map representation[44] come before A*. Grids are easy to work with but not always the best approach. Formations, path following, movement, path recovery, and animation come after A*. Many games don’t need A* at all: it deals with discrete steps, not with continuous movement; it works on graphs[45] and does not take full advantage of spatial coherence (i.e., a map location is very similar to its neighbors) or temporal coherence (e.g., if we already found a path a few seconds ago, it’s likely if we try again the path we find will be similar); and if the game world is changing quickly it’s not worth planning very far ahead. A* is a good tool but it’s not the only one to look at.
- A* Demystified[46]
- Intro to A*
- Using Navigation Meshes for pathfinding[47]
- Multi-resolution A*[48]
- Lists vs. Binary Heaps for A*[49]
- Choosing a heuristic for A* (and other performance notes)
- An analysis of heuristics for A*[50] [PDF]
- Speeding up A* by dropping admissibility
- Path Finding[51] [150+ message newsgroup discussion] [290k]
- A* references
Code and Demos
- A* for Beginners[52] (with Basic code)
- A Java Applet demonstrating A*[53](be sure to use the Fudge method for best results)
- Flash pathfinding demo[54], includes source code.
- Python code for A* and other search algorithms[55] — note that the
astar_search
function is only four lines long!
The link to my A* code is to the second version [1998], with bug fixes, optimizations, and parameterization for different heuristics and cost functions. The first version of my code is available on Steve Woodcock’s pages[56], and it may be easier to read and understand.
Artificial Intelligence#
Many times I play a game and wish that the computer opponents were written better. Sometimes the computer player is given different rules; other times it has the same rules but gets more money (or other resources) than you. The result is that the game doesn’t seem balanced: it’s just too obvious that the computer is not playing well, and that the game is brain vs. brawn rather than brain vs. brain. At the same time I don’t want AI that’s too good; if it were, then it’d always beat me and I’d be frustrated!
What techniques are useful in game AI?
- Guide to AI architectures[57]: ad-hoc, state machines, behavior trees, utility functions, planners, neural networks
- The Total Beginner’s Guide to Game AI[58]: ad-hoc, decision trees, scripting, events, state machines, behavior trees, utility functions, steering, pathfinding, planning, learning, knowledge representation
- Finite State Machines[59] can be used to express how an AI agent changes from one behavior to another. There are states and transitions between states. For more complex behaviors, see Subsumption Architecture[60], Hierarchical Finite State Machines[61], State Charts[62], and Behavior Trees[63].
- Behavior Trees: breaking the cycle of misuse[64] describes when to use and not use behavior trees
- Utility-Based AI[65] is useful when several factors need to be taken into account to make a decision; also see this article[66].
- Map Analysis analyzes and annotates a game map to provide information for later decision-making. They go by several names, including Heat Maps, Influence Maps[67], Terrain Reasoning, and Using Potential Fields[68].
- Pathfinding and Movement are used to move an agent in a game world. Pathfinding algorithms are used for the high level planning; reactive movement algorithms are used between the waypoints marked by the pathfinding algorithm.
- Planning Systems[69] search over possible futures to pick one that is best. Typically possible futures are represented as a graph, with nodes as futures and edges as actions.
- Probabilistic Graphical Models[70] combines node-and-edges graphs with statistics. Bayesian networks, Markov random fields, hidden Markov models, and Kalman filters can be used with PGMs.
- Neural Networks[71] are function approximators. Given a set of x and f(x) where function f is unknown, you can build a neural network approximating f. There are also other ways to approximate functions[72]: curve fitting, chebyshev approximation, fourier series.
- Genetic Algorithms are parameter optimizers. Given a known function f(), you want to find x such that f(x) is maximized (or minimized). There are also other ways to optimize parameters: simulated annealing, hill climbing, swarm intelligence. Typically all of these approaches pick one or more x, evaluate f(x), and then improve the choice of x.
In choosing a technique for AI in your games, keep it as simple as possible; read this[73]. If you know the answer, put the answer into the program. If you know how to compute the answer, put the algorithm for computing it into the program. Only if you don’t know the answer, and don’t even know how to compute the answer, should you resort to complex techniques that can learn how to find the answer. These complex techniques can come at a high price, in terms of programming time, game performance, difficulty of debugging, and lack of control.
I’ve also collected links to other game AI articles; these aren’t organized:
- A Panorama of Artificial and Computational Intelligence in Games[74] [PDF] - including research areas
- A different Overview of Game AI[75] [PDF]
- AI Wisdom[76] [book series]
- Game AI Pro[77] [book series] - free articles on the bottom of the page
- An introduction to AI in Games[78]
- Geoff Howland’s Practical Guide to AI[79] and part 2[80]
- Great Expectation-Formations[81] — AI shouldn’t just react to the world, but it should form expectations about the world, and react to deviations from that.
- Influence Maps part 1[82] and part 2[83]
- Making AI more challenging[84], in particular, by making it less predictable
- Terrain Reasoning for 3D Action Games[85] [PDF]
- The AI of F.E.A.R[86] [PDF] - Jeff Orkin’s planner AI
- Need-driven AI[87]
- Needs Based AI[88] introduction
- The Procedural AI in Killzone[89] [PDF] Includes line of sight, firing range, pathfinding, and tactical evaluation at run-time
- Strategy and Tactics by DreamWeaver [62k]
- Behavior trees[90]
- AI in Empire-Based Games
- Hierarchical AI
- Monster AI in Unangband[91]
- Grenade handling AI[92] [PDF]
- Secrets of Enemy AI in Uncharted 2[93]
Computer AI is most commonly used to implement opponents for the player. However it can also be used to implement the world (for example, all the businesses in Railroad Tycoon), assistants to the player (for example, the automatic city management in Civilization), or computer players that are not necessarily opponents (for example, non-player characters in role-playing games).
- AI Beyond Computer Games[94]
- Under the Hood of The Sims[95] [slides] (also see these design documents[96])
- S.T.A.L.K.E.R. uses the terrain to assign goals to the NPCs nearby[97]
- AI in Black & White[98]
Game Design#
A lot of what is hard about writing a game is getting the design right. What makes a game fun? Game design is an art, not a science. It’s not just the rules of the game but the way in which you interact with the game.
- How to Prototype a Game in Under 7 Days[99] — some good advice for getting something put together quickly to see if it’ll make a good game
- Tight Systems of Cause and Effect[100]
- Too Many Clicks![101] Design the UI around the things the player wants to do, not around the objects in the game.
- The Chemistry of Game Design[102]
- Game Balance[103]
- Ramblings about RPG Design[104] includes topics such as balance, food, economy, time, death, weapons, storyline, and magic.
- Is is better to have a single core game mechanic?[105]
- Confessions of a horrible game player[106] - why you shouldn’t punish game players for playing your game
- Resources, currencies, and meters[107]
- The Design of Online Economies: Part 1 (Currency)[108], Part 2 (NPC Merchants)[109], Part 3 (Items)[110], and Part 4 (Skills)[111]
- The Essence of Computer Games[112]
- Evolutionary Design[113] - why you should get something up and running before designing everything about your game
- Medieval town size[114]: how many peasants are needed to feed towns and armies, and another post on this topic[115]
- Persistent Myths about Game Design[116]
- Urban modeling[117] - models used in SimCity
- Sims, BattleBots, Cellular Automata, God and Go[118] - an interview with Will Wright
- Designing simulation games[119] - they’re games, not necessarily realistic models
- Game Economies[120] and self-balancing designs
- The 36 plots[121] for games
- One Billion Buttons[122]: how to gradually teach complex concepts
- Positive and Negative Feedback[123]
- Believability in games[124] (read the comments too)
- Progressive vs. Experience games[125]
- Realism in games[126]: how much is too much?
- An example of why you don’t want too much realism in a game[127]
- Loops and Arcs[128] - structures for game design
- The Future of Game Design[129] (2005)
- Addictive Games
- Designing controls for a game[130], including how to combine controls to build more complex ones
- Design notes for my game, SimBlob
- Design notes for my game, Solar Realms Elite
- Understanding randomness in terms of mastery[131]
- Design documents for Ultima 7 part 2[132]
- Making Sense of Software: Computer Games and Interactive Textuality[133] about SimCity and simulation games
- Why you should share your game designs[134]
- The Focus of Gameplay[135]
- UI for games[136]: displaying information vs. immersion
- Bad Twinkie[137], a database of game design mistakes
- Random numbers for damage rolls[138] and other RPG stats
- The Fundamental Pillars of a Combat System[139]
- Player Preferences:[140] Fictionalists want game rules to support the story and world; Systemists want story and world to support the game rules.
Tile Based Games#
I love tile grid based games because tiles can produce a lot of complexity from simple parts[141]. There are several topics that come up with tile based games. The data structures are typically variants of 2 dimensional arrays. The display transforms an array of tile data into top-down (2D), isometric (2.5D) views, or full 3D views. There are also side views but I don’t cover that here. The algorithms on grids allow you to implement gameplay elements ranging from line of sight to evaluating where enemies are likely to be. Tiles also work well with procedural world building algorithms, such as the ones in Diablo, Civilization, and Dwarf Fortress.
Data structures
The basic tile structures do not depend on whether your display is 2D, 2.5D, or 3D. These articles are about how to store your data.
- Tile-Based Games FAQ[142]
- Amit’s Thoughts on Grids[143] includes squares, hexagons, and triangles
- Data structures for tile based games[144]
- A file format to handle linked lists of objects
- Placing multiple objects on each tile [newsgroup discussion]
- Streaming Data[145]: how to choose tiles to load, if your entire map doesn’t fit into memory
- Tile-based games techniques
Displaying Tiles
A 2D tile grid can be displayed in various ways. The most straightforward is top-down or side-view, but these days it’s more common to see isometric or 3D views. Note that most “isometric” views in games aren’t true isometric, but dimetric[146].
- Guide to projections in games[147]
- Creating Isometric worlds[148]
- Isometric, Dimetric, Axonometric projections[149]
- Isometric Engines - are they for you?[150]
- Drawing isometric blocks in the correct order[151]
- Overview of Isometric Engine Development[152]
- Isometric math[153] - converting back and forth in a principled way
- Implementing isometric tile systems[154]
- Isometric Coordinates using basis vectors[155]
- Sorting objects in isometric view[156]
- Sorting objects using topological sort[157]
- Offsetting background tiles[158], drawing tiles from corners instead of centers to improve terrain transitions
- Creating tile seams[159] for textures.
- Map representations for 2d platformers[160]
- Isometric Projection in Games[161] - includes code
Algorithms
- Line Of Sight Algorithms
- Computing Line of Sight for Large Areas[162]
- Tutorial for making a Roguelike[163], including map representation, dungeon generation, field of view, fog of war
- Line tracing on a grid[164] — determining all tiles that are touched by a line
- Collision, visibility, and grid representation in tile based games[165], including using edge information
- 2d visibility on a grid, using polygons for computation[166], and part 2[167], which improves the algorithm
- Visibility algorithm for top-down 2d polygon map[168] which can also be used with tiles
- Precise angle shadowcasting[169] in a 2d grid
- Determining the range that a unit can move to
- Using tiles for flows[170] [video and paper] The idea is to put motion/flow information into the tiles instead of in the objects; it reminds me of the reversal of roles in The Sims objects
- Occupancy grids[171], using influence maps to let NPCs track possible locations of players
- Also read about pathfinding algorithms, which are often used on grids.
Building Worlds
Although procedural map generation can be applied to non-grid worlds, it’s most often used with grids. Viewed at a single point in time, generated game maps are rarely as nice as hand-crafted worlds. However, they have three advantages: (1) lower cost per world if there are many worlds to be made, (2) more replay value because the next time through the world is different, and (3) potential for the world evolving while the game progresses.
- Procedural world potentials: The simulation, functional and planning approaches[172]
- A primer on repeatable random numbers[173]
- Amit’s Island Map Generator and demo (Flash)
- Procedural Content Generation[174]: generating terrain, cities, buildings
- Dungeon generation[175] in Unangband[176]
- Generating game worlds with a lock-and-key structure[177] so that certain rooms require objects from other rooms
- Algorithm for building rivers[178]
- Adding rivers to randomly generated terrain[179]
- The original Rogue algorithm[180] for generating dungeons
- 11 Maze Generating Algorithms[181] with demos and code
- Using noise functions to generate caverns[182] such as those in Terraria and Minecraft
- Irregular shaped rooms[183], simple algorithm
- Resizable interior room regions[184]
- Tunneler algorithm[185] for digging dungeons in DungeonMaker[186]
- Guide to random Terrain Generation techniques[187]
- Wiki guide to procedural content generation[188]
- Simulating Large Virtual Worlds[189]
- Arc Consistency Explained[190], one of the elements of the Wave Function Collapse[191] constraint solver.
Hexagonal Grids#
Many war games use hexagonal grids instead of square grids. Squares share an edge with four neighbors but also touch another four neighbors at just one point. This often complicates movement along grids because diagonal movements are hard to weight properly with integer movement values. You either have four directions or eight directions with squares, but with hexagons, you have a compromise—six directions. Hexagons don’t touch any neighbor at only a point; they have a small perimeter-to-area ratio; and they just look neat. Unfortunately, in our square pixel world of computers, hexagons are harder to use, so I’ve collected some articles that may help you turn common square-grid algorithms into hex-grid algorithms.
- Amit’s guide to hexagonal grids[192] - with interactive diagrams
- Amit’s Thoughts on Grids[193] includes squares, hexagons, and triangles
- Overview of hex grid coordinates[194]
- Hexagonal coordinates explained[195], including hex/pixel coordinate conversion
- Numbering Systems; Distances; Angles
- Isometric Cube Coordinates
- Comparison of Hexagonal coordinate systems[196], including pixel to hex coordinates, and hex distances
- Hexagonal Coordinates and Distance function[197]
- Hexagonal Grid Math[198], including mouse position to hex coordinate, and source code in Java and Actionscript
- Pixel Location to Hex Coordinates
- Converting mouse location to hex coordinates[199]
- Line of Sight and Distance, plus a Java applet demonstrating field of view[200] (includes Java source)
- Identifying directions in a hex grid [PDF] (sent to me by Cris Fuhrman in 2006)
- Grids used in Cellular Automata[201]
Object Oriented Programming#
I have found object oriented programming to be useful for user interfaces, operating systems, and games. At the same time, it’s commonly believed that object-oriented programming is the best way to program (especially back in the 1990s, when I started this page), but there are lots of situations where other approaches work much better. Since most of my readers are familiar with object oriented programming, the links I collect here are mostly about alternatives to the usual approaches. There is no one best approach. Learn many.
- Data-oriented instead of object-oriented[202], and part 2[203]
- Why it is time to start thinking of games as databases[204]
- Why data layout matters for performance[205]
- Understanding Component-Entity Systems[206]
- Building a data-oriented entity system[207], a series
- Entity systems instead of Objects[208], especially for MMOs (also see his wiki[209]) (also see the difference between Martin’s ECS and Bilas’s EC[210])
- What is an entity framework?[211] - step by step, how to move from traditional OOP to entities
- Components for game entities[212]
- How to represent hierarchical data in a data-oriented way[213]
- Multiple Inheritance and RPGs (1997)
Adventure Games#
Adventure games often have good puzzle and story structures. When I started this page in the 1990s, I was especially interested in MUDs and interactive fiction. TADS[214] was the tool to use, or maybe Inform[215]. Since then, there have been lots more tools, such as Curveship[216], Hugo[217], Inklewriter[218], Twine[219], ChoiceScript[220], Squiffy[221], Ren’Py[222], Quest[223], ADRIFT[224], and Ink[225] I never did work on an interactive fiction project, so I don’t have a great set of links. Check out the Interactive Fiction Wiki[226] for more.
- Interactive Fiction design patterns[227]
- The structure of puzzles in Ocarina of Time[228] (Zelda)
- NPC Conversation Techniques
- Narrative Flow Graphs[229] [PDF] based on Petri Nets, for representing story elements
- Big List of Plots[230]
- Laws of MUDs[231]
- Non-linearity in games[232]
- Object Oriented Adventure Games
- Text vs. Graphical MUD thread [newsgroup posts]
- Text vs. Graphical MUDs[233] (Raph Koster’s view)
- Modeling Opinion Flow in Humans[234]: use the Boids algorithm to model human opinions in social groups
- Prose in Games[235]
- Rant 4[236], a procedural text generator using grammars that handles English prose, numbers, plurals, capitalization, punctuation, rhyming, etc.
- I Have No Words & I Must Design[237]
Scripting Languages#
I usually recommend putting general rules (“find a path from here to there”) in source code and specific rules (“if sensor 9 triggers in corridor 3, make guard 18 find a path to sensor 9”) in data files. However some things fall in between and are hard to express purely as data. That’s where scripting languages come in.
Scripting languages give you a way to write a lot of non-speed-critical code with comparatively little effort. You can design the language to specifically deal with your game, so the amount of work you have to do is less than for a general purpose language. Also, you can write the compiler to optimize for different things (like size instead of speed), allow more features (like dynamic patching at run-time), and even user customization (for enthusiastic users!).
- The Secret Life of Game Scripting[238]
- Intro to writing an interpreter[239]: in only 90 lines of code, he implements variables, execution, higher-order functions, recursion, branching, lists, trees, and procedure calls. (Not specific to games but a good introduction)
- Crafting Interpreters[240], everything you need to know to implement your own language
- Rule-Based Programming[241] and a comparison to Object-Oriented programming for game scripting
- Properties Pattern[242], useful to know before you design your own language
- Bytecode Interpreter[243] pattern and implementation
- Game scripting with Stackless Python[244]
- Building a scripting engine parts 1[245], 2[246], 3[247], 4[248], 5[249], 6[250], 7[251], 8[252], 9[253]
- NPC Scripting[254]
- Discussion about what language to use, how to implement [newsgroup discussion]
- Scripting languages in MUDs[255] [newsgroup discussion]
- Implementation strategies for scripting languages [newsgroup discussion]
- Writing modifiable games[256]
- Scripting languages used in Interactive Fiction[257]
- Using Stackless Python and microthreads for games[258]
As much as I love scripting languages, my recommendation is to put as much as possible into plain data files (no code) that are processed by your game. If you really need a general purpose language, use Lua. Only make your own scripting language if it’s a small game specific language. For example, a game specific script for a play might look like this:
Amit [to Steve]: Hello, friend! Steve [nods to Bryan]: Welcome to CGDC. [Amit exits left.]
Note that it’s very high level: it doesn’t specify exactly how Amit speaks or how Steve nods or even the timing. For this to work, you need to have some assumptions about how people behave, and that makes the language specific to the system you are setting up. In this particular language, the use of brackets marks actions and the colon marks speech. In another language brackets might mark optional parameters and colons mark sections. The more general purpose your language, the fewer assumptions you can make, so it becomes more verbose. For example, the conversation might look like this:
Amit.turns_towards(Steve); Amit.walks_within(3); Amit.says_to(Steve, "Hello, friend!"); Amit.waits(1); Steve.turns_towards(Bryan); Steve.walks_within(5); Steve.nods_to(Bryan); Steve.waits(1); Steve.says_to(Bryan, "Welcome to CGDC."); Amit.waits(3); Amit.face_direction(DIR_LEFT); Amit.exits();
That’s a program, not a script. See the difference? The script is high level, and specifies what you want to be done, while the program is low level, and specifies exactly how to do it. It’s not a great deal harder to interpret the first syntax than the second. You already have a programming language (C, C++, Pascal, Basic, etc.). You don’t need another! (Unless your goal is simply to allow run-time flexibility, which can be done with dynamically loaded libraries, or by using an existing language like Lua.)
Try to think differently. If you’re going to go through all the effort of making a scripting language, don’t make it look just like C. Think about using an event-based structure. For example, have commands like “when X happens, do Y.” Think about having many things happen at once. Amit doesn’t have to stop just because Steve is saying something. Think about different styles of programming, like rule based, functional, imperative, logic, and object-oriented. Think about alternate rules of logic, like fuzzy logic (truth isn’t certain) or linear logic (one truth can turn into another, making the first false). Make the language take advantage of the structure of your game, and you may find it much easier to build parts of your game world. Otherwise you’re paying a high implementation and integration price without gaining the benefit of a second language.
Economics#
Economics is the study of human choices when it comes to managing resources (money, time, happiness, raw materials, goods, and so on). In many strategy games, economics is an important aspect of the design. Balancing the resources of your world can be a fun part of the game. Economics is also important in multi-player game dynamics: you want to reward people for making money, yet you don’t want them to have so much power that new players cannot have fun. One thing I want to explore is how location influences economics. In high school economics, businesses compete by price. Whichever business sells for less will win. But if transportation cost is a factor, then both businesses can coexist, and the player has to make interesting decisions about where to place new facilities[259] to balance all the variables (availability of labor, transportation cost of raw materials, transportation cost of product, tax rates, zoning laws, etc.).
- Is it a game or a world?[260]
- Economies in a virtual world[261]
- AI Economics Agents[262]
- Medieval Demographics Made Easy[263]
- Medieval Price List[264]
- Transport system in Widelands[265]
- Economic model of Pirates of The Burning Sea[266]: labor, prices, markets, upkeep, taxes, and world events
It’s hard to come up with rules for economics in an online virtual world when the underlying costs are so different. In the physical world, “objects” take resources to build, but they typically do not use resources to keep (if you don’t use them), and you typically do not get those resources back when you throw the object away. Therefore our real world economy is based on buying things. In the virtual world, the “objects” take a small amount of memory and if you destroy the object, you get the memory back. At the same time, the very existence of a virtual object costs CPU time, which cannot be recovered. Therefore the virtual world economy might be based on renting things. If your world’s economy reflects the underlying costs, a diamond ring may “cost” as much as a bucket of sand. Although this reflects real costs of running your server, and therefore would discourage players from overloading it, it may not make sense for your game.
In addition to the economics of objects, you have to consider the economics of living in the world. In the physical world, mere existence of a person has a cost; in the virtual world, existence is cheap. Since a player may not be “logged on” all the time, it’s hard to come up with fair rules for the cost of existence without penalizing either players who play a lot (your core audience) or players who can’t log on much (who are likely to leave if penalized for not being there all the time). If you require someone to work for a living, the casual players may not be able to compete, and may leave.
Notices#
This page and other pages I have written are Copyright © 2019 Amit Patel.
If I have a link to one of your pages or to a saved copy of something you posted to a public newsgroup, and you would prefer that I remove the link, please send me email.
I say no to exchanging links, advertising, or web rings.