instruction stringlengths 33 29.4k |
|---|
I know yall are probably going to hate me.....but I can't figure out what im doing wrong, im trying to make a SIMPLE Vertex Grid (for Terrain) but I get a black screen for some reason And I can't figure out why. It does run, but I just get a black screen afterwards....I hate posting such huge code on this site but I fi... |
I have a Flash game running on a Google Sites web page right now. My main goal is to eventually convert it to an Android app. For testing and for my friends to play though, I want to store high scores on the Google Sites version.
Right now I am using SharedObjects but that is only local. What is the best way to store h... |
I've messed around with iPhone development for a couple years now. I've done some contract work. I want to get into Cocos2D to develop a game idea that I have.
I was wondering what might be the best/quickest way to get up in running in cocos2d?
I've thought about a book, but I wondering if that is needed? I'm the typ... |
This question got closed on gaming SE as off topic. I hope it's on topic here.
Many years ago, a friend and I prototyped a simple 2d rpg with what we thought was a unique idea for the combat mechanics. It used wandering monsters and a cutaway battle screen system. We added a bunch of effects like "conditions" that coul... |
I have a bounding box on my character, its position in the previous frame an the current frame. The bounding box is axis aligned.
My character is running around inside a cave, I have a list of points (lines) that represents the wall of the cave (not axis aligned)
I've got a coarse grained algorithm that tells me when ... |
I'm going to be away for a little bit, bringing my netbook with me to do some basic DirectX10 stuff.
How can I run DX10 on DX9.0c hardware?
|
Terribly sorry if this is in the wrong StackExchange site, but it looked closest to my question.
I have an idea or two floating around in my programmer's brain for mobile apps on Android or iOS. Thing is, I can't spend months programming it after my day job just to see someone else go to market first. In the same vein,... |
I am using Actionscript 3.0 to make games and I fall into the category of programmers who use ball.x+=5;
ball.y+=5;
in order to move a ball by 5 pixels horizontally and vertically.
Well, now i seem to have an issue with a game I am making, it has a 3-body vehicle and each has its own translation and rotation. The three... |
I'm writing a shooter (like 1942, classic 2D graphics) and I'd like to use a component based approch. So far I thought about the following design:
Each game element (airship, projectile, powerup, enemy) is an Entity
Each Entity is a set of components which can added or removed at run-time. Examples are Position, Sprit... |
I have a two objects colliding with each other. I am testing for the collision with if(ob1.hitTestObject(ob2)){//do something }. Is there a way to determine which side of the object was hit, i.e. if ob2 is a square, which side of the square was collided with?
|
Tetris-Tiles are stored as a 4x4 boolean matrix. Each rotation step has it's own matrix, the representation of the T-Block would look like this:
[
0, 0, 0, 0,
0, 1, 1, 1,
0, 0, 1, 0,
0, 0, 0, 0
],
[
0, 0, 1, 0,
0, 0, 1, 1,
0, 0, 1, 0,
0, 0, 0, 0
],
[
0, 0, 1, 0,
0, 1, 1, 1,
0... |
I have quite large 2D game scene. The scene is much larger than the screen of the LCD. Therefore, I have to move the camera (view) in desired directions, to display particular parts of the scene.
What is the correct way of moving viewport over the scene, in Orthogonal (2D) projection, please?
There are two solutions co... |
I've recently been experimenting with a simple Voxel-based 3d engine (think Minecraft) which uses heightmaps to define terrain in the following format:
http://en.wikipedia.org/wiki/Heightmap
Does anyone know of the best software for producing these kind of maps? Preferably with the ability to define a texturemap also. ... |
I'm reading a paper on terrain rendering LOD and there's some math notation there I'm not clear on.
When talking about how triangles are split into pairs of smaller triangles where more detail is needed on the mesh they have an equation along the lines of
large triangle = left triangle ⊕ right triangle
From the context... |
I want to create a big multiplayer world in UDK and I'm having a few difficulties.
I created the biggest terrain possible but then any terrain related action I do takes forever. However, I've seen videos of people make same size terrain and working without a problem. My pc is strong enough, so maybe someone can tell m... |
I'm making a JavaScript game engine for fun and one thing I noticed was that my laptop runs super hot with the simplest game mechanics and that my game is doing about 600 updates per second.
The graphics is already capped at 60 fps, but I'm wondering if I should limit the update cycles so my processor doesn't get owned... |
I export my 3D geometry from a 3D authoring application. It is possible to export the vertex coordinates as full triangle arrays.
On ther other hand, triangle strips are more efficient for the OpengGL to render. This is especially true for OpenGL ES, which is very sensitive for performance.
Is it therefore possible to ... |
The best book on the nitty gritty of graphics that I've found is Computer Graphics: Principles and Practice http://www.amazon.com/Computer-Graphics-Principles-James-Foley/dp/0201121107
However, as this was written in the early 90s, it is a little out of date.
Are there some similar books which go over the more recent d... |
Could I kindly ask, to suggest me a repository of high quality OpenGL (OpenGL ES 2.0) vertex and fragment shaders, please?
I am looking for pixel based ligting shaders (such as phong) and simmilar. It would be nice to see more of them, to be able to choose between quality vs shader performance.
|
Could I kindly ask to confirm, that the calculated normals are correct, please? I have calculated them on my own, but my testcube is still strangely lighted within OpenGLES 2.0.
The vertices were exported from 3D authoring application.
The vertex normals were calculated using matrix cross product.
The vertex and fra... |
I am making an iphone opengl es 1.0 game. I am using a fixed timestep with interpolation on the end. One thread only. I am using CADisplayLink to fire the game loop.
First question: is it okay to use CADisplayLink to fire the game loop? i am targeting > 3.1 so that's not an issue.
Real question: What's the proper way t... |
Say I'm having a multiplayer RTS game. There's a main server for each individual game and several clients connected to it. All packets are sent to server first and then server retransmits them back to specified clients.
I'm thinking of 2 ways:
List of Client-Server pings, which will be the same, no matter which Client... |
As the web browsers evolve, HTML5 game development with JavaScript, Canvas, webgl is increasingly becoming popular. The advantage of web-based games compared to native apps is that they run on multiple platforms, and you don't have to fiddle with OS-specific libraries or programming environments.
You can already sell y... |
Say I'm having a multiplayer RTS game. There's a main server for each individual game and several clients connected to it. All packets are sent to server first and then server retransmits them back to clients.
Say Server is located in one time-zone and all of the clients are in different time-zones.
ClientA send a tex... |
I've already programmed a 2d based collision system for a previous game. It was my first collision system and it was ugly. I was looking for collision between objects by checking all objects with all objects. I've already heard about a grid system with cells where an object will only look the collision with other objec... |
I woud like to move an object along a curve. At particular points on the curve, I wish the object to change speed and rotate itself along its axis.
Imagine an airplane flying to a destination. It has its path it must follow, plus, it adjusts its speed and orientation all the way (heading, pith, bank).
Could I kindly as... |
I develop a game for a mobile platform. I would like to implement a movie figure/creature/character/vehicle into the game.
I wish to ask about Copyrights:
Is it acceptable, if I implement famous movie-like creatures (ex: Alien, Predator, Star Ship vehicle) into my game? Occasionally, I see games based on movies: "Star ... |
I'm considering creating a position in an online RPG where the responsibilities would mainly involve conceiving roleplaying-oriented events and plotlines and executing on them using developer tools such as the ability to create instances of NPCs/items and the ability to control NPCs. Examples of events/plotlines might... |
Hi
i need to make simple education games in 3d for that i need GUI and editor like function
this is no problem . but the openGL stuff i need to learn by example.
do you know places where i see example of simple 3d games made with Qt ?
Thanks
|
In my basic Cocos2D + Box2D iPhone app I have a bunch of circular Box2D bodies. I'd like to change the color of the circles programatically. What's the easiest way to do this?
So far I'm just assigning a CCSprite* to the b2body->userData. So perhaps I can change the colors in my sprite sheet programmatically? Seems... |
We are looking for a good 3D sound engine for a game written in C#.
We know of irrKlang, which looks great but isn't free for commercial uses, nor is it open source.
XNA has an alright one, but it binds us to DirectX and therefore, windows.
Are there any other good free ones out there?
|
I am developing 2d game, where maps are tile based, small about 20x20 tiles and player can travel between a lot of maps (in my game rooms) like this. The maps are connected sometimes verticaly and sometimes horizontaly and together they make one big cave.
Should I create a class where one 2d array holds all the maps (a... |
I am making an iphone shmup and am trying to decide what type of game loop to use. I want to use either semi-fixed timestep or fully-fixed timestep.
With semi-fixed timestep I will make zero or more update(FIXED_INTERVAL) calls followed by one update(dt) call where dt <= FIXED_INTERVAL per game loop. As I understand it... |
I'd like to try my hand at making games. In making some simple ones, I realised I can't do art!
I've tried to find others to help: Most existing teams wouldn't want me because of my limited experience (I'm in high school) and I've been unable to find an available local artist with an appropriate skillset.
How do you gu... |
So I'm thinking about making a small rpg, mainly to test out different design patterns I've been learning about. But the one question that I'm not too sure on how to approach is how to store an array of character moves in the best way possible.
So let's say I have arrays of different sprites.
This is how I'm thinking a... |
Title pretty much says it all. I'm working on a simple 'lets get used to lwjgl' project involving manipulation of a rubik's cube, and I can't figure out how to tell which side/square the user's pointing at.
|
I've been looking for a formula to plot (world->screen) and mouse pick (world->screen) isometric tiles in a diamond-shaped world.
The ones I've tried always seem to be, well, off.
What's the usual/correct way to do this?
|
I'm trying to figure out if I should refurbish and refactor a game I and some friends have made. It's released on kongregate and wasn't a super hit but I feel there's a lot of interesting techniques and solutions going on that new or intermediate developers would like to see. The only thing that's holding me back is th... |
For a solar system simulation project I'm looking for a good (semi-accurate) set of textures to texture the skybox.
I've already found these http://paulbourke.net/miscellaneous/starfield/ and we implemented a quick skysphere instead of a skybox. But after testing we found out that the 2048x1024 resolution image was too... |
I have a sprite sheet loaded as an OpenGL texture, and I'd like to draw a portion of that texture sequentially for animation. Is there an actual OpenGL command to draw part of a texture? I can get it done by modifying the U and V components when drawing the texture, but I'm not sure if there's a more elegant/correct me... |
I am using Direct3D with the D3DXSPRITE wrapper to draw the tiles to the screen. I have a tile class which contains members such as collision and tile type, then i have an array of tiles e.g.
Tile grid[256][256];
Which would be a better method?
-Draw the player in the center of the screen and offset where the map draws... |
I've been through a year of programming and have the tools to create a cool, simple 3d game using Java.
The biggest problem I have is ideas. When you have no idea how programming works, you want to create extravagant games and then you realize it doesn't work that way.
I just need a simple game to create. I don't have... |
I'm currently a student game programmer working on an indie project. We have a team of eleven people (five programmers, four artists, and two audio designers) aboard, all working hard to help design this game. We've been meeting for months now and so far we have a pretty buffed out Game Design Document as well as much ... |
I was working on J2ME games in the past, when draw a large backgroud, I always use the Carmack 2d scroll algorithm, keep a image buffer a little larger than device screen, draw the changed small tiles to this buffer, then draw the buffer to device screen. This can reduce the number of times to call drawImage().
Now we ... |
Doom classic source code for iOS was released by id software, but there is no working link on their web site where I could get it from.
Do you know an alternative source to download the Doom Game for iOS?
|
I want to start developing a browser game. Not for success, just for the sake of doing it and learning something from it.
Now, a point where I have serious problems figuring out how to deal with it is; how does one player receive message of another player does something that is somehow time-critical.
Easy example for a... |
We made a flash game with a big screen size(1000x600), and the terrain graphic will jitter while the screen scrolling(that's, camera moving with player) continuously.
What's the root cause? Or if you know how to eliminate this problem, please tell me. Any help is appreciated.
UPDATE:
The map's size is more bigger than... |
This is an odd one. When I press home and then restart my game I reload all my textures (checking glIsTexture on the id's first). If I do this once, all textures load as expected, but if I do it twice or more one of my textures doesn't load (the texture is white).
I have checked glGetError and there are no errors (as... |
what are the steps to perform downsampling on a texture ?
I've got as far as rendering the scene to a render target, but I'm not sure as to how to then render that to a smaller texture in order to blur it.
I can't seem to find in good explanation or tutorial about this technique.
|
I am creating an application which downloads names from server. These names can be any unicode language text which I need to render in XNA on WP7. The biggest problem I see here is WP7 xna system can't render unicode (especially complex script) well. I tried few asian scripts and it looks ridiculous. Some aisan script... |
I'm working on a tile-based Mario clone.
This works all fine when walking and falling. But when the player jumps near a wall and walks to the right in the air, then the player get stuck on the wall. The player sprite falls again when the player releases the key.
The setup is pretty easy and i can't find the problem. T... |
I was given a model by an artist and it was boned and skinned for me. The .max file that he provided also included an animation to show what he would be able to do. (A basic running animation.)
However, this was the last I heard from him and I want to construct my own animation. I was wondering if there was any quick a... |
Lets say you have a high scoring game like geometry wars, why type would you use for the score and how should you handle overflow?
|
It can be non-open-source but must be free.
I've heard panda3d is good, what do you guys think?
|
I have an arbitrary line segment, which may or may not be axis aligned along with its normal
eg: Segment(Coord(-1,-1), Coord(1,1), Coord(-1, 1).normalize) which represents a line segment with a 45 degree angle.
My desire is to transform that line to Segment(a:Coord, b:Coord, Coord(0,1))
I have a beginners understandin... |
I am working on a game and would like to add motion blur to videos that I export from the engine. Right now, I play back gameplay at 1/16th the original speed, giving me 16x more frames (e.g. instead of 60 frames per second, it's 960 frames per second) and averaging the frames. I am curious though, is this the proper w... |
And here I am again, looking for help with my OpenGL camera once again. This is starting to get embarrassing. Anyway, here's the deal: I think my OpenGL First Person free roaming camera is starting to work correctly. I can draw objects, see them, and my coordinate system is set up as expected. Great. I solved the ... |
I am making a android game, it's a tower/base defense like type of game (yea I know it is kind of confusing), I was wondering if anyone knows a good way to have the attacking sprites randomly generate without the number of sprites being higher than the level. I want the attack sprites to equal the level. I have 2 sprit... |
I have a project to make a real-time strategy game from scratch. I am still at the early planning stage, but I have been programming a little to see the mechanics.
I know how to program. I also have a good idea of how I will structure the game classes and the Rule-Based (state-machine) AI for the computer player.
I wan... |
I'm testing Unity for a game that I'm building, and I've touched its limit.
My test scenario: a wanna-be house with 200 elements (cubes rescaled) no textures, box colliders and rigid bodies for each "cube" and fixed joints to hold them together (400+ fixed joints). The house is on a plane, and above it I put 2 sphere a... |
I am creating a simple map engine that will automatically expand in any direction with procedurally-generated content as needed.
What is a good way to store map data, anchored at a 0,0 origin so that a rectangular subset of map data can be loaded quickly and efficiently from any point on the map?
I have an idea that ma... |
We are trying to make a small 2d game which requires an excessive amount of sprites spawning and moving around the screen at the same time. We did try doing this in python but it started choking at around the 500 mark. Are there any good ways to handle this in python?
|
I'm building a top down shooter but I have a little issue with my camera and mouse.
When I add the camera that I use to my game (see here) my mouse pointer seems to be in the wrong location.
When I call my Mouse.GetState().X or Y the location seems to be about 300 pixels off.
I've looked all over the net but I just can... |
This question has come mainly out of sheer desperation, after spending several hours trying to figure out the problem.
If you cast your eyes to the picture above, you should see that my midpoint displacement algorithm algorithm is working (somewhat) successfully; in producing a somewhat coherent noise pattern.
However... |
Was Chrome AngryBirds game made using html5 canvas? And if yes: what kind of engine did they use?
|
I'm writing a simple MMO, and currently have the the server-client architecture in place for multiple users to see each other and be able to move around together...now its time to add enemies.
Was wondering if anyone had links to articles that discussed how to best handle the hundreds of NPC objects that need to be ma... |
Or do you have to provide your own? How essential are tablets for game development?
|
I am writing an app for Android, using OpenGL ES 1.x
I am confused as to whether I should use GL_FLOAT or GL_FIXED, the priority being performance regarding GPU operations(does GL_FIXED need to be converted etc. ex: GL_FIXED fits EXACTLY with the precision I need but if it is converted to a float then using it is point... |
I'm doing some research and I really don't want a physics engine when a simple mechanism will do. I have a ball that will be balanced on a plane. The ball will always be "stuck" to the plane and never roll off of it. The player/user will be moving this plane vertically up and down, changing its angle (rotating it so... |
I've been trying to figure out how to do this but I have a bunch of screens, each with their own Draw method. However, I'd like to render all sprites offset by the screen position without altering their locations before I do the drawing.
So, if I render a sprite on a screen at 0,0 but the screen itself is offset to 50,... |
What is the difference between the notions of "bonus" and "power-up?"
I have in-game some objects and the player has the ability to pick up some bonuses/power-ups that allow the player to create an explosion all around. There's also an item that lets the player teleport from one place to another -- are these all power-... |
Say I have desktop game and I like to make it social, for that I need browser component
embedded into my game ( c++ openGL) for the Authentication part. Is there any framework
for that?
|
Does anyone here have experience in implementing in game payments , does such thing is possible ?
Where should I look in to?
|
I've been a software developer for 5 years, now, and I am wanting to get into iOS game development. I've played around with the iOS SDK for about 2 years, attending cocoaheads meetings, and I feel I have a good grasp on objective-c, cocoa and even c and c++.
I have a game idea, and know that I will use Box2D, but I'm w... |
I'm at the planning stages for a facebook game, it will be similar to farmville, but will feature parks. I've been a Flash game dev for many years but all this database stuff is new to me so I'm having trouble getting my head around what's the best way to handle the data.
I know I need a table for the players, so that'... |
What sort of design patterns and ideas might one use to build a somewhat general purpose card game framework?
This stems from I made an attempt to build a clone of the popular Steve Jackson game "Munchkin". Because of the nature of that game I ended having to hard code so many card functionalities that the developmen... |
I'm currently developing a 2D, top-down Windows Phone 7 game involving the surface of a pond. I'm trying to make the surface feel like actual water (as opposed to just a blue background with sprites drawn on top of it), and one of the effects I'm looking into is a sort of aquatic distortion effect. Basically, somethi... |
I'm working on a 2D iPhone game using Corona (Trial version, so I can't use their forums). The game involves the character falling through the sky, and I'm trying to implement a "double jump" for the character, for him to be able jump up while falling. I'm using Corona's physics library to have the character fall, and ... |
Currently i'm working on a sprite system which will have frames which make animations.
Usually a sprite contains current position, current frame number to be displayed in the running animation, etc... This is what I mean is STATE.
Let's say there are 100 NPC characters in a game which will have different animations run... |
Is GML (Game Maker Language) script is clipped in C/C++ language, and GML wrote the code to Visual Studio C++, it will always be correct, because it is just under C++ language features?
I think that a bit wrong to have written that question could be to ask yet another generation of weeks. But if correct, is not need t... |
My engine uses a component-based entity system internally, and I want to bind it to Lua for scripting.
Now, I want to save people who write scripts for it typing work. In C++, to set the position of an entity, you'd do the following:
pEntity->GetComponent< CPoint >()->SetPos( Vector( X, Y ) );
That means, if I'd bind ... |
Is there a C++ programming language knowledge to check the little tool where the introduction of C++ code would be nice to get something on the screen, similar to the "Processing" http://www.processing.org only with C++ language? I know the "Cinder" http://libcinder.org, but perhaps there should be a lot of code to wri... |
I have a lot of complex objects in a scene and im looking for an efficient way to find which object a fired bullet hits and to find the hit coordinates.
It would be best if there was a lightweight library to do this.
it seems that PhysX can do this, but i didnt find a way except to give every face in every mesh a physX... |
I'm getting this error "The application bundle does not contain a valid identifier" after my application successfully compiles.This error prevents my game from launching on the phone or the simulator. I have no idea how to fix this as I was following this tutorial How To Make A Space Shooter iPhone Game using Cocos2d.
|
I was wondering around, searching internet about particle system and fire effects but I haven't found any good answers. On some games I have realized that some sort of movie is being shown as the fire, which is pretty good but not for the fires which are close to the viewer. Please let me know how to make realistic fir... |
I have a lot of complex objects in a scene and I'm looking for an efficient way to find which object a fired bullet hits, and to find the hit coordinates.
It would be best if there was a lightweight library to do this.
It seems that PhysX can do this, but I didn't find a way except to give every face in every mesh a Ph... |
I'm trying to understand what HDR is and how it works.
I understand the basic concepts and have an slight idea of how it is implemented with D3D/hlsl.
However it's still pretty foggy.
Say I'm rendering a sphere with a texture of the earth and a small point list of vertices to act as stars, how would I render this in HD... |
I've been interested in the component based entity system for a while, and read countless articles on it (The Insomiac games, the pretty standard Evolve Your Hierarchy, the T-Machine, Chronoclast ... just to name a few).
They all seem to have a structure on the outside of something like:
Entity e = Entity.Create();
e.A... |
I'm developing a card game. My custom control works great, but I need help to solve this:
When I move a card (my custom control) over another card I need to know which card is underneath. Once I know that, I'll be able to put in logic for game rules.
EDIT
I'd like to have some event in cardcontrol like: OnOtherCardCont... |
I have an array of sprites that are displayed in-order to make an animation. There is code in an update loop that has access to a value 'time' indicating how far along the animation is. Time is a float between 0 and 1 inclusive. It uses this value to calculate which frame to display.
update(time) {
frames // An array... |
I want to pick up a language that will allow me to create 2d/3d game environments. I come from web development using PHP, JS, XML and ideally I want to be able to integrate with those languages. I want to deploy to the web and to PC / Mac.
I'm considering Java, Actionscript 3, or some variant of C.
I'm pretty good at p... |
I'm creating a side scroller and I'm have a problem with my collision detection.
The collision detection works perfect when the player is falling at a constant speed, but when I implement more realistic gravity the player falls too fast - resulting in that the collision will be checked with the tiles under the floor/pl... |
I am writing a game in XNA 4 and I want to have something like a corridor. Do you think that is better to use one big and solid model, or to use multiple small parts (window, stairs, door...)?
|
I'm trying to add a new element to the HUD, it's supposed to be a compass that should function like a minimap.
I've added this code to the main hud.swf:
var DcompassContainer:MovieClip = this.createEmptyMovieClip("DcompassContainer", this.getNextHighestDepth());
DcompassContainer._x = 280;
DcompassContainer._y = 8;
Dco... |
Ok so this is mind boggling to me. Every time I've used something similiar before it works. I added messages to be displayed before everything happened to see where it would, and it never got past the wait.
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Berserking Pow... |
You see, especially in FPS games, when a bullet hits a wall or a character, etc. You end up with the bullet hole.
Is this usually done with the actual skin temporarily changing, or just an overlay of another image (or something totally different)?
Could anyone give me pointers on how to go about this? I'm using XNA (C#... |
I'm new to game physics and I am trying to adapt a simple 2D ball simulation for a 3D simulation with the Java3D library. I have this problem:
Two things:
1) I noted down the values generated by the engine: X/Y are too high and minX/minY/maxY/maxX values are causing trouble.
Sometimes the balls are drawing but not mov... |
Since I have started finding a good third party libraries for game development on android platform, Im getting confused. So want to know from the people who are already using some of the game libraries themselves (no googled resources please).
So my question is : What are some of best Android Game libraries(2D/3D)?
N... |
A shader normally has values that vary per-vertex and values that vary per-fragment.
Can you have values that vary only per primitive, such as per-triangle or per-quad?
|
Lets say you make a game engine, and you have several GameObjects and every GameObject have a list of components that you can add or remove.
Lets say there is a MeshComponent who has vertices, normals etc. If several GameObjects have the same MeshComponent, there will be a lot of memory waste. Of course there are many ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.