instruction stringlengths 33 29.4k |
|---|
I'm using Farseer physics engine.
I have a simple rectangle body and would like it to split into two pieces given a starting coordinate (where the bullet enters the object) and ending coordinate (where it exits).
|
Games like Ryzom and the Sims allow players to have human bodies with different shapes: wide or thin, tall or short, big noses or small, etc. It seems to me that it'd be impractical to pre-generate all possible combinations of the meshes.
What are some ways to do that? Are the meshes defined programmatically? Is it a... |
This is probably a simple vector question, but I'm not sure how to do it.
I have an object at vector position (ox,oy). Potentially every update, the user walks around the screen, and will be at position (px,py) at any given moment. How do I make it so that the object is always facing the player? I need to get the angl... |
I'm making an economic kind of game, and one of the things I'm simulating is the transportation of resources to a central depository, e.g. moving metal from a mine to the city (so it can be turned into swords). I want it to behave so that a producer farther away from the city is considerably less efficient, but the pla... |
I am a beginner-intermediate C++/Java programmer and my long term goal is to be a game programmer.
I have decided to start off with 2D and work my way towards 3D.
I would like to use SDL to start off with, but I am wondering if it is maybe not such a great idea.
Given the fact that I am working towards 3D, would it be... |
I can't find the tutorials of joints class in the Box2D for iPhone. I am unable to run a Testbed for iPhone Box2D.
(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
if (_mouseJoint!=NULL)return;
UITouch *mytouch=[touches anyObject];
CGPoint location=[mytouch locationInView:[mytouch... |
I'm trying to write a short "game" where a player goes around and fights monsters but I have no idea how to handle the combat.
For example, say I have a "Warrior" and a "Troll". How do the two fight each other? I know I can do something like
Conan = Warrior.new();
CaveTroll = Troll.new();
Conan.attack(CaveTroll);
CaveT... |
After watching (and playing) HaxBall, I can imagine that RTMFP (or any other real time multiplayer flash based technology) games will be the new big thing, replacing social games (cafeworld, etc).
What do you think about it? Is now the right moment to dedicate some time to learn how this technology works and how can it... |
I would like to get the shapes of my bodies, but I can't get anything, only null. Why?
Here is the relevant code section:
Body b;
while((b = box2d.physics.PhysicsWorld.world.getBodyList().getNext()) !=null) {
Shape shape;
while((shape = b.getShapeList().getNext()) != null) {
Log.e("name",""+b.getUserData().toS... |
I wish to know if there is a way to load a texture which is not in powers of 2, for example 100 X 56 in dimension, in XNA 4.0 and draw it using VertexPositionColorTexture.
|
I'm currently making a game on the Android platform. I don't know whether to do a "smartphone edition" and a "tablet edition" or simply to do one edition.
If I put high definition textures, the users of smartphones will have to download a heavy package, and thus will have very less space available as if it was "normal ... |
I'm a hobbyist and I've just finished implementing the "game" part of a game I'm developing, and I feel as if it finally matured enough to be worth adding a menu to start a new game, exit, edit options, etc., and so I tried to find sources online with tips for creating menus in XNA (first time creating a game in XNA).
... |
I've got a game object i need to rotate. It's current angle is player.rotation, the destination is targetAngle, both in degress, 0 to 359. I've got a function named rotateDirection(float sourceAngle, float destAngle) that needs to return -1 or 1 depending on whether the shortest way to reach the destination angle would... |
When I load a texture using the code below:
WWW www = new WWW(textureName);
yield return www;
renderer.material = new Material(Shader.Find("Diffuse"));
Texture tex = www.texture;
tex.filterMode = FilterMode.Trilinear;
renderer.material.mainTexture =tex;
The texture does not come with mipmaps, how can I tell u... |
Is there a way to do it? I can get only polygon_shape's vertices, but i want circle, box, etc too.
How to do it?
|
I've been seeing lots of simple interactive programs popping up all over the internet that generate basic music, usually quite nice sounding, from simple interactions from the user. Otomata is one recent popular example; on the iDevices there are a variety of programs, like Bloom.
I'm just wondering how these programs ... |
I have a code, that add a vertex array to a shape, my code is:
PolygonDef shape = new PolygonDef();
for (int i=0; i<vertices.size(); i++) {
Vec2 v = vertices.get(i);
shape.addVertex(new Vec2(v.x/RATIO,v.y/RATIO));
}
But its very strange because not working good on any of my polygon creator tool.
So w... |
How can I "glue" more objects to each other so I get one object? (It is for resizing models), couldn't find anything about it on the internet, but I'm dutch, so maybe that's why. Thank you very much!
|
In our game, we set the acceleration due to gravity to the appropriate value of 9.8 m/s^2. Although physically correct, it feels more like moving around on the moon.. It feels about right at a value of 16 m/s^2. Has anyone else experienced this? Is it only because we don't have motion blur, or sound to give the apparen... |
I'm beginning Bullet3D. Can I change collision shape of a rigid body after it created? A rigid body accepts a collision shape when it's creating, but it's hard to find options changes the collision shape of an instance.
|
I have strange problem with drawing skybox texture on Mac. On iPhone everything is going fine. I have tried to change near and far planes value with no success.
It is a skybox of six textures, and for every texture I set this:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE... |
When my application goes into a fullscreen state my movement is not smooth. It seems like frames are not rendered in the correct order, doing something like: 1, 3, 2, 4, 6, 5, ...
making the movement flicker.
For my PIX test, I draw really a low number of primitives (1140 triangle exactly) inside six vertex / index buf... |
I'm creating a small text RPG as a way to practice python and I'm running into a question about how to load data. The game is a wild west game, though that isn't too relevant, and I need to store lists of weapons and their properties, as well as lists of characters, scenarios, etc. I've got a good idea of how to repr... |
Possible Duplicate:
Is it legally possible to make a clone of the game?
I was planning on producing a game but then I had to stall. I have an idea to make a game, but its very similar to a game already out there. If I made my own graphics, audio and use my own code, would I be allowed to sell it?
|
Ok ok I admit, I'm bored and toying with a portal script like the one on steam.
I've figured out the following:
relative positioning of the mirrored cameras
render to texture for the portal (the texture is the view from the opposite camera)
poly culling (since the camera is behind the other portal, I cull all polys b... |
I am an normal programmer with about 3 years of experience, who is interested in getting into game development. The problem that I face is that when I look at these "beginner" books, most of them teach basic programming skills, and I don't have the patience to sit through it or find them worthwhile. But, when I look at... |
So assume you have an input system that is based on polling
void update()
{
if( Keyboard[ 'A' ] )
// A is down
}
Say you want to be able to recognize 3 to 8 length key combinations (like down, down-forward, forward, A for hado-ken)
How would you best create a generic (easily modifiable/programmable) key co... |
Can anybody suggest a good game development and animation tutorial for iphone
|
Possible Duplicate:
Physics engine recommendation which can simulate pool game correctly?
I made a Billiards scene with Bullet Physics, but I've got a problem. When the ball is slowing down near a wall, it sticks to that wall and slides along it. It normally bounces, but at those low speeds it sticks instead of boun... |
How can I enable Continuous Collision Detection (CCD) in Bullet Physics?
|
Examples of what i'm going to need:
I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS cone.
How would i test if the player is within that cone, taking obstacles into account?
How would i draw the line of sight area on the map tiles, again taking obstacles into account, like in the ex... |
I've recently starting with Direct X;
I've been using Rasertek's tutorials, and Frank Luna's book. One thing thats just out of this world to me is how much effort it is to initialize DX11: the swap chain and everything.
So...maybe to give myself a little bit of peace, is it mostly always going to be the same? I mean in... |
I've been looking at creating some 2D rendering systems in D3D9, basically because I don't like ID3DXSprite. For the output of the vertex shader, what co-ordinate system does the run-time expect vertex co-ordinates in, like homogenous device co-ordinates? And secondly, does the depth of the resulting vertices have any ... |
In my research for a stuttering problem in my game engine, I think, I have found the problem, but don't have any idea why this is happening, that's why I ask you if you have an idea !
The situation :
DirectX10 under win7 simple engine. If running fullscreen (and only in fullscreen), with Vsync On and the rendering loop... |
Why does Minecraft use polygons to draw the world terrain instead of voxels? Would a voxel based rendering engine be appropriate for a fully destructible game world built out of cubes like Minecraft? Would it be more efficient than using polygons?
|
I have a walking NPC that will "see" the wall in front or behind him (2d gameplay) and that will react accordingly.
I was thinking to attach him to an invisible collider that would react to objects at collision, but I did not manage to do so, a collider seems to always go with a visible mesh.
How should I implement it,... |
I managed to make a simple loop to move my character, onmousedown I move the character diagonally to where the user clicked. It's working but my problem is that I don't know how to prevent more loops to start over the first if the user clicks more than once.
Right now if you click more than once the character moves fa... |
I'm a beginner to Corona and game development. I am using a variety of objects in my game. On collision, they all perform the same function. I want them to do different things, and also want some objects to only collide with certain other objects. How would I go about doing this?
|
I am interested in moving into game development once my current project is done, as it's nearly at a point where it will pay my bills and allow me to hire someone else to take the driver's seat, meaning that, for the first time in my working life, I'll be in a position to devote a proper amount of energy to getting int... |
I'm in the pre-planning phase of coming up with a game design and I was wondering if there was a sensible way to stop people from editing saves in a game with offline and online components.
The offline component would allow the player to play through the game and the online component would allow them to play against ot... |
I must write a cross-platform real-time-strategy game within 2-3 months. I want use C++ and OpenGL and am looking for an engine.
The engine must be open source and work under both Linux and Windows. Preferably it should work with 3ds Max models. I do not know the game engines. Which engine would you recommend?
|
I'm making a pool-game like game. This game requires correct (or very accurate) reflective bounces.
I tried Box2D and Bullet Physics, but they both have this problem.
If there is a wall on top of this image, red line is expected course of a real ball in a pool-game. But the engines often shows green line course. Espec... |
I'm just getting into coding up some 3d rendering apps and I'm considering taking the jump into interactivity. While developing I've learned about Euler angles, gimbal lock, quaternions, frustum, culling, vector matrices, (quad/oc)trees, etc. Haven't touched vertex buffers, textures, mipmapping, peripheral interfaces (... |
I am trying to learn a bit of level design. The type of game I am most interested is 2D puzzle games similar to Cut The Rope for iPad. However, literature on general level-design for different genres would be very welcomed.
A internet quick search brings.
http://www.amazon.com/Art-Game-Design-book-lenses/dp/0123694965/... |
We, as in my 4 person indie group, have an entire whiteboard that looks like graffiti for prototyping our game ideas. We look at it every day and choose which idea draws us in the most when we near time to start a new project. We also randomly draw characters that seem interesting even if they have no gameplay associat... |
Sort of like a strip-light effect; not actually a light source, but just a polygon with glowing edges.
Can this be done easily? Right now I'm contemplating drawing a line more than once with varying alpha/width values to achieve this, but I think that'll cause weird glowing points at the vertices, which is far from ide... |
Hey guys, Whats the best practice to create games like farmville, tapzoo...Do I create a simple grid/tilemap as the background and then just have the objects (like houses and whatnot) as sprites ontop? Or can I also just use a regular image as a background and just make my sprites move on the basis of a non graphical g... |
I have a matrix that defines the rotation and translation of an object, relative to (0, 0, 0). Assuming that the identity matrix defines the camera to be at (0, 0, 0) pointing at (0, 0, 1), how would I go about constructing the view matrix from the world + rotation matrix?
|
I am working on building a Strategy Game (Animal Colonies fighting each other).
It is going to be simple game targeting Kids, the beta version will only support single player playing against AI opponent.
I am going to hire Algorithm programmers to build the AI algorithms of the opponent, BUT :
I am not sure what infor... |
What is a good technique to enable an object to move between to points in a nice curved motion?
The end position could also be in motion, such as the trajectory of a homing missile.
|
I'm developing a 3D videogame in C# with XNA, my problem comes when I load my model done in 3ds max, and I try to rotate a mesh of it, because the pivot point isn't exported so it takes the local origin of the mesh, the point you get when pressing "Reset Pivot" in 3ds max.
What I want to do is to change its point defau... |
Possible Duplicate:
Tips for writing the main game loop?
I am attempting to make a game using OpenGL and C++ but i haven't been able to find any good tutorials..or anything that could assist me in setting up my main game loop with some kind of timer/tick system...i would prefer to use as little external libraries as... |
Does AndEngine have a way to manage scenes (for example, main splash, menu, options, main game), and should I use a different scene per activity?
|
I'm having this weird problem where the position ocmponent of a rectangle of the XNA type is offsetting the position the sprite is rendered to as well.
I guess a broader question I'm trying to have answered is: how can I make 4 integer values: top, left, bottom, right (in texture space) the equivalent of an XNA rectang... |
I want to create a sidescroller game for Android but it seems stupid to reinvent the wheel and since there are a lot of android sidescroller games already out I though that there must be some sort of template or something so I can get started quicker, so I can keep developing from there.
|
I'm creating Snake's clone. My app have too classes: Snake.java and Board.java.
Right now I have three problems:
1) There are two constants - BOARDS_WIDTH, BOARDS_HEIGHT. They are meant to be dimensions for playground where snake moves and collects apples. It's dynamic and I can set them as I want. For example 640 x 48... |
I recently returned to face a problem I had with a game client of mine, i.e. the client's thread responsible for input & painting becomes unable to run after some while.
I suspect that it has something to do with server sent massages. Possibly client is unable to handle old ones before new ones are arriving. But when ... |
Is there a free type library kind of implementation available for XNA? I wish to use it on WP7, so it should be a managed code. I know can alternatively use spritefont, but I wish to know if other implementations exist for complex requirements.
|
Possible Duplicate:
Legal issues for a “fangame” of a commercial franchise?
What if I decide to make a fanmade game from a popular, recent game release?
100% non-profit. I will just post my game in a forum.
Graphic work is 100% mine.
I DO have some sounds from the original game. I have credited the developers.
The ... |
Yo everyone!
I have been working on an Isometric Tile Game Engine in HTML5/Canvas for a little while now and I have a complete working game. Earlier today I looked back over my code and thought: "hmm, let's try to get this animated smoothly..."
And since then, that is all I have tried to do.
The problem
I would like th... |
The code below is from a Microsoft XNA sample here.
This is quite a simple rigid body simulation that ignores many physical effects (such as angular momentum), but it does try to push objects (spheres) apart so that they are not penetrating one-another.
However, the simulation allows spheres not only to penetrate, but ... |
A bit related to this question.
The idea is to guarantee the same physics behavior as much as possible. Would it be possible to run fixed time step physics on a web worker? The UI would update itself with different/variable refresh rate.
Has anyone tried such yet?
|
I am planning to develop 2D space RPG and i am facing the choice: what is the best language to write it in? My candidates are C++, Java and Python. Obviously, I want to write game in Python because of its expressiveness, speed of development and simplicity of adding scripting support. But I am worried:
Won't Python be... |
What kind of book I read, that should do a full indie game?
|
I am making a Final Fantasy-style battle system.
I have a random generator that select the monsters move when it is their turn; different moves have different chances to be performed. I also have reactions and conditional actions for the monster to create simulated intelligence... but what I can't figure out is targeti... |
Using LWJGL what is the easiest way to load a 3D model to be drawn on screen?
I know LWJGL doesn't have built in loading support so I am looking for a small library that would help to load specifically .blend files.
|
For some reason I can not find a good example of terrain rendering, as in like "bare bones". Im reading Introduction to game Programming with DX10, and i've seen some other tutorials....but they all are complicated classes with ALOT of stuff thats unnecessary, and tbh just confuses a beginner like me. Like Raserteks tu... |
I'm currently re working an editor got from a tutorial, but I'm having a problem.
I'm making a call to an associative class for the form, which is supposed to get the original tile value and the set a new value, e.g
9(the original tile value)
9#5(the new tile value, based off the previous value)
The trouble I'm havi... |
I need to develop a simple multiplayer card game. For example, a poker game; this is only for study. I am going to develop it in Java.
How I can I manage communication between the server and clients? Can I use sockets for this game?
Edit: Thanks, I know socket programming. I know the programming socket. I just wanted t... |
I am building a simple strategy game, the goal of the game to teach programming basics to kids.
The concept of the game is simple, there will be a set of colony individuals - different type (resource gathering, fight, defend, scout ..etc).
I want to build a Campaign mode for this game, simple set of scenarios and missi... |
I have a simple game with 20-30 physics bodies (static, and dynamic)
If I add some additional Dynamic bodies and joints (over 80-90 item), then JBox2D will become very laggy, and a little slow.
Am I doing something wrong, or is this the limit of JBox2D? If I change to Box2D JNI via java native calls, will it be faster?... |
Which book is more a beginner to learn to program in c++ (or GML) and more fun: "Game Maker 8 Cookbook" (available for pre-order), or "The Game Maker's Companion" ?
|
Sorry about the poor question title, it's just that this seems to big for a title. So here's the dirt:
I am making a game (obviously) and I want the enemies to shoot (not necessarily at the player). I want the shoot method to be in the Enemies file, so as not to clutter up my HelloWorldLayer.m file even more. Here's wh... |
We are making a small FPS, and want people to be able to play it online and fetch a list of all servers from a master server. We only have experience in C#, and we have already written a master server that tracks all the servers.
However we realize that we'd have to host it on a windows application server. These are ex... |
So typically Havok works best with normal human sized objects with a gravity of 9.8m/s^2 and dealing with everything in meters.
In my Game though there will be a large variety of scales from millimeter sized objects to meter sized objects.
Typically this rules out running a standard Havok setup and dealing with things ... |
Is Unity3 (free) + dev account sufficient to get an app on the MAC app store? Or, do I require the pro version?
|
I've looked through Google and none of the solutions seem to pinpoint my idea. Ultimately, I want to create a level editor where I can draw lines and have them exported to a file for my engine to read. I'm having trouble getting path-rectangle to work. I'm using this in the context of a platformer, so I'm also interest... |
I am a new Android game developer and I have only a limited knowledge about game development and all. I'd like to create a game just like Farmville
and I heard that tile map is the method used to code this game but I dont have support from others so I request you all to help me if you can. Please tell me how I could cr... |
How would one go about gradually fading a sprite from one color to another?
|
I am curious about how storyline-based games are written.
For example: if the character done Event A, then he meets an NPC and result in Event B.
On the other hand: if the character didn't do Event A, then he meets an NPC and result in Event C.
From the code structure that I've thought up, the NPC should be an object o... |
I'm trying to put together 2D game on Flash ActionScript. Game objects positions are updated by physics library and I'm trying to control them applying forces and updating these forces every frame.
Right now I'm pondering how to control a helicopter. I'm using concept of throttle and target height. To make heli float... |
Does any one know anything about using Renderscript for game development in Android 3.0. If you know, can you provide some good examples or demo links?
|
Hey, I'm trying to make a Mastermind game. I'm having trouble figuring how to design the game board for the guesses. The board must consist of four columns and eight rows. I'm having trouble figuring out how to go about printing the game board on screen. I know I could use a two dimensional array to store the letters a... |
Possible Duplicate:
Are there any video tutorials available for game programming with Max?
Suppose i have model of simple 3d ball made in 3ds max. i just want to make simple game for fun . the scene will have only one ball , which will move with cursor.
I know there may be other tools for game but i just want to kno... |
I'm developing a game using polling for the input method. However, now that I'm delving deeper into the game menus and other UI components, I'm finding that I'd probably like to have event driven input. Perhaps even having both, using event driven for the UI and polling for the "world" input. I'm curious on what the be... |
Please take a look at the screenshot below, from the old classic Space Harrier. My question regards the curved perspective on the chequerboard 'ground'. It's got a strangely curved geometry (I remember seeing this in a few old games/demos). I reminds me somewhat of a moire effect, and I think some of it (in the back... |
I understand the syntax of HLSL, for example let's pretend I have this as my HLSL:
struct VOut
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
VOut VShader(float4 position : POSITION, float4 color : COLOR)
{
VOut output;
output.position = position;
output.position.xy *= 0.7f; // "shri... |
I'm an experienced developer but recently I've been wanting to get into game programming but as you know game development is an entirely different beast from most other forms of programming (perhaps only bested by operating system development).
That being said I've been reading Game Coding Complete (ISBN 978-1-58450-68... |
I'm considering implementing a talent-tree system for an online RPG, similar to that seen in World of Warcraft, where acquiring a skill unlocks the next "tier" beneath it in the tree.
Does anyone know of the best way of implementing this structurally in the database/code?
|
So im still learning but I think i've got a grasp of most things DX11 (Well....beginner things) And I REALLY do apologize for all the questions.....but I'd rather understand EVERYTHING before I move on.
I have 2 main functions (well 3 technically) that set up everything. I have Initgraphics(), InitD3D(), and Initpipeli... |
Quick easy question. When setting a Rasterizer State (like for example wireframe).....does that affect every object (model) on the screen?
For example, let's pretend I have 2 cubes. I use:
devcon->RSSetState(pRSWireframe);
Will that affect all the objects on the screen?
|
I'm currently doing some pathfinding research and my simulation is the following:
I have a 3d scene with a start and end point represented, I'm capable of creating navigational meshes, waypoints and polygons to aid with pathfinding.
I've tried an A* algorithm and some of its variants and they work perfectly.
However, n... |
I'm using Maya 2008 Complete and 03/11 build of UDK as well as 07/10 build (haven't got around to installing newer version on other computer). I am using ActorX to export.
I have a character that I have rigged and animated (I'm not using UDK rigs).
Here was my process:
Early on in the process, I had other objects skin... |
I'm doing a little bit of research and I'm hoping you can help me track down any games, other than Diplomacy (online version here), that employ all or some of the mechanics in Diplomacy (rules, short form). Examples I'm looking for:
Simultaneous orders given prior to execution of orders
In Diplomacy, players "write d... |
I'm making a game for iPhone and iPad w/ Cocos2D and Box2D. I scale the size of square objects ("blocks") using a pixel-to-meters ratio depending on the particular device. Can I stretch or shrink the textures and CCSprites as well? I was considering having just one "blockImage.png" file and scaling it up/down depend... |
I'm doing a diploma thesis about the development of games with freedom to choose or open world.
Topics will be i.e. development issues in programming and the design itself, mechanics etc.
For that I need literature and lot's of it. Do you have any suggestions?
|
I want to create a wall:
width 6 cubes
height 7 cubes
therefore I have 22 cubes on the margins and 20 cubes inside. For each of the margins cubes(except the corners) I have to set 3 fixed joints, and for the cubes inside the wall I have to set 4 fixed joints - all this to have good physics behavior.
Pretty much I h... |
I have a terrain, which is defined by mesh. And there are a lot of other polygonal faces scattered throughout the terrain, they can be located above, or below or cutting through the terrain. You can think of those faces as platforms.
A screenshot below should clarify what I mean. Despite looking smooth, all the mesh a... |
I am working on a Flash Tower Defense game. I have a main game loop which is an eventListener for each frame. Whenever you gain money or lose a life, I want the GameUI to be updated to display this change. Right now, it checks every frame for a change. How can I create an event to only change this information whenever ... |
I am looking to test a network game with say, 10 or more users, on a mobile device. Think of it like an MMO with a lot less users. (Assuming I can get 10 running, I'd test for more users later)
The test is for two reasons :
To see if and how the server will handle that many users
To see the performance on the client s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.