instruction stringlengths 33 29.4k |
|---|
So I'm currently writing the engine for my videogame. I've almost integrated Tiled (I think) so I should have a map-creator here soon.
My question is, how do I actually make the grid? I'm really confused here. If I create a large map with, say, 20x20 grids the size of 32x32 (screen size 640x640), then what do I do with... |
I'm considering using micropather to help me with pathfinding. I'm not using a discrete map : I'm working in 2d with sectors and portales. However, I'm just wondering what is the best way to compute costs with this library in this context.
Just to be more clear about geometrical shapes I'm using : sectors are basically... |
I have a perspective projection. When the user clicks on the screen, I want to compute the ray between the near and far planes that projects from the mouse point, so I can do some ray intersection code with my world.
I am using my own matrix and vector and ray classes and they all work as expected.
However, when I try... |
What is a fragment in a fragment shader? Wikipedia says that:
In general, a fragment can be thought of as the data needed to shade the pixel, plus the data needed to test whether the fragment survives to become a pixel (depth, alpha, stencil, scissor, window ID, etc.)
So is it textures, vertices or something else?
|
So if you spend any time viewing / answering questions over on Stack Overflow under the C++ tag, you will quickly notice that just about everybody uses the boost library; some would even say that if you aren't using it, you're not writing "real' C++ (I disagree, but that's not the point).
But then there is the game ind... |
I am self-learning programming for video games. I have learned:
Basics (variables, loops, branching, etc.)
Object Oriented (classes, objects)
Functions
Dynamic Memory Allocation
Operator Overloading
Aggregation
Inheritance and Polymorphism
Swallow Copy And Deep Copy
STL Libraries
and I am learning I/O Files. What is ... |
I am modeling walking insects. I implement them as cuboids and use forces (including friction and drag), to control motion. However, the movement characteristics of this 'sliding box' physics don't match those due to a legged creature.
For example, legged creatures near-instantly accelerate to their top speed; wherea... |
Pretty new to the whole game development scene, but I have experience in other branches of programming. Anyway, I was wondering what methods are used to implement a skill structure. I imagine a skill in itself would a class. I'm using actionscript 3 for this project btw.
public class Skill
{
public var power:int;
... |
I've implemented LuaPlus in my engine eventmanager successfully and really like the flexibility I gained. But I'm still not exactly where I want to be, because I can't link my c++ classes to a Lua class.
For example, I have a Actor class in C++, and I want to be able to create the same class in Lua and gain access to m... |
I completely do not understand how a video game can be coded.
I'm a beginner programmer and only have experience writing console applications that do math and what not. I do not understand how these logical processes can make images move on the screen (video games). Obviously if I jumped into a game development book or... |
I'm a game programmer for a AAA-level developer and publisher—which I know falls into the 'nice problem to have' category. However, I'm becoming disenchanted with the direction of both the company and the AAA-portion of the industry as a whole.
I want to do something fundamentally different.
It seems the market has nev... |
I'm looking for a video encoding library in C++ that I can use to record game footage.
It can not be an external application like Fraps, it must be a library.
Ideally the encoding can be done in real time without affecting game performance too much, although this is not a must have requirement.
Another preference is th... |
I've been developing a game which is rather blinky in terms of color and brightness contrasts. It's an iPhone game, so the screen will be quite small, but I've heard about Wipeout XL failing the epilepsy test.
How does one ensure that a game won't cause epileptic seizures for users?
I am an indie developer, so a low-b... |
I've been adapting the NeHe OpenGL/Win32 code to be more object-oriented and I don't like the way some of the calls are structured.
The example has the following pseudo-structure:
Register window class
Change display settings with a DEVMODE
Adjust window rect
Create window
Get DC
Find closest matching pixel format
Set... |
I'm new to game programming, although I have some years of experience in console/web development. My problem is not so much that I can't find what I'm looking for, it's just that I don't have the terminology to actually perform a successful search.
I am looking for a physics engine which has great focus on sounds. In f... |
I want to develop a flash game. It would draw a stick man, and edit his pose.
I think what I need to learn are bones animation and physics engine.
Can anyone introduce some good resources to learn both?
|
I have to watch the keyboard during rendering.
So, is there a way to force glut to invoke the Keyboard callback immediately?
|
I'm having a really hard time deciding which way to go on this. I'm about to start developing a game and I haven't been able to find many good comparisons between these approaches. I don't have many requirements for the game yet, but here is what I do know.
needs to work on iPhone
I don't have much money ($400 for U... |
Could I knindly ask for correct examples of OpenGL ES 2.0 Vertex and Fragment shader for displaying 2D textured sprites with transparency?
I have fairly simple shaders that display textured polygon pairs but transparency is not applied despite:
texture map contains transparency information
Blending is enabled: glEnabl... |
I am interested in learning the class structure of Plants vs Zombies, particularly level design; for those who haven't played it - this video contains nice play-through: http://www.youtube.com/watch?v=89DfdOIJ4xw.
How would I go ahead and design the code, mostly structure & classes, which allows for maximum flexibility... |
I am looking for a library which would easily allow me to render shapes (cubes, spheres, lines, circles, etc.) in 3D3 and OpenGL if possible. I want to be able to rapidly design visual debugging tools and I am not proefficient enough in graphics rendering to do it myself (writing the low level stuff that is). The libra... |
I have a machine with two discrete GPUs and one integrated GPU. I can currently switch between them using NVIDIA's software, but I would like the ability to do so within my applications for purposes of benchmarking and general convenience. Apparently this requires the "NDA version" of NVIDIA's Driver API, which I know ... |
I am trying to write efficient code to render a tile based map in android. I load for each tile the corresponding bitmap (just one time) and then create the according tiles. I have designed a class to do this:
public class VertexQuad {
private float[] mCoordArr;
private float[] mColArr;
private float[] mTexCoordArr;
p... |
I want to find out the best way of creating time based events in games. Lets talk for example about Texas Holdem Poker. Server can handle thousands of tables and in every table we have timers: turn timer, hold seat timer and so on.
What is the best way of timers realization for this purpose?
Is System.Timers.Timer clas... |
I've followed example from various place regarding setting OutputMerger's BlendState to enable alpha/transparent texture on mesh. The setup is as follows:
var transParentOp = new BlendStateDescription {
SourceBlend = BlendOption.SourceAlpha,
DestinationBlend = BlendOption.InverseDest... |
I would like to apply (program) the Artificial intelligence methods to create game bots for first person shooter games. Do you have any knowledge from where can I start to develop as a Linux user? Do you have a suggestion for an easy-to-start game for which I can develop bots easily, caring more about the result of my ... |
I have a rectangular tile-based layout. It's your typical Cartesian system.
I would like to have a single class that handles two lookup styles
Get me the set of players at position X,Y
Get me the position of player with key K
My current implementation is this:
class CoordinateMap<V> {
Map<Long,Set<V>> coords2valu... |
I haven't seen any MMO games with vehicles with realistic physics and that could achieve high speed, why? Is it because of network bandwidth limitations?
Second Life has vehicles, but physics are poor and max speed is pathetic.
|
For a solid general purpose software developer, what specifically is different about game development, either fundamentally or just differences in degree?
I've done toy games like Tic-tac-toe, Tetris, and a brute-force sudoku solver (with UI) and I'm now embarking on a mid-sized project (mid-sized for being a single de... |
My game engine right now consists of a working singleplayer part. I'm now starting to think about how to do the multiplayer part.
I have found out that many games actually don't have a real singleplayer mode, but when playing alone you are actually hosting a local server as well, and almost everything runs as if you we... |
I am looking for simple, self-contained C library for Linux to load images from files into OpenGL textures. The licence should be quite liberal: zlib, bsd, mit or something. I have found SOIL, however it hasn't been updated for a long time. Is there something else, or do I have to write my own?
P.S.
I use glfw. There a... |
I'm in a multimedia class in college, and we're "learning" OpenGL as part of the class. I'm trying to figure out how the OpenGL camera vs. modelview works, and so I found this example. I'm trying to port the example to Python using the OpenGL bindings - it starts up OpenGL much faster, so for testing purposes it's a lo... |
Summary:
My 50% finished 2D sidescroller with Box2D as physics engine should have multiplayer support in the final version. However, the current code is just a singleplayer game.
What should I do now?
And more important, how should I implement multiplayer and combine it with singleplayer?
Is it a bad idea to code... |
I am currently creating a 3D first-person shooter game in the browser using WebGL. How would I implement mouselook/free look for such a game?
|
I am developing a sprite based 2D game for mobile platform(s) and I'm using OpenGL (well, actually Irrlicht) to render graphics. First I implemented sprite rendering in a simple way: every game object is rendered as a quad with its own GPU draw call, meaning that if I had 200 game objects, I made 200 draw calls per fra... |
I'm currently looking for a branching dialogue editor that allows me to prepare all the dialogue, export it into an XML format that then can be parsed by Unity 3D.
The only editor I found until now is Chat Mapper, which is Win only. Is there something similar for Mac?
Even if there is nothing for the Mac – what would b... |
I'm currently develop a facebook mafia like PHP game(of course, a light weight version), here is a simplify database(MySQL) of the game
id-a <int3> <for index>
uid <chr15> <facebook uid>
HP <int3> <health point>
exp <int3> <experience>
money <int3> <money>
list_i... |
I see a number of tutorials on how to create good looking grasses when creating 3D renders but can't think how to model it for realtime/use in a game's scenery.
Sure simple models with alpha cutouts can be used to create plants and trees in really awesome scenery but what about a lawn?
Are there any good tricks to achi... |
I mean: i don't think they made 4 differnet game for each platform.
How they achived such huge cross-platform? (Did they use a graphic engine that already supports all of them?)
Thanks
|
I have a game using DirectX 9, and a development station using Win 7 x64. I am still able to get access to another station with Vista x64 / dual booted with WinXP x86.
I wanted to check early Z efficiency in the game and to my sadness all tools I have tried seem to be unable to perform this task:
AMD PerfStudio
AMD GP... |
I'm starting my undergraduate studies soon, but as I'm not from UK, I completly don't have idea what university should I choose.
Do you know any good game programming universities?
Is it good idea to make computer science as undergraduate studies and game-programming as postgraduate one? I'm thankfull for all your rep... |
I'm building a game with Ogre3d, I've got fog working properly with:
scenemanager->setFog(Ogre::FOG_LINEAR, Ogre::ColourValue( 0.23f, 0.725f, 1.0f ), 0, 18, 20 );
However I'm currently implementing a GUI system (libRocket) which is rendered on top of everything else, and this removes the fog, does anyone know how to fi... |
Yes I proudly -and sadly- declare that I am a complete nincompoop when it comes to Flash, and I have been fishing around the big wide web for information. The reason for this is that I have been contracted to create a game(s) for a website -the usual flash-based games caveat. Please I do not mean things like by those g... |
I am trying to create a 2D platformer (Mario-type) game and I am some having some issues with handling collisions properly. I am writing this game in C++, using SDL for input, image loading, font loading, etcetera. I am also using OpenGL via the FreeGLUT library in conjunction with SDL to display graphics.
My method of... |
Here's the situation. I've got a set of 2D coordinates that specify a point on an image. These 2D coordinates relate to an event that happened in a 3D space (video game).
I have 5 images with the same event point on it, so I have 5 sets of 2D coordinates for a single 3D coordinate. I've tried everything I can think ... |
This is a question I've never been able to find the answer to. Batching objects with similar states is a major performance gain when rendering many objects. However, I've been learned various rules when drawing objects in the game world.
Draw all opaque objects, front-to-back.
Draw all alpha-blended objects, back-to-f... |
What is the significance of Bresenhams Line of Sight algorithm in chasing and evading in games?
As far as i know and implemented this algorithm calulates the straight line between two given points. However while implementing it in game development i stored the points calculated using this algorithm in an array.Then im ... |
Interested in both successes and failures (and semi-successes).
Maybe this might be better at OnStartups but I think the game market is quite a bit different than the business market that's prevalent there (i.e. selling something that's fun instead of selling something that's useful)
|
I'm writing a roguelike where objects and floor can be made of different materials. For instance, let's say we can have a wooden chair, an iron chair, a golden chair, and so on.
I've got an Object class (I know, the name is terrible), which is more or less using a composite pattern, and a Material class. Material have... |
What's the best way to have large animations in XNA 4.0? I have created a spritesheet with the sprite being 250x400 (more of an image than a sprite but hey ho) and there are approximately 45 frames in the animation. This causes problems for XNA as it says that the maximum filesize for Reach is 2048.
I'd rather not chan... |
I am familiar with Unity and in the process of learning android SDK when the announcement about unity android basic came out.
What would be the advantages and disadvantages of using the android SDK directly versus development using Unity Android?
|
So I have some experience programming in Java, and at the moment I am learning how to use Python. I have read on the process of game design and such. I also have media covered, got experience with graphics and audio. My question is geared more towards the actual tools to use for making games, developing. I am willin... |
By far, the biggest problem that has always dawned on my when programming games is how to structure my code. It just becomes an incredible mess, after a while. The reason for that is because I have no idea how different classes should interact with each other.
For example, say I have a Player class, a PlayerInput class... |
I'm working on a 2d game and am looking to make a sprite move horizontally across the screen in XNA while oscillating vertically (basically I want the movement to look like a sin wave). Currently for movement I'm using two vectors, one for speed and one for direction. My update function for sprites just contains this:
... |
I am making a hack n slash 3rd person game, and I want the character movements to be more dynamic not like fighting games where you have a moves list.
I want to animate tons of different animations and have them "Tween" between each other.
I do not want the to use the mouse for controls, I want it to be all keyboard,... |
I've read in many places that DrawableGameComponents should be saved for things like "levels" or some kind of managers instead of using them, for example, for characters or tiles (Like this guy says here). But I don't understand why this is so. I read this post and it made a lot of sense to me, but these are the minori... |
this is a post detailing my search for the most enjoyable way for a hobbyist game programmer to sweeten his free time with making a game.
My requirements:
I looked at Flash first, I made a couple of small games but I'm doubtful of the performance. I would like to make a fairly large strategy game, with several hundred ... |
I'm working on a 3d music visualizer using Ogre3d, basically it's a spectrum analizer, a lot like the old xmms plugin:
http://www.youtube.com/watch?v=_6NKBiwYN24
It works well, the bars are drawn and updated, there are no framerate issues, but it crashes randomly. Sometimes it can run without problems, finish the song,... |
I'm looking to create an economic model for a game based on goods created procedurally.
Every natural resource and produced good would be procedurally generated, with certain goods being assigned certain uses.
Fakesium might be used for the
production of Weapon A and produced
from Fakesium factories which use
Di... |
So say you have a 2 player game, taking Chess as an example (except it's an original game with no ready-to-go AI available).
Let's say there's also a social-aspect to the meta-game, so let's say it's a Chess game on Facebook where you can challenge your friends.
How important is it to have a single-player mode, knowi... |
After searching for a long time, I'm surprised this question was not asked yet. In a 2D, tiled-map game, how do you handle the map ? I'd be glad to have your point of view in any languages, though I'm more interested in C++ implementations.
A 2D array, a 2D vector, a class handling a linked-list with ad hoc computing t... |
I continually build complex engines and libraries within a single platform and technology, to allow me to build increasingly bigger and better games. How do I continue this when development crosses into different platforms? If I switch platforms, how do I leverage past code and experiences?
Games are hard to build. Bi... |
I think this isn't possible, but I just want to check this:
Is it possible to create a face in opengl that has two normals?
So: I want the inside and outside of some cilinder to be drawn, but I want the lights to do as expected and not calculate it for the normal given. I was trying to do this with backface culling of... |
What is the effort required to use a game engine such as Unreal or Unity, etc. and create an avatar customization features...complete with clothes.
The user should be able to customize the body features and the clothes need to then fit onto the customized body.
What is needed?
Can you create one set of 3D models for cl... |
Looking to see what the level of effort is for implementing a screen capture command into PS3 game by a mid-level PS3 game developer.
Bonus for a description of what is involved in the process...
EDIT
Not sure how to get back my question since it was the first but let me clarify some things. @Nate Bross, nope I am not ... |
This sounds like an easy thing but when I considering the following
Many players
Some have played many games and some just started
Different type of statistics
On what information should the actual ranking be based on? I am planning to display the board in a UITableView so there is limited space available per player.... |
I'm curious what the process is for development for a game console such as Wii, Playstation, or Xbox. Do I need to use some game engine and compile for each platform?
What IDE is used? Any C++ IDE? Are all console games built in C++?
|
I'm not much of a maths expert, so this is probably quite straight forward. I was playing a soccer flash game where you take free kicks. You provide Power, Swerve and Direction. I'm reading up on vectors and such so I can use the direction and power information to shoot the ball with the correct velocity.
What I don't... |
This question focuses on the API's available on phones.
I'd been planning to use OpenAL in my game for maximum portability. It runs great on Linux so I can quickly iterate while developing as well as leverage the desktop's superior debugging tools.
However I've recently heard that Android doesn't support OpenAL well. ... |
I am a beginner to game development and as I am used to programming in C# I decided to go for XNA. I've been playing around with it for a while and now I am learning the basics of HLSL shaders, I have noticed in the MSDN documentation that there have been some syntax changes in HLSL between DirectX 9 and DirectX 10, fo... |
I am developing a 2D shmup (i.e. Aero Fighters) and I was wondering what are the various ways to store a level. Assuming that enemies are defined in their own xml file, how would you define when an enemy spawns in the level?
Would it be based on time? Updates? Distance?
Currently I do this based on "level time" (the a... |
I have just finished my hypothetical game engine, library or framework.
Now, I want to share it with people who may find it useful in their projects. Where can I advertise it to gain users?
By advertise, I mean to spread the word of its existence - not advertise it for money.
|
Does it make sense to implement the logic to skip rendering objects outside the viewport or should I not care about it and let the Framework do it?
|
When you plan a game, or even when you already made a game, and its time to publish, you wonder how much of your audience is covered by the game technology demands.
I'm directing this essentialy to casual games, as I constantly see people having old laptops and being unable to replace them. Laptops with integrated card... |
Dear all, this is going to be tough: I have created a game object factory that generates objects of my wish. However, I get memory leaks which I can not fix.
Memory leaks are generated by return new Object(); in the bottom part of the code sample.
static BaseObject * CreateObjectFunc()
{
return new Object();
}
Ho... |
I asked this earlier in this thread at stackoverflow.com. One of the early comments redirected me here to gamedev.stackexchange.com, so I'm reposting here.
Searching for related questions I found a number of very specific questions, but I'm afraid the specifics have proved fruitless for me and after 4 hours on Google I... |
So being a primarily c/c++ developer, I've always thought that the only option for mobile game development for me was using iOS, which allows for c/c++ (and minimising objective C).
I heard from a friend though, that android has a native development toolkit which allows for c++ code to work on android.
Has anyone used ... |
I'm making a SpaceWar!-esque game using XNA. I want to limit my ships to 5 active bullets at any time. I have a Bullet DrawableGameComponent and a Ship DrawableGameComponent. My Ship has an array of 5 Bullet.
What is the best way to manage the Bullet textures? Specifically, when should I be calling LoadTexture? Right n... |
I am currently creating a browser based game, and was wondering what was the standard approach in making diverse conditions and status bonuses database wise. Currently considering two cases.
Event Conditions
Needs min 1000 gold
Needs min Lv 10
Needs certain item.
Needs fulfillment of another event
Status Bonus
Re... |
My C++ turn-based game server (which uses database) does not stand against current average amount of clients (players), so I want to expand it to multiple (more then one) amount of computers and databases where all clients still will remain within single game world (servers will must communicate with each other and use... |
Im using UIPanGestureRecognizer in my cocos2d game to do drag and drop of sprites. I have a row of sprites and when I drag a sprite on top of another one, the sprite underneath it and any other sprites between should shift left or right out of the way to allow space to drop the currently selected sprite.
This is worki... |
I'm developing a casual Android game in which the player's success can very easily be represented by a number (I'm not more specific because I'm interested in the topic in general).
Although I myself am not a highscore person at all, I was thinking of implementing a highscore for that game, but I see at least 2 problem... |
ChatBlade is an MMO middleware for handling client side chat in (massively) multiplayer environments. I am looking for a royalty-free, cheaper (<1k) alternative (C++ or dll preferred) that would do the same before deciding on having to spend time developing an own solution.
Any help is greatly appreciated.
|
Continuing from this question (new question - now unrelated)
So I have a thorough background in programming already (algorithms, math, logic, graphing problems, etc.) however I've never attempted to code a game before. In fact, I've never had anything more than minimal input from a user during the execution of a progra... |
I want to be able to zoom in and out of the map using the scroll wheel. I want to zoom towards the cursor like Google Maps does, but I'm completely lost on how to calculate the movements.
So far, all I have is the resizing, but I now need to change the map position.
What I have: map x and y; map width and height; curso... |
There is a game called Zombie Cafe, for iPhone. It is 2d and has a cool concept. Developed by capcommobile.
Anyway, all I want to know is what engine did they use for making it?
I know that this kind of game could be done using pretty much any engine, but I am particularly interested in capcommobile's approach. Do you ... |
Edit: I'm using the GL enum, which is incorrect since it's not part of OpenGL ES (see my answer). I should have used GL10, GL11 or GL20 instead.
Here's a few snippets of what I have so far...
void create()
{
renderer = new ImmediateModeRenderer();
tiles = Gdx.graphics.newTexture(
Gdx.files.getFileHan... |
I sometimes disable depth buffer writing via glDepthMask(GL_FALSE) during the alpha rendering of a frame. That works perfectly fine on some GPUs (like the Motorola Droid's PowerVR), but on the HTC EVO with the Adreno GPU for example, I end up with the frame buffer being complete garbage (I see traces of the meshes I re... |
I do most of my development on OS X and for my current game project this is my target environment. However when I play games I play on Windows. As a windows gamer I am used to Alt+Tab switching from within the game to the last application that was open.
On OS X I currently can't find either a game that supports that no... |
I want to display a 3D textured sphere, and then rotate it in one direction. The direction will never change, and the camera will never move. One way is to actually create a spherical mesh, map a texture to it, rotate the sphere, and render in 3D.
My question is, is there a way to display a 2D circle, that looks like a... |
I know of at least big title game (Starcraft II) that doesn't require unique display names, so it would seem like it can work in at least some circumstance.
Under what situations does allowing non-unique display names work well? When does it not work well?
Does it come down to whether or not impersonation of someone e... |
I need to find out the point inside a body, lets say a rectangular object, where the mouse was clicked on. I'm makin a game where the force will be applied depending on where the mouse was clicked on the body. Any ideas?
Will body.GetLocalPoint(b2vec2) work? I tried by passing the mouse coordinates when the click occ... |
I'm working on a top down fishing game. I want to implement some physics and collision detection regarding the boat moving around the lake. I would like for be able to implement thrust from either the main motor or trolling motor, the effect of wind on the object, and the drag of the water on the object.
I've been look... |
I searched a bit, but didn't find anything particularly pertinent to my problem - so please do excuse me if I missed something!
A few months back I inherited the source to a fairly-popular indie game project and have been working, along with another developer, on the code-base. We recently made our first release since... |
Im making a game in Java with a few other people but we are stuck on one part of it, making the collision detection. The game is an RPG and I know how to do the collision detection with the characters using Rectangles, but what I dont know how to do is the collision detection for the maps. What I mean by that is like s... |
I've seen lots of questions around this area but not this exact question so apologies if this is a duplicate.
I'm making a small 3d game. Well to be honest, it's just a little hobby project and likely won't turn out to be an actual game, I'll be happy to make a nice graphics demo and learn about 3d rendering and c++ de... |
I'm trying to map a brick texture on the edge of a fountain and I'm using gluDisk for that. How can I make the right coordinates for the disk? My code looks like this and I have only found a function that takes the texture along with the camera.
I want the cubic texture to be alongside of the fountain, but gluDisk does... |
I'm using Unity3d iOs and am using the example joysticks that came with one of the packages. It works fine but the area the joystick moves in is a rectangle which is unintuitive for my type of game. I can figure out how to see if the distance between the center and the current point is too far but I can't figure out ho... |
I am trying to make my first Tile-game using XNA. I have no problem drawing the map layers using TiledLib from codeplex, but, now I want to give sprite an (order) to move to a specific position on map, by selecting the sprite (left mouse click) and then right mouse click somewhere on the map to specify the target posit... |
I've been following a guide I found here (http://knol.google.com/k/matrices-for-3d-applications-view-transformation) on constructing a matrix that will allow me to 3D coordinates to an object's local coordinate space, and back again. I've tried to implement these two matrices using my object's look, side, up and locati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.