FAQ Database Discussion Community


2D game development with Unity3D

unity3d,2d-games
I tried to find some answers to a few questions I have about Unity3D games development. I want to create 2D mobile games. The thing I really want to know is if I can create a mobile game for different platforms at one time (as cordova can build Android /...

Pygame Scaling Healthbar

python,math,pygame,2d-games
Im working on an RPG like game, where your maximum health can be increased throughout. I am trying to make a script that will draw a health bar, 100 Pixels Wide, for values over 100. Like, as your health goes up, the units of the health bar get smaller. This...

Perform “catching up” when game is re-opened

ios,swift,2d-games
What's a good way to handle "catching up" on all the actions that should have happened while a game was closed? Example: Tiny Towers. There are supplies, shops, customers: When a person closes the game and opens it the next day, the app has to figure out everything that happened....

Artificial intelligence (or at least path generation) of entities in a 2-dimensional plane

c#,xna,artificial-intelligence,2d-games
TL;DR Given a 2-dimensional plane (say, 800x600 pixels or even 4000x4000) that can contain obstacles (static objects) or entities (like tanks, or vehicles), how can computer-controlled tanks navigate the map without colliding with static objects while pursuing other tanks? Please note that every static object or entity has the ability...

How can i make a startmenu in python?

python,menu,python-3.4,2d-games,startmenu
i have been trying to add a start menu to a game i have been making and have looked everywhere to see how to make a start menu. I did try to use a tutorial by sentdex but it didn't work for my code! And i have also looked in...

how to make Sprite follow bezier curve

sprite-kit,bezier,2d-games
Im fairly new to objective-c and sprite kit but i've done games development for a while. Im currently working on a 2d game and i have enemy ships moving from right to left on the screen. Ive been following tutorials for different parts of my game and then adding to...

excel stop a user accessing a cell if background colour is black

excel,vba,2d-games
I am trying to build a simple game (Maze) in excel 2003. I need a Macro that stops a user selecting a cell (using arrow keys) if they have a black background colour. I cant seem to find anyway to stop this happening (regardless of the colour). Any hints or...

How to choose an algorithm? [closed]

algorithm,artificial-intelligence,2d-games
I've to choose an algorithm for a given problem: The game has two players: x and o. The players take alternate turns, with player x moving first at the beginning of each game. Player x starts at position (1,1) while o starts at (8,8). Each turn, a player can move...

Best program to create Java games? [closed]

java,3d,ide,programming-languages,2d-games
Not much to it Java Windows 8.1 32 bit Still beginner 2D Thanks...

Surface dissapears when I use SDL_RECT

c++,sdl,2d-games
Im trying to create a class that contains the info of my game's SHIP (image and position at the moment), everything compiles as I expected it but if I use the SDL_Rect variable I created inside my ship as an argument in the SDL_blitsurface method, the ship does not appear....

Rendering concentric hexes on Canvas

javascript,html5-canvas,trigonometry,2d-games
I've written a loop in JavaScript that will render rings of concentric hexagons around a central hexagon on the HTML canvas. I start with the innermost ring, draw the hex at 3 o'clock, then continue around in a circle until all hexes are rendered. Then I move on to the...

Save position of elements in canvas while is moving others

javascript,html,html5,canvas,2d-games
I'm starting to learn Html5 canvas with a simple game, Tetris. I need to save the position of the pieces in canvas when this pieces arrive to the bottom of canvas, and then stay there. Then create other piece and moving it to the bottom. But when the first piece...

Layering quads on top of each other in OpenGL

c++,opengl,2d-games
I'm creating a 2D tile based tactical rpg using OpenGL using C++ and I'm having difficulties with layering my tiles/quads. I want to to able to put say a tree textured quad, the image is of the tree with a surrounding transparent alpha layer, on top of an opaque grass...

Making Games in VB and optimisation

vb.net,performance,fps,2d-games
This is more of a general question than one linked to a particular project. Since I've started learning programing at school we have been using the language VB. I wanted to develop my skills and do some cool projects. Recently I've been making some small games and even entered Ludum...

Can I develop high quality games for Android/iOS using libGDX? [closed]

unity3d,frameworks,libgdx,game-engine,2d-games
All I wanna know is, "Can I develop high quality games for Android/iOS using libGDX or game engines like Unity3D would be needed?"

Looking for somewhat general advice for game programming in Java [closed]

java,swing,menu,2d-games
I have been learning Java, and I am putting in a lot of dedication and effort to improving at it. But I also have a goal I am working towards - a 2d RPG. Think pokemon-ish. I have been messing around with swing a bit, but the components have a...