I am making a tile based game for Android. For the sake of argument, let's say I want to have 6 tiles across the top of the screen and that I want the tiles to fill the screen regardless of the phone I am using.
The way I understand it, I want to be using Density Independent Pixels in my code to make sure that the images look the same ...
Hi,
Lately I've been a lot into agile methodologies. Some papers I've read at Martin Fowler's website looked thoroughly unflawed to me to say the least, and I was wondering what agile practices are most suited to game development, particularly for small-budget, small-sized and inexperienced team projects (bold because it's really import...
I'm not really sure what the correct term is, but how are time-based programs like games and simulations made? I've just realized that I've only wrote programs that wait for input, then do something, and am amazed that I have no idea how I would write something like pong :)
How would something like a flight simulator be coded? It obvi...
Hi,
i'm beginner in objective c, i'm creating a card game for iPhone and I've a problem with a function: I create a deck of cards, shuffle it and now I need to split the deck in 4 hands (for the 4 players)
Here is my function :
-(void) split(int i1, int i2, int i3)
{
NSMutableArray *list1;
NSMutableArray *list2;
NSMutable...
I'm looking for a 3d engine (for games). I prefer C# with .net or Mono but C++ would also do it if I don't find anything for C#. I want to code programs for Windows and Linux. iPhone/Android would also be interesting for other projects.
So far I found these engines (C#):
Axiom - This one seems pretty fair and since it's a C# port of O...
Hi Everyone,
I try to test Game Center in my iPhone game, but when i try to connect whit the following lines of code i get a alert that says "This game is not recognized by Game Center.".
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) {
if (error == nil)
{
// Insert code here to handle...
Tutorial: http://pushbuttonengine.com/docs/Lesson-01-FlashCS4.html
When I get to hello world, It gives me the error "Packages cannot be nested but, when I remove the { and } it gets mad at me.
Code:
package
{
import flash.display.Sprite;
import com.pblabs.engine.PBE;
import com.pblabs.engine.debug.Logger;
public class...
I've been having some trouble with choppy movement of objects in a game.
If the frame rate isn't capped, the game runs smooth.
If I cap the frame rate at say, 60 fps, the movement is choppy.
An object's movement looks like this...
m_distance += m_speed * GetFrameTime()
Where speed is in pixels per second, and GetFrameTime() returns...
Haskell is a pure functional programming language.
My question is:
What are the advantages and disadvantages of using Haskell to solve problems involving lots of state, for example GUI programming or game programming?
Also a secondary question: what methods are there to handle state in a functional way?
Thanks in advance.
...
I'm making an iPhone game in Flash and i added a little splash screen where the game name fades in from black then fades out to the menu screen. The whole animation is in its own movieclip, just 2 transitions where the alpha changes. When built to a SWF file this plays perfectly, but on the iPhone it doesn't.
Even more strange; the iPho...
Hi there,
I'm developing a side-scrolling android game and I've come across one hiccup.
The game is rendering graphics on the Canvas object. The game features about 6 scrolling layers, the main ground layer, a collision layer, a foreground layer, and two background layers, which all scroll with variable speed for camera depth.
Now, t...
I understand what sin and cos (and some other trigonometric functions) means, but I don't really get what kind of problems they solve. Can you show me some real world examples when you'd use some of these functions in game development (specifically 3D game development)?
Thanks.
...
I am trying to calculate the angle of movement for a sprite in C++.
Although at the moment I am just using the console to output my results.
My problem is that when My results are shown in the console, I cannot get the x axis to go into minus numbers.
Unfortunately I have only just learned about basic trig so I have no idea if I am ju...
Hi guys, i'm trying to develop my first and simple videogame.
I'm using SDL.NET (wrapper .NET of famous SDL) and c#.
I'm trying to rotate my sprite (my "car") when user press down array, up array ..
I'm using something like
this.Surface = this.Surface.CreateRotatedSurface(90);
But it not work ! I've error on screen... :(
I know i ...
I have set up FBOs (GL_FRAMEBUFFER_EXT, color and depth buffers) and my app is rendering a simple OpenGL 3D object (a rotating teapot) to texture with a NULL image. I am trying to capture pixel data using glReadPixels. I see the 3D object correctly on the screen. But glReadPixels gives junk data. I wonder where I am going wrong. Any help...
Hi, I've been wondering if canvas has a limit boundary.
I mean if I use functions such asdrawline(), drawbitmap(), drawcircle(),
does android really draw something on the canvas and waste some CPU cycles??
because after all the drawing functions, the actual picture print on the screen is decided
by the screen size. And if I draw on som...
I'm wondering how to compile and run a XNA class from an interaction on a C# Window Form. For example, when I click button "Play" from a C# Window Form, the game which is built in XNA classes will be compiled and run. Hope my question is clear enough.
Any helps are appreciated :)
Thanks in advance
...
Hello,
I am not quite sure how use HD images for sprites in cocos2d. I looked through the documentation, and downloaded the newest beta which supports points instead of pixels, but I don't understand the whole -hd suffix idea. In other word I need help and have no idea how to use retina quality graphics in my cocos2d game. I feel tha...
Hello, I'm attempting to create a 3d game using OpenGL. I have a very basic world and am now working on a character. I want to map a texture to the head which will be oval shaped. How do I do the mapping? I know how to map to flat surface. I'm wondering if the normals can be used to help but I've never done this before and when I se...
I originally asked this question on programmers.stackexchange.com, because I figured the answers would be too subjective for stackoverflow. However, in the comments Muad'Dib pointed this out:
this would probably be a better fit for StackOverflow ... This is a direct programming problem-related question and discusses programming so...