instruction stringlengths 33 29.4k |
|---|
Assuming the following:
the game will be cracked at some pont no matter what
players are pushing to the limits
trolls exist
What happens when these 3 combines?
Regulating a troll can be handled if the device / game is not cracked, i.e. kick out, ban etc.
But how to handle someone who comes online with different iden... |
I'm developing a game in which player can use ropes to swing (just like what Spiderman or Bionic Commando did) and I'm having problem implementing this behavior. Can anyone help me how to do this, I mean physics formulas and etc. Till now I've come up with 3 ideas. One is using spring, but it consumes a lot of time and... |
For my masters thesis I'm going to develop a scalable multiplayer server for locationbased games. It's going to be a "service oriented architecture" e.g. one dedicated service for positions, one for the database, login etc. However 1..n frontend services for the clients to connect to. Scalability will be tested with si... |
Using XNA's built in Intersects() on two Rectangles, I can detect a collision and set my velocity to zero. However, the object is stuck there and can't get out! How can I resolve this collision properly?
|
I am making an image slide show using slimdx and c#. Till now I have done transitions using the matrix transformation but now I am trying to make transitions using some gray scale background image.
Can any body please give me an idea how can i perform that or can post some code to give me an idea.
|
I'm developing a game with large obstacle and sprites(in cocos2d+box2d for iPhone), then after zooming out my sprites and layer (by increasing cameraZ), I make my game to play by user, which causes some problem in touch detection of dynamic objects.
Can it be said a good approach to work with? If No then what will be... |
I want to make a simple game where I have some characters fighting on a plane (level). I find the trickiest part as figuring out who should do what here.
I want my terrain to have friction (so you could play on ice).
I also want fairly customizable characters.
At first I was thinking of a mediator pattern where the gam... |
I'm currently porting a game to a new platform, the problem being that the old platform accepted non power of two textures and this new platform doesn't.
To add to the headache, the new platform has much less memory so we want to use the tools provided by the vendor to compress them; which of course only takes power of... |
I'm creating a game inside of a game called "ROBLOX". The game gives you some scripting tools to allow me to basically create anything I want. The world is created up by decently large blocks. There are few exceptions to this (such as ramps, spheres, tubes, etc.)
I want to create a subtle hint of wind. It will be a... |
What is the difference between ambient and skylight lighting? Please give me a detailed description of the differences.
|
I am developing a small 2D game engine. The characters have a paint method which currently does the following:
Calculate the new position of the character as per its speed, etc.
Update the collision grid cell **
Draw the character at the new position
** I have created a collision grid to reduce the number of intersec... |
I have mice looking and walking in my game, but they are very slow and hard to use. I think it's because I'm using fixed speed. I heard that in big projects developers use delta time. How do I calculate delta time in glut? How do I calculate speed using delta time?
|
I've been working on a 2D (tile based) 2D platformer for iOS and I've got basic entity collision detection working, but there's just something not right about it and I can't quite figure out how to solve it.
There are 2 forms of collision between player entities as I can tell, either the two players (human controlled) ... |
Last month, I experimented a lot in game development using cocos2d for the iPhone, especially on moving and modifying sprites. However, vertices and polygons are still new stuff for me.
I developed an algorithm that creates a set of points. I now want to use them to create my 2D terrain. Here is how it looks like when ... |
I'm checking to see if the ray that I've created is intersecting with a rectangle. I'm using the boundingbox class to pass the rectangle into the intersect method in the Ray class, but unfortunately it isn't working I'm wondering if it has something to do with how I constructed either the boundingbox or the Ray.
The c... |
I'm new to developing Android games, but not new to developing mobile games (J2ME). I'm currently developing a board game, for a school project, with 2 things - a board and a spinning wheel (both are displayed at the same time). The user is able to zoom in/out and scroll around the board and spin the wheel. The wheel i... |
I'm wanting to create the digital painting type of effect that you see in Braid for a game I'm creating. I was wondering if someone can point me in the right direction? I'm most familiar with OpenGL ES 2.0.
I'm wanting to have the background move like Braid does as well.
If anyone can get me started I would really ap... |
I am unable to wrap my mind around designing a good way to manage resources in my game.
For instance, a vertex buffer in DirectX or OpenGL would lead me to believe I should have one central buffer in which I would adapt to my game. But how would I efficiently manage this?
If I had 2 game objects which used the same mod... |
People who build in Unity or UDK have immediate access to a 3D level editor. People who build their games in XNA or from scratch have no such thing. I'm looking for 3D level development tools available to these people.
It must be free, or affordable to an indie developer. I leave the term "affordable" open to interpre... |
Which in your opinion is the programming language of choice for game development?
Any special mention for .NET developers?
|
I am trying to compute visibility in an old 3d file format. I am using a BSP tree have finally gotten everything built and traversable.
Now I don't have any sort of PVS, potentially visible set to work with so I need to know the most efficient way to choose what polygons to render as there are literally thousands of th... |
I'm trying to retrieve the names of the texture files (or their locations) on a mesh.
I realize that the texture file name information is not preserved when the model is loaded.
I've been doing tons of searching and some experimenting but I've been met with no luck. I've gathered that I need to extended the content pi... |
I need to create an engine that will allow me to add content to a website. The website is a browser-based game. This is a verbose engine that should be able to handle many different aspects of the project.
For an example, I want the developers to be able to insert "dreams" into the game. A dream is called each night fo... |
I'm having a tremendous time getting the second (or additional) sprites in my game engine to render properly. The first one always works great: it is positioned and sized properly in screen coords, and its texture is mapped properly. When I add a second sprite to the world, its texture does not get mapped properly. ... |
Possible Duplicate:
What math should all game programmers know?
How many need know(learn) Math for Game Developer? for 2D and 3D games?
And where best learn Math for game development? in Wikipedia or maybe Books?
Thanks for answers.
|
i'm currently coding a 2D game in Java, and I would like to have some clues on how-to build this system :
the screen is moving on a grander map, for instance, the screen represent 800*600 units on a 100K*100K map.
When you command your unit to go to another position, the screen move on this map AND when you move your m... |
I am trying to study XNA for game programming. XNA has many methods that can simplify developer's life, such as reflecting the vector when it hits a solid plane.
I know these are good and developers almost always work at an abstracted level, which is also the basic fundamental of OOP. I am not comfortable with physics... |
Currently I am working with cocos2d for the iPhone. I want to make my game structured and consequential. How to manage all the game components?
What do I mean with game components? A game component is e.g. the terrain or any other object like a character that is drawn on the scene. These components have attributes and... |
I'm having some difficulties with Box2D DistanceJoints, I'm trying to create a rope using DistanceJoints connecting some bodies together but the length of joints between bodies change due to weight of bodies, is there any way to prevent joint lengths from changing?
|
I am writing a collision detection system which uses the logic mentioned by Trevor here
But I have anticipated a problem which I have shown as a diagram
How do we handle this problem?
|
I am making the collision resolution system for my 2d top-down game, and I managed to find a solution where I query which surfaces of other AABBs the current entity can collide with in the next frame.
To resolve the new location of the player however, I need to find which surface the entity collides with first.
I have ... |
Can anyone point me to some information on what a modern video card architecture looks like? I'm particularly interested in understanding how my rendering engine will be executed by the GPU.
Ideally, I'd get two answers: one related to today's monster video cards and one related to today's mobile GPU's.
-- edit follows... |
Possible Duplicate:
Effective marketing strategies for independent game projects
I created a javascript game for browsers.
Do you know easy ways to promote it?
|
Basically, what I'm trying to do is apply a shader to my background image and only the background image. The problem is: the background is actually made up of tiles that are picked out of a list of images. The background code loads and draws the tiles according to a map (an int[,].) I've been reading up on using Render... |
I've read this wall jumping question but I'm having trouble implementing it. I've gotten as far as implementing a timer that controls when wall jumping is possible. Right now, if I go up against a wall, then jump, I'll have a timer that will later run out (and then I won't be able to wall jump in mid air).
However, I'... |
I am making a game for android which I need hit detection between two objects. The first bitmap I have is a flying superhero, and the second bitmap is anything that he collides with.
The superhero bitmap is created on the fly by rotating the original bitmap between -90 and 90 degrees. As a result of the rotation, the b... |
I am trying to make a simple sync between two box2d rooms, where you can drag boxes using the mouse.
So every time player clicks (and holds the mousedown) a box, I try send joint parameters to server, and server sends them to other clients. When mouseup occurs, I send command to delete joint.
The problem is that sync b... |
I'm new to programming and game programming.
I've reading something about vectors and math, but I have a question - where do I use vectors in game programming? Maybe anyone can give a simple example where you are using vectors (in 2D)?
I've found examples but mostly they are in the console where they output numbers, an... |
I'm developing a Android board game and have a question regarding creating a board that is zoomable and scrollable. The board contains a static background, characters (players) and the actual "level" which is drawn using tiles.
My solutions is to have a collection of elements (tiles, figures, all game elements - all h... |
I'm learning how to use VBOs and I'm following up on the tutorial at the bottom of this page.
So I went ahead and created a structure Vertex to hold vertex data.(coordinates and normals).
struct Vertex {
GLfloat x, y, z;
GLfloat nx, ny, nz;
GLfloat r, g, b;
GLfloat padding[7];
};
For the moment I'm tryi... |
I need the ability to order the drawing of sprites and fonts. Some sprites need to be drawn behind and some in front of text. My problem is that my sprites and fonts use separate Begin() End() calls so I can't simply order the draw calls.
How is sorting generally done in DX9?
|
I have a simple application. It has two threads, each with its own rendering context, but they share one VBO (this is working, I tested it).
Now what I want: One thread is rendering some data from the first half of the VBO and the second thread is updating the second part of the VBO.
When I don't update the VBO, it's ... |
Hey. I'm trying to create an enemy that travels at a speed s on screen but I'm having trouble with trying to make the speed vary in a smooth motion. Basically, I can get the enemy to move at a constant rate but at random intervals, I'd like it to speed up then slow back down to it's original speed, or slow down then sp... |
From my estimates the MMO I'm designing can support 500000 concurrently connected non-idle users (and still be able to you know, do stuff) for about $1700/month in total hosting costs (includes bandwidth). No system admin is needed as the infrastructure auto-scales. Each additional 40000 users costs another $136/month.... |
When a ball is struck, how can we know in which direction both balls will go when ball is struck? I know the angle at which the ball strikes the other ball matters, but how can we calculate that angle?
I've seen some of the videos to get started with elastic collision. Here is the link:
http://www.youtube.com/watch?v=B... |
I've been playing around with this tutorial/sample code that demonstrates a simple implementation of light-pre-pass, which is a type of deferred lighting setup.
I'm in the process of implementing point light shadows, using dual-paraboloid shadow maps. I'm following this description of DPM:
http://gamedevelop.eu/en/tuto... |
I am using an event-based input handling system with events and delegates. An example:
InputHander.AddEvent(Keys.LeftArrow, player.MoveLeft); //Very simplified code
However, I started wondering about how to deal with 'nested' input. For example in Half-Life 2 (or any Source game, really), you can pick up items with E.... |
What is the best way of storing the character's inventory (consisting of each item having a value for type and quantity). The only methods I can think of is to use the "text" type of field then parse the value from that whenever the inventory is loaded. Is there a better method or data structure?
|
I'm using gluNurbsCurve to draw some curves with some control points. I've got the basic setup as described in the red book working correctly and I'm trying to expand on it.
This sample looks like this:
float knots[8] = {0,0,0,0,1,1,1,1};
float pnts[4][3] = { {...},{...},{...},{...} };
GLUnurbsObj *m = gluNewNurbsRende... |
Is it possible to keep a Windows Form inside a XNA project? I tried it but without success.
Below I'm showing how my main file is.
using System;
namespace JogoSuecaOnline
{
#if WINDOWS || XBOX
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summa... |
I would like to create a 2D right triangle grid for a game I am working on. Currently I am creating creating a 2D square grid, and each square contains 2 triangles.
I am wondering, is there a way to create and manage a right-triangle grid without having to contain 2 triangles in each square?
|
The game is 2d, and the genre of this game is tower defense.
I managed to get it moving to the cell and arrived in the cell. But it never arrives at the middle of a cell.
Here's what I did...
public Enemy plotPath(Cell start, Enemy enemy, float deltaTime) {
//Direction
int directionx = 0;
int directiony... |
I'm creating a game using OpenGL (via SDL) and C++ (via Visual Studios 2010 Professional). During the game, I will be using 3D character animation. I'd like to use wavefront *.obj files for all the 3D models (with the exception of terrain). The characters will need to have fluent movements (realistic), with as many as ... |
Programming in Java. Tinkering around with physics. My entities all have position and velocity. In the main loop, all I'm doing is applying gravity and bouncing off the edges, like so:
// add gravity vector
o.velocity.add(GRAVITY.cpy().mul(dt));
// bounce off walls
if ((o.position.x<0 && o.velocit... |
OpenGL contexts before and after OpenGL 3.0 are rather different. So far I've really only worked with buffers on either side anyway, I do know the most notable difference is lack of Immediate Mode.
Throwing out Immediate Mode considerations all together, what important differences should I look out for specifically wh... |
I'm looking for a graphic engine programmer that knows both OpenGL and software rendering code to hire for a very short period (2 days). It's urgent and I'm willing to pay a very high amount of money. Any ideas where I could find one keeping in mind the points mentioned below?
Clarifications
I am not specifically look... |
What would be a good algorithm for the Fifteen puzzle, if the puzzle is slightly modified in that you only have a small number of pieces that should be placed correctly and these correctly placed pieces can be located anywhere on the board
Say we had the board
1100
1000
0000
000
and we need the shape
111 anywhere i... |
I have a very general question: In games, what use does the programming concept of a window have? Or, in other words, why do some game dev libraries offer interfaces through which to create multiple windows? — Why would you need more than one windows in a game?
Are multiple windows used as different views/states of th... |
I had a question about How to calculate the enemy to arrive in the middle of cell.
How to calculate the enemy to arrive in the middle of cell?
The posters pointed out that the direction of the enemy isn't needed because the velocity already has a direction. I modified the code -
if(position.x < start.position.x) {
... |
I'm trying to build a uniform grid made of 3D points over the surface of an arbitrary mesh (we have texture-coordinates for each vertex...)
Or to reformulate: imagine a mesh textured with a texture featuring equally spaced dots: I want to obtain the 3D coordinates of these dots.
So far, I'm able to generate a normal fo... |
I would like to differentiate the look as much as I can but yet it has to be within the limits of what is reasonable for a single programmer can do. I have alot of ideas that would make the game itself different but I'm afraid the look of the blocky world and blocky characters are going to be too much like Minecraft. ... |
I have an artillery game (hobby-learning project) and when the projectile hits it leaves a hole in the ground. I want this hole to have antialiased edges. I'm using System.Drawing for this. I've tried with clipping paths, and drawing with a transparent color using gfx.CompositingMode = CompositingMode.SourceCopy, but i... |
I am preparing sounds system to my game in xna. I am using XACT Tools, and i got problem.
There is class SoundCategory. I can change sound level for all sounds in that category easily.
SoundCategory category = engine.GetCategory("music");
category.SetVolume(float_value);
But there is no such function like:
category.Ad... |
I trying create simple Multi-player with HTML5 Canvas, JavaScript(too using John Resig simple Inheritance library) and Node.js with Socket.IO.
My client code:
var canvas = document.getElementById('game');
var context = canvas.getContext('2d');
var socket = new io.Socket('127.0.0.1', {port: 8080});
var player = null;... |
I converted my project's .xnb files to .png files using a program and I can't seem to find a way to transform .png back to .xnb. I don't want to lose the work I've done. How can I change the images back?
P.S. GXView shows an error when I try to save as .xnb
|
I make games with flash and I am interested in making games in html but I haven't seen any companies or websites which are willing to buy these games (i.e game sponsorships). I was hoping somebody could tell me about a company who would do this or why people don't buy html games?
|
I have developed an algorithm that generates 2D terrain coordinates for my iOS 2D game. This may be a possible visual output:
The coordinates are stored in a 2D array.
mVertices[i][0] = ccp(sx, sy);
mVertices[i][1] = ccp(sx, 0);
E.g. sx is increased in steps of 30px while i is the number of steps. For each step a sy... |
I was wondering. Suppose I have a 1000 grass meshes. They all have the same material, but I create them separately, because they look slightly different, because they have different heights.
Does my GPU speed up if I only draw one mesh over and over again? Or is only the material switching and uniform setting the main ... |
For my multiplayer game server, I made a class inheriting from "Microsoft.Xna.Framework.Game", just like I did for the client-side part.
The thing is, I don't need any graphical display for the server, so I end up with a useless blank game window floating around. Also, the LoadContent/UnloadContent and Draw overrides a... |
I am working on a FPS/MMORPG and ran into a problem at spawnpoints, when I enabled collision detection between players. Neither player would be able to move if both spawned at the same time, because both players would essentially be "trapped" within each other's meshes. What is the best way to resolve this problem?
|
Is there such an algorithm to sort an array of 2D points in clockwise order?
I'm specifically dealing with right triangle in my case so only 3 points.
However I'm interested in knowing if such an algorithm exist, if not what is a simple way to return the 3 points of my triangle in clockwise order?
Edit: I am trying... |
I am using Bullet Physics v2.78. And Im trying to build this library to be used for ogrebullet. The main problem is that Im getting errors trying to find the Bullet Directory.
Im wondering if maybe my environment variables are setup wrong.
I am using Windows Vista 32 bit, and here are my Environment variables:
BULLET_R... |
First off, I'm not referring to scene management; I'm defining game state loosely as any sort of state in a game which has implications about whether or not user input should be enabled, or if certain actors should be temporarily disabled, etc.
As a concrete example, let's say it's a game of the classic Battlechess. A... |
I'm pretty sure it's possible but i have no idea how.
Could anyone tell me how to make a custom semantic for a pixel shader.
Thanks
|
I'm developing a game and i've ran into some questions about saving and resuming the game. Let's say i have 10 animated sprites drawn every frame (which move side to side) and everytime i press the home button or back button and then go back to my game, it starts drawing the sprites at the starting position rather than... |
I found a good description of the engine in the Sonic games. It describes roughly how the engine works for people writing their own clones. In my case, I am simply interested in getting a general view of how the many 8-bit and 16-bit game engines worked on their respective consoles.
What other online descriptions exis... |
I was reading what a service locator pattern is from this article, and now I'm just wondering if I merge service and locator classes is it still a service locator pattern or not? And if not, do you think this implementation is usable enough as single or service locator pattern? (since the example was an audio manager I... |
I notice that for several games on Kongregate, the copyright notice either uses the author's handle name (login name), the name of the group that produce it or a domain name.
Are all those valid copyright notices?
|
Is there any way that I can make rounded corners on a rectangle rendered in XNA through primitives (line-strips)? I want to make my UI a bit more fancy than it is already, and I would like the code to be flexible, without too many textures involved.
|
I'm looking to create a fairly large environment, and as such would like to implement a quadtree and use LOD on it. I've looked through numerous examples and I get the basic idea of a quadtree. Start with a root node with 4 vertices covering the whole map and divide into 4 children nodes until I meet some criteria (max... |
I taking my first steps with XNA. I'm building the old 2D tutorial that used to be posted on the XNA website. I got to the part where I display the cannon, but its not showing. Can someone please take a look and say what is wrong. The background texture is displaying fine.
Main class:
using System;
using System.Collect... |
I want to render a depth map by importing it from a file, then creating an array of vertices and indices, and then displaying it using a basic shader (just apply the view and projection matrices on it and then display). I'm aware of GPU-based solutions, however, I want to perform additional calculations using the CPU o... |
I was considering building a character creator/customizer program that would enable a player to create their own 3d model based off of a series of preset body parts. i.e. A player could choose to add the legs of a horse, the body of a man, wings of a falcon and the head of a snake. From there the player can then custom... |
How can I have the player jump higher if the jump key is held down longer? I am currently just reducing gravity as long as the key is held and the player is jumping, but this looks odd.
|
Just now I found MobiForms. I am planning to create a game for the iPhone using it.
My problem is I know only Objective-C and I have designed only one app (which is also a game) that's currently in the AppStore.
Can I use MobiForms for game development?
|
Possible Duplicate:
Tools to make a trailer…
I've developed some 3d experiences using unity3d and they are pretty much experimental at this level. Now the problem is that I need to make video captures in HD to showcase them.
I've tried Camtasia 7 with divx compression, and still the quality is not Up to standard an... |
Hey so i've been looking into real time physics engines, which led me to the crazyLaggoa multiphysics engine by thiaga costa, and brought up the question of:
What are some possible ways, ideas that have or have not already been done to make a real time physics engine? How about non-real time?
I know the Lagoa engine us... |
How can I make a black shadow/glow around my drawn rectangle made of primitives? Drop-shadowing is easy, but it's not exactly what I am looking for.
|
What design pattern is best for implementing trophies in a game? I am not a games developer, but is it easy for each player's action to check and update conditions that satisfy 50-100 trophies at any time aside from everything that goes on in the game engine? How is it best done?
|
I'm often tempted to break the game I'm working on to try a parallel-tasks based architecture, but that don't seem a big requirement for my project so I avoid this for the moment. I'm planning to just try it in a toy project first, to "play with the concept."
Now, what I'm asking is, as lot of (non AAA) games do not re... |
For a section of my game, instead of having a perspective projection, i would like to display an isometric view of an object.
So i don't want things to appear smaller if in a distance, etc.
Basically a proper isometric image.
Is there any way to do this in XNA?
|
I'd like to pay an artist to create art assets for my game. Is it common for the client (myself in this case) to exclusively own all the artwork that I pay the artist to create and deliver? How can I make sure of this?
|
I'm developing a android game and I have a question about storing the game elements without firing garbage collector.
My game needs a collection where the game elements are stored according to x,y positions (all game elements have x,y,width and height). The collection is then called every frame to retrieve the element... |
I've been googling this around and yet nothing showed up but some articles from middle ages which were talking about Gforce mx and ... . My question is just this: what are the different memories in a high-end graphics card and what is their size and usage?
|
I often develop 2D games. I would like to know if there's a program like EvalDraw out there, that makes it easy to quickly make (for example) a square, out of a black quad, and then write some shader code, and see how that shader code modifies the square in realtime.
That would be really great for my future development... |
I'm making a top-down space shooter where the player controls a ship and can aim and shoot using the mouse cursor. How can I fire bullets from the ship at the angle from the ship to the mouse cursor?
|
I was going to draw my shadow map into one channel of a 16 bit texture and then draw a different shadow map into another channel of the same texture.
I realized that this might not be possible to do efficiently since my targetted hardware (Xbox) does not support blending R16G16 formats. (Although the HDRBlendable might... |
I have a pretty decent experience with tile based 2d games and I would like to try to create a mixed 3d-2d game. To 3d elements will be very simple (ground, walls and water), all other elements will be 2d sprites drawn onto this 3d map. (I am envisioning something similar to Final Fantasy III for iPad, top down view, a... |
I am trying to load premade .xnb files with the content pipeline.
when I call contentManager.Load<model>("grass");, for which I have a "grass.xnb" file in the corresponding directory, it crashes with: "Error loading "grass_0". File not found."
The grass.xnb file was created using a MSBuild wrapper to build the .fbx fil... |
In my cocos2d iphone project I have one major layer, the game layer. When the user presses the pause button the scene is paused and another scene is pushed onto it, the pause scene.
[[CCDirector sharedDirector] pushScene:[PauseLayer node]];
I realize the pause scene as a CCLayerColor. I want the layer to be transpare... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.