instruction
stringlengths
33
29.4k
I've looked a bit at Breadth-First and Depth-First search algorithms and I think I've got a pretty good idea of how they work. Now I am here : Link The problem is I don't see how a 2D grid can help with a 3D game. I suppose that wouldn't be a problem if the 3D game didn't have the AI explore multiple levels of a buildi...
I'm working on two RPG battle mechanic ideas. I haven't chosen a game engine yet. Before starting to write code, how should I plan their details? Should I draw and write on paper? Should I write a specification document? What game mechanic planning processes have others used?
I need to move clipping plane of OpenGL and begin the clipping from that position. The default location of clipping plane is (0,0,0), so if my model is far enough from the center of coordinate system it immediately disappears, as I begin the clipping, cause it appears in the half clipped by the plane that just moved f...
My small games all have different gameplay. I want to showcase them through the internet. However, I'm worried about them and their concepts getting copied. How can I protect them? Also, if I have to openly display the code to the open source community, how can I make sure I get credit for my work.
I am a 2D Game Programmer.Some programming languages which I am good at are C,Java ,C#. I also know Actionscript 2.0,3.0 and some javascript. I'm interested in learning 3D Game programming. So far from the research I have accumulated by googling and reading different game development forums and articles. I've noticed t...
I'm working on a small-ish 2d fixed shoot 'em up for iPhone. I have a master Game object that stores lives, score, current level, etc... The game will have some other persistent attributes like Music and Sound mute state, difficulty level (easy, medium, hard). Should I put those attributes in the Game class or should t...
Another thought to my last question. If i were to do a client/server game with unity3d would i be able to do serverside programming with unity? if not can i use C# .net? if not then is there some sort of package or lib i can use with C++? is the communication just raw sockets?
Question: Is it possible to access the same leaderboards and achievements via GC from 2 versions of a game (i.e. 2 different SKUs, one for iPhone/iPod and another for iPad. Where both are actually the same game in terms of game modes and features. For instance to be able to have different pricing) Or: is this impossibl...
Many years ago I did some programming in TurboPascal (on DOS!), but have not programmed since. Since retiring, I have "invented" a few solitaire games that I have given to people who sell solitaire collections. Recently I've invented a game that is different enough from existing solitaires that it does not "fit" into t...
I've been developing non-mobile apps for linux; mainly stuff like interpreters, compilers, database engines and business apps. I've been told that if I wanted to learn how to develop iPhone/iPad applications, I should buy a Mac since Apple has all it's development tools for iPhone/iPad on Mac. Now, what about Android p...
Think like how Bejeweled 2 does its Blitz mode where it connects to Facebook, pulls your friends names and their top scores for the week. Are there any libraries, etc. that already help facilitate this process? I would rather not re-invent the wheel if necessary.
I have my Java environment installed alongside Eclipse, and I was successfully able to create and run a new project (simple System.out.println("Yay I work!"); I have the OpenGL SuperBible, and I primarily want to code 3D things (I'll take my time using the book to learn how to draw shapes in 3D space, etc..) Can you he...
Okay, so I'm making a platformer, and I wanna know how I can make a arc'd jump easily. Like what Mario does in super Mario Bros 1. Any ideas on a simple way to accomplish this?
Possible reference to this question, but I want specific answers pertaining to Side-scrollers. IMO, side-scrollers can be classified as Player doesn't move, the background graphics move to fake player movement. Player moves also background moves, but background movement is dependent on the (x,y) movement of the player...
In probably every game a developer has to somehow deal with input, may it be simple keyboard and mouse events, touch events or something as accelerometer input. This input directly of indirectly effects objects in the game. Sometimes the same input can effect diffent objects. Now I've been thinking about how to model t...
Just out of curiosity, I want to know opensource tools or projects that can add some interesting features to indie games, preferably those that could only be found on big-budget games. EDIT: As suggested by The Communist Duck and Joe Wreschnig, I'm putting the examples as answers. EDIT 2: Please do not post tools like ...
I have an array of lights that I need to sample from randomly, but deterministically so that all the lights are sampled. Currently I use random numbers to pick a light, and then put processed lights into another list, but I'm wondering if there is a way to use something like a hammersly or halton sequence to do this in...
I would like to start learning about game development and I would like to do it using Linux. My main experience has been with Java and a bit of C++, but that was for applications and not games. Now that I want to try with gaming, I'm wondering which IDE/language should I use in Linux, whether I should go with C++ and c...
I'm making a game in as3 using flash develop and flash cs5. Everything is object oriented. I was wondering, should I have one "gateway" class that has a property-reference to all instantiations of other classes, and I just pass this gateway class to new objects, so they have access to every class. Like so: var block:B...
I've got around 10 years behind me of casually creating AS1/2/3 games and have found myself wondering recently what other options are available for web-based games. I have recently found haXe and will probably start coding in that, since it is largely based on AS3/ECMAScript, and I am also aware of JavaScript/jQuery et...
I am creating a top-view, multiplayer, arcade-ish racing game, and I want to know if you guys think that I am on the right track, or not. It will work basically like this: -There are 3 races, and one demo derby in a round. -Each race will be a 15 lap circuit (they are very small tracks, the tracks will be visible with...
How does the game Doodlejump for iphone generate its stage? Are the platforms randomized in some way? If so, how do they make sure it doesn't generate impossible combinations? If it's not randomized, how do they make sure it's different (or varied enough) every time?
I currently try to rotate a camera (using gluLookAt()) around a point , i successfully do it for rotating around one global axis. But when i want to use more than one axis , I'm stuck . I've searched around and it's seem i need to use something like axis-angle or quaternion (that i don't understand at all for now) for...
So I am designing a game like scrabble in which a user has to make words using the letters on the screen. When the there is no possible combination of word that can be made with the letter the game is automatically supposed to tell the user to shuffle. Which changes the present set of alphabets with a new set (odds are...
Box2D seems to be set up in such a way that you cannot work in pixels (i.e. physics scale = 1). It produces very strange results as it hits maximum speed limits at low speeds and looks very strange. It only seems to work well at a physics scale of around 15 or 30. For me, working in pixels is the logical way to handle ...
Are there any good, modern widget toolkits for Pygame? I've looked at PGU, but it's apparently unmaintained.
I am a Python programmer (I know the ins and outs decently well), and I have dabbled with Pygame. I want to make 3D applications and games, and so naturally I've been looking at OpenGL. pyglet uses OpenGL, and the programming website and documentation is up there with the best I've seen as far as libraries and APIs go...
I was thinking of developing several rather simple card games in DirectX (3D), but I'm not sure if C# and XNA are powerfull enough for this. Perhaps the most appropriate question is: can you choose one or several already available 3D games that you think are the best XNA can achieve?
So I've been wondering, what kind of architecture would games like world of warcraft, diablo 2 (which is most probably a different beast than WoW) use? As far as I know, RTS games state-syncs every client and server, and the input from the clients get relayed to the server, and all states from all clients will get the ...
Well I already read a little about sorting algorithms on wikipedia, the subject seems vast, especially when dealing with some cases where some algos are faster than others. That might need some quick sum up, but before that, can somebody tell me if there are subjects of game programming where sorting is necessary ? (or...
I am wondering about in-game level design. My current situation revolves around Tiled - I have many different layers with different types of objects in them (for anyone who isn't familiar with Tiled, an object is nothing more than a coordinate with arbitrary properties assigned to it). I am currently re-compiling the g...
Apparently you need to install AIR in your mobile to use Flash apps, and AIR requires Android 2.2 while my Milestone is a feeble 2.1.update1. There is seriously no Flash lite or other alternative?
Many aspects of Unlimited Details Unlimited Detail Technology seems dubious to me, even the introductory paragraph (because of the usage of the word unlimited): Unlimited Detail is a new technology for making realtime 3D graphics. Unlimited Detail is different from existing 3D graphics systems because it can ...
I was looking at some sprite sheets at sprite sheet database. I noticed that some of the sprite sheets had several different objects placed together in one file. Some of the sprites, such as movement animations were placed next to each other so that they were of the same height. However, sometimes next to them are larg...
I'm looking for tutorials and documentation for JMonkeyEngine, beside the material on the official website. Any clue?
Does anybody knows or have any info about the OS of the servers of World of Warcraft? I have a "debate" with some friends about the OS behind WoW. They say it could be Win, which is very strange for me.
I'd like to open an XNB file on Linux. It should be an XNA Game Studio Express XNA Framework Content Pipeline Binary File. Any tool to open it? (also for windows which I can emulate on wine)
I'm creating a simple top-scrolling racing game. The concept is quite simple - the player controls the car, which goes on a dynamically generated field with square blocks. Once the car hits a car, the game ends. My first implementation was simply to put a few random blocks in each row being generated on the top of the ...
How was Quicktime video integrated into the MYST series games? I was watching a Making of MYST video and noticed that they used a small green screen and for the sequels like Riven they continued to use a green screen but with a much bigger stage. How is it that they match up the video file and integrate it seamlessly i...
I'm designing a game with random generated dungeons. I'd like to view this as a connected, undirected graph in which nodes are rooms and edges are doors or corridors. Then I choose a "side" node as the dungeon entrance, I calculate the distance between this entrance and all other nodes, and decide that one of the farth...
I'm thinking about starting a text-based RPG game using Javascript (Similar to a text adventure, but with a much more refined item/fighting system). I've had some experience with playing RPG games, but before I begin, I want to find out what some good "combat models" are. When I say combat model, I mean a tried-and-tru...
I'm developing a simple text battle game and having some issues calculating how much XP should be earned after a battle, theres a few factors that i want to consider: 1) Players should of course earn good XP if they beat someone of the same level 2) Players should earn great XP if they beat someone of a higher level 3)...
Does anyone know of a good free voxel editor and/or voxel-to-mesh converter?
Possible Duplicate: Good resources for learning about game architecture? I know that game architecture can vary greatly, especially with the type of game being built, but I know that there are a lot of similarities too. I feel like I am on the cusp of really having a good grasp on game architecture, but I feel like...
The OnLive service works by "cloud rendering", which is very different from the traditional model of "on-premise rendering" that we are all familiar with. How does this work at a technical level, and is there anything special game developers or artists need to do to optimize their game for the platform? As a develope...
I already know C# and am familiar with XNA. So it would make sense to develop for the Windows Phone 7, but would it be worth while to learn Java, get familiar with Android, and instead develop for Android devices? Android has been around longer so it would probably have a larger user base. Is it really worth it to try ...
I happened to see this structure of a gooey player character made in flash. Can anybody suggest onto what computer science concept I should use to make a goo make it behave like a goo Thanking You, Vish
Besides the story itself, a game needs code, graphics and music/sound effect. I can program and I knew a few graphics designers in the web app era. However, I don't know whether to find music and sound freelancers/professionals/partners. So how's music/sound typically done? Do you finish a game and hand it to some musi...
I'm writing my own RTS game in Delphi. Single-player part is almost done and works well and I'm thinking about adding multi-player to it now. There's going to be a lobby where players should be able to chat and organize games. I tried googling for a convenient way to do it, but couldn't find anything related .. My idea...
We are final year B.tech students wanted to just ask that if we work 2 months on making chess application,will it suffice ? Wanted to know if it is feasible given - 1.Logic implementation is not a problem (will use AI) 2.We are C++ programmers. 3.We want to make 2D GUI, didn't selected any language for this pu...
I know quite well how to check for collisions, but I don't know how to handle the collision in a good way. Simplified, if two objects collide I use some calculations to change the velocity direction. If I don't move the two objects they will still overlap and if the velocity is not big enough they will still collide af...
I've been cogitating about developing a logic game similar to Einstein's Puzzle , which would have different sets of clues for every new game replay. What data structures would you use to handle the different entities (pets, colors of houses, nationalities, etc.), deduction rules, etc. to guarantee that the clues you p...
I recently left my full-time job for an independent game development career. So far things are going well: I've created two games for the iPhone (one has been in the app store for a month or so and the other has been in review for about a week). I'm working on a third game now. Each time the game development life c...
So I read in another thread that: ...the Xbox is a closed system. Forget any direct TCP/IP interaction, you can only communicate with other consoles present in the Xbox Live! network, and you can't do raw HTTP connections. This makes me curious as to how an app like Last.fm for Xbox LIVE works. I would think it woul...
Is there a visual script editing software tool in any game engine similar to Visual3d for creating game behavior logic by non-programmers like designers?
I know that this question depends really very much on plenty factors: 2D-Pong and a MMORPG are two totally different worlds; it also depends on creators' experience, on game quality, on the available technologies, on target platform and so on, but well, I guess we can categorize games and study the average (or maybe fo...
I want to make a plugin for FSX in C/C++ but all the examples and documentation forward to the SimConnect Examples for FSX. I want to access USB-hardware from the plugin and for this reason I'm looking for a way to write a plugin in C/C++ which does not rely on the SimConnect interface.
I've used angel code's bitmap font generator quite a bit; though it's very good, I wonder if there would be a way to use the hinting information to provide a better and more readable result, by using hinting to provide differing thickness based on size/pixel coverage. I imagine any solution would have to use the distan...
I've been happy using bitmap fonts for games so far, but now I find I really need the polygon edge in some form. I saw the freetype engine some time ago, which can provide rastering of truetype fonts from within your engine, but what I think I really want for my current project is some way of converting from truetype t...
i don't really know the exact term for that (i thought it was hdr but no...). i want to put a texture as a background in opengl-es , and when we rotate the view , the background rotate too (obviously) but when there is translation , the background doesn't change. like if i was inside a sphere and the texture are stick ...
Followup to securing-http-data-from-a-javascript-game-to-server. I'm working on something similar, in that I have a PHP backend and a JavaScript frontend, which plays around with the HTML5 canvas element for drawing. There will be some heavy client-server communication required, as the player will get timely updates fr...
How can I implement a 2D explosion in a way that it will cause less damage to characters that hide behind crates or other cover? Ideally damage will depend on the strength of the cover (e.g. metal wall will protect better then wooden crate). Ideally damage will decrease with distance as well. I am going to use a port o...
Does anyone have a sample for drawing a subdivided icosahedron in javascript, that they would be able to share?
I believe it's a common requirement of MMOs that processing for a single shard or realm can be done over several servers to ease the load. I'm curious as to how this can be done whilst maintaining a unified consistent world where all the players, and all the NPCs can interact. My question is how is load balancing achie...
In opengl how do I render 2d sprites in opengl given that I have a png of the sprite? See images as an example of the effect I'd like to achieve. Also I would like to overlay weapons on the screen like the rifle in the bottom image. Does anyone know how I would achieve the two effects? Any help is greatly achieved.
Here are the specs so far to give you an idea to the question. should be fully automate-able should not inconvenience the player with regards to time should allow for a voted wild card system should involve skill will be done on a limited time frame Was thinking of using a ladder like system similar to battle net 2.0...
I have a couple of .fx files from a Shader-Based 2D Shadows example. I want to utilize the same kind of technique with XNA 4.0's Reach profile, which if I understand correctly needs to have HLSL 2.0 shaders. I am not familiar with shaders, so obviously I need to learn HLSL, but what I'm wondering right now is how to te...
I'm looking between PyGame and Pyglet, Pyglet seems to be somewhat newer and more Pythony, but it's last release according to Wikipedia is January '10. PyGame seems to have more documentation, more recent updates, and more published books/tutorials on the web for learning. I downloaded both the Pyglet and PyGame versio...
I have never done any sort of game development in my life, the only time i have looked into it is with Cocos 2D for iPhone apps, i saw the effort involved just to get a half decent map game with one png character walking around. Could someone summarise the programming languages and graphic packages someone would use to...
I am trying to create a simple game on android but I am unsure the best way to do the game loop. Looking at the LunarLander sample the game loop just loops like a variable time step loop (elapsed = now-lastupdate). I tried using this method to draw a circle that grows in size to a max radius then shrinks to a min rad...
Do I need the cutting edge MacBook Pro or iMac for 2D games development? Would a iPod touch (with Wi-Fi support) do instead of a full-fledge iPhone?
Update August 2012: thank you all for your answers. I started small as suggested, creating first a Facebook Game about it, the next step will be to port it later on PC for a 3D version, and much later as a MMORPG as I would have build credibility and funding. The upcoming FB game will be done by Blup Blup Game Studio (...
I have a little problem with designing editor in xna. I have Content types like TilemapContent and then runtime types like TilemapData (that are automaticly converted by content pipeline) but in editor, i think i need to work with TilemapContent (so that i can save it as such later), but TilemapContent contains things ...
I'm trying to remember the English name for a memory model of a map built exclusively for handling collision detection. I think this is especially frequent in tile-based platform games. I believe the Spanish term for it is "Mapa de durezas". If you have a Super Mario tilemap like this: C + 'P' = Pipe ...
I'm developing an RPG/roguelike-style game. Instead of having maps like: ......... ......... ....@.... ...h..... Oh look, a dwarf. I was having solid background tiles, So sort of a tile based RPG without drawn tiles. I like the idea of having ascii tiles for creatures and things. It saves a lot of artist time. I can c...
I was reading about OpenGL, and found out the Red Book is a great book for me to read to learn. I then read that even though they have 3.x and 4.x versions, I should still stick to 2.x so I don't create an artificial limit on who can play my game (older computers with older but powerful graphics cards would not be able...
So, I've read a lot about using FSMs to do game state management, things like what an FSM is, and using a stack or set of states for building one. I've gone through all that. But I'm stuck at writing an actual, well-designed implementation of an FSM for that purpose. Specifically, how does one cleanly resolve the probl...
See also: same question on Math.SE How can I find the arclength of a Bezier curve? For example, a linear Bezier curve has the length: length = sqrt(pow(x[1] - x[0], 2) + pow(y[1] - y[0], 2)); But what about quadratic, cubic, or n-degree Bezier curves? (My goal was to estimate a sampling resolution beforehand, so I d...
I have a game I'm working on in which items are "placed" and "selected". In order to do this, I need to determine what triangle in a mesh the cursor is pointing to. I have no trouble with getting the cursor position or the orientation/position of the camera - the problem is figuring out how they relate. I'm guessing t...
As a fairly unknown independent band, what is the best way to get our music into computer games? I'm not so much thinking about licensing issues, but more about what channels are available and how to get noticed by game devs that could be interested in our type of music.
I wish to address the low re-usability of game technology (at least provide a theoretical solution). I'm considering an approach using a semantic game format, effectively decoupling the story and logic of games from its presentation and art. I can see a few immediate advantages: Completely platform independent games (...
I am making a turn based game with tiles, much like Final Fantasy Tactics. I am trying to develop an algorithm for mapping out a list of available tiles to walk on. So for example, I am at (0,0) and I have a range of 2 - ie I can walk to any tiles that within two tiles away from me. Things to account for: I have a se...
I'm struggling with coming up with an elegant solution to generating random events in the game that I'm working on. Say there are 4 classes of events that can happen, with varying events in those classes that may occur. So something along the lines of main_events = {"common event", "not so common event", "somewhat rar...
Being a Gran Turismo fan, I'm wondering what are the algorithms used to compute realistic behavior for friction, aerodynamism, velocity, curves etc. Also, are there sophisticated ways to simulate fluid mechanics in flight simulation which are trivial enough for an amateur project ? If I wanted to build a flight simulat...
My game is having a map like that of Minecraft, in the way it's pseudoinfinite and randomly generated. And big. Say the user has explored a 1000x1000 zone (2D here), so that's 1,000,000 tiles. Obviously I'm not going to be able to store it all in memory. Nor do I just want to ignore everything out of a 10 tile or whate...
I am curious as to why most games do not have a mode in which you can easily move your cursor outside the game window to another monitor for example? World of Warcraft maximized window does this really well. Does anyone have any insight on why this would be difficult and/or not worth it for most games to implement?
I guess this question pertains more to games like MMO and Diablo-like games. What are the usual designs for implementing a drop table, where a monster could drop different type of items depending on a percentage? I guess the simplest way there is to have a dictionary of 'percentage weightage' to item types, but this is...
With the boom of mobile and social games reaching more and more people and new technologies like the wii, kinect and geolocation hardware and gadgets appealing to a bigger market than the hardcore gamer, the indie game development has a new challenge: create simple games. This might seem easier, but I think its really ...
I have just started developing games for iPhone in Cocos2d and am currently working on a Box2D prototype. I know this is not an easy start, but I have experience in the AS3 port of the physics engine. And ... I am stubborn. My question is: How do you implement and create your levels in the project. Is there a good par...
My simple canvas game seems to work fine on Chrome and FF on Mac/Linux. I haven't had chance to test it on smart phones or Windows environments yet. It doesn't use double buffering but I have seen some JS Canvas examples using it. When is the use of the double buffering recommended? Does it make difference only for sp...
OpenGL allows you to share the same shader between multiple programs. Aside from saving small amounts of memory and a shader handle, are there any GPU-side performance benefits to doing this?
So how would I design a replay system? You may know it from certain games like Warcraft 3 or Starcraft where you can watch the game again after it has been played already. You end up with a relatively small replay file. So my questions are: How to save the data? (custom format?) (small filesize) What shall be saved? H...
This question moved from https://stackoverflow.com/questions/4319183/sketchup-for-modelling-blender-for-lightmaps-rendering-in-xna-reach-profile Hello. I'm a programmer looking to add some 3D assets to my game. I have played around with both Blender and Sketchup, and for my limited 3D modelling experience I'm finding I...
Is there currently a "standard" for touch controls in shooters on platforms such as iPhone or Android? I've noticed that many of them enable auto-fire by default, or control the character via direct touch on the sprite, but don't know if this is something that is emerging as a standard or not. I've also seen virtual jo...
I've am a developer whose has spent most of my programming life developing web and business applications. I want to try my hand at something more challenging (but stay in the comfort of Visual Studio) ...perhaps XNA. Want 3D modeling software would be best for someone developing XNA? I have played with 3d MAX and Maya...
Let's say I'm a programmer, I know some artists, we've got a game engine and fun prototype done, and we're ready to enter the indie equivalent of "production". But the game is full of "programmer design" (and/or "artist design"). We've got a core design concept, but average level design, average AI patterns, average wr...
In games like city story or we farm how do they implement scrolling? To do scrolling using UIScrollView the EAGLView size has to be bigger. In those games EAGLView size look like more than 1024*1024. But there is limitation in viewport size in iphone devices(in 3G iphone max is 1024). I played those games in 3G iphone...
Say I like to experiment with multiplayer games and I do not want to reinvent the wheel and build yet another game server. I don’t mind configuring and writing wrappers and adapters (both in c++ and java) for the server. What server does Farmville use? Is it Java or C based? What isometric flash engine do they use? W...
I want to take a vector that is using world coordinates and position it using the orientation of an object. So, if the direction of the object is the z-axis, and the vector is (0,0,1), then the orientated vector would point in the direction of the object. I want to vector to remain in the world coordinate system. Al...
Since I found out Box2D, I'm using it for kind of any game-like application I try to write, from very small prototypes or small programs to test something, to actual projects. Thanks to it it's so terribly easy to handle anything from collisions, to the actual physics. Sometimes, though, I have some doubts about it: if...