Game Programming

Game programming is the software development of video games. Game programming requires substantial skill in software engineering as well as specialization in simulation, computer graphics, artificial intelligence, physics, audio programming, and input. Like other software, game development programs are generated from source code to the actual program by a compiler. Source code can be developed with almost any text editor, but most professional game programmers use a full integrated development environment (IDE).

Share tech news, updates, or what's on your mind.

Sign up to Post


I'm hoping for confirmation about this local server installation strategy for my Javascript game dev server being a good choice.

I have my newest MacBook, that is basically empty, ready to install this MAMP local server on from here

It says one-click installation. Any gotchas?
It has lots of sections for wordpress, elsewhere, but will this be good for serving files and data needed by my game?

Must I do a default install of Atom IDE? ( on the same machine?)

HTML5 and CSS3 Fundamentals
LVL 19
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

I am ready to put my .js designs onto the table. I have been getting most of what I want working, except for game-object flicking.

I'd like ( on a sideways turned phone/ device) for the player to be able to flick <div> objects towards the middle of the screen, in a natural-feel frame-time controlled environment.

How should I proceed?

Client has asked me to provide some idea about how to duplicate the gamification system.

If someone knows of a system like this in the wild which might be used to duplicate a similar site, let me know.

Something beyond simple systems like providing layout of badges + count accumulation buckets in a response style system.

Maybe some sort of bolt onto score.js using SVG graphics for presentation.

I am ready to get some of my javascript game code onto my phone.
I'm hoping it's relatively straightforward like simply making an HTML canvas and popping it in..
Too much to hope for?
This is some simple javascript showing object drawing on a scene. code in text area below, and the link

URL at javascript at the bottom of this page
var canvas = document.getElementById("game-layer");
var context = canvas.getContext("2d");

context.fillStyle = "gray";
context.fillRect(0, 0, canvas.width, canvas.height);

context.fillStyle = "red";
context.fillRect(5, 5, 10, 15);
context.fillStyle = "blue";
context.fillRect(25, 25, 20, 20);
context.fillStyle = "green";
context.fillRect(50, 50, 20, 40);

Open in new window

I am designing the game Othello or Reversegram as it is known in some places. I'm almost done coding the game save for tallying up the final score and tweaking the AI to make more intelligent moves (currently only doing random moves). However, I am encountering certain bugs that appear. While the CPU and I keep flipping the pieces, there will come some point where I either cannot make a move even though it is certainly legal to do so. As well as the fact that when I play certain moves usually around the edges, it sometimes won't flip the opposing pieces even though I just made a legal move. If I can get some help understanding where I should be making my edits--I think the error might be in the "findLegal" function. Thank you for your help!

Note: I recreated the board with W on 6b, and B on 7b and 8a and could make the legal move of W on 8b so vertical moves are generally accepted and work up until a certain point which I'm confused about. In addition, I originally set up the board in the picture with random pieces throughout to accelerate the game and also to test out the various issues I had (so please ignore the random W on 4h).
How to assemble 3d models( individual 3d components) in unity or any game engine, programmatically, with out structural positions.
I am trying to fix my memory leak in Lua.
To test, I am creating 100,000 images on screen and recording them.
Then I remove them from the display. This works.
The problem is that the memory used never reduces back to that before the creation.
Here is my code:

local _storeContents = {}
local function OnDebugTest( event )
    for i = 1, 100000, 1 do
        img = display.newImage( "planet1.png", math.random()*400, math.random()*400-200 )

    for a,b in pairs(_storeContents) do

    _storeContents = {}

I am using gcinfo() to get the memory usage.
What do I need to do to fix the memory leak?
Hi all,
I need help for texturing my robot model.
my robot model has colored materials on it. However to use it in Unity as hologram model I need to convert its materials to one jpg texture file (I think you are familiar what I meant)
How can I convert (bake) my materials to one texture file using maya or silo or something...
Thank you

I meant this file type
I am making a Doodle Jump game in c++ using sfml,
I started building the umlaut and decided to go with a STRATEGY pattern. I don't really know if this is the right choice.
I basically got to a point where I don't know how to continue,
please if someone could take a look at my UML and tell me what they think it will be greatly appreciated.

I'm using Android Studio and I would like to be able to pickup am image from the gallery, resize it and make it fit inside a rounded square (of about 300x300px) by maintening the correct aspect ratio. At the moment, I'm able to resize it and display it as a circle with this code:

FixBitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), uri);
                bitmap_to_save = scaleBitmapAndKeepRation(FixBitmap, 320, 320);

                RoundedBitmapDrawable roundDrawable = RoundedBitmapDrawableFactory.create(getResources(), bitmap_to_save);

Open in new window

However, I would like to know if it is possible to make the bitmap look like my attached image. Moreover, it would be important for me to resize the image without losing the original aspect ratio.

It is not exactly a well square rounded figure, so I'm not sure that it is possible to do it in Android.

I hope you can help me, thanks!

EDIT: I'm using Picasso library for the moment, and it seems to work. Anyway, I would like to keep always the same picture size (300x300 px) and the aspect ratio. How can I do it?
Why Diversity in Tech Matters
LVL 19
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

what is the best server equipped to host a full fledged teenpatti game with unlimited userbase.
please advice with configs. I am new to this
game wouldn't work
Dear experts,

I've encountered a strange problem when doing depth-fail stencil shadows. The back cap seems to be interfering with the stencils causing them to marked as lit rather than shadowed.

I'm using a 2-way stencil btw. I'd just like to ask for some first-glance indications. I'm not asking to be spoonfed with a solution.
How do I code to make a space like universe for my games map?
Do you have the source code for Metro Board Game in Prolog. Here is the description :  Thank you.
I'm creating a slideshow on a MMORPG game and it is asking what codes, platforms, and purposes. But, i don't know what the codes and platforms are.
plz  help  me  i have lenovo B570e with intel   graphics  how  can i  resolve  it
 plzz  help
In a Windows 10, 64bit gaming computer (i7, 24gb ram, Geforce GTX770), GTA V is crashing ONLY when I have a Saitek R440 Wheel plugged in, even in safe mode, in USB 2 and 3 ports.
Grand Theft Auto V has stopped working
Faulting application name: GTA5.exe, version: 1.0.350.1, time stamp: 0x5540c256
Faulting module name: pid.dll, version: 10.0.10586.0, time stamp: 0x5632d86f
Exception code: 0xc0000005
Fault offset: 0x00000000000024f2
Faulting process id: 0x438c
Faulting application start time: 0x01d1c5eae54d8e65
Faulting application path: U:\Games\Grand Theft Auto V\GTA5.exe
Faulting module path: C:\Windows\System32\pid.dll
Report Id: d1e89d26-6ab8-4161-a7a0-75875bb80781
Faulting package full name:
Faulting package-relative application ID:

The wheel works with other games like Dirt Rally (altho I can't get the Force Feedback to work yet). I installed the drivers sw that came with the wheel, but the Saitek Profiler software says "you must plug in a supported saitek programmable controller before you continue" even when its plugged in.  Same issue with legacy software I found online for this device.  They don't detect it, altho windows 10 does, and other games do.
I am creating a dodgeball game. What are some good graphics software that could be used to help create the characters of the game?
Become a Certified Penetration Testing Engineer
LVL 19
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

I have a scene with a camera that I want to look down on a floor that has objects on it. I'm having trouble setting the position of the camera so that I can see the floor from above.

I have:

camera->setPosition(vec3(20.0f, 1.5f, 0.0f));

I would like to be able to zoom out more.
how get missed game rar files i missed my resident evil racion city game ile i am searching there is 71 file in that no.1 file missed
I'm in the early early stages of build a hardware product that needs to run games. Lets just say that all I have is the hardware device, which is like a 3D screen. I need advice on how to architect the software side of things.

I'd like to somehow use an existing gaming IDE, so I don't need to create my own. Maybe the Unity Engine. Then I need to consider things like what's needed to have the games playable on Linux, how to have it communicate w/ the device's inputs, and how to rasterize the game visuals to the device's screen.

I'm a n00b and I know this is a big project. Even just a broad description of the software stack, or what to research would be greatly appreciated.
I'm creating a product that displays 3D images, kinda like a 3D television. I'd like developers to use the Unity Game Engine to develop apps/games for this device. I'm totally new to this stuff and wonder if that's even possible. Can I somehow get my platform to be supported by Unity? If not, would someone suggest a better approach?

The reason I want to do this: I have a 3D hardware product, and I need an IDE to develop apps for it. It looks like Unity would be a good choice because there are already millions of developers, and it's an established development platform. Again, I'm new to this, so any advice would be most appreciated.
who can i test my PS 4 game on my own PS 4
and if this isn't possible how can i test the game on PS 4 machine before i publish it ?
I was wondering if anyone has successfully implemented multiple gaming console's on a network with NAT/PAT with full multiplayer gaming functionality? In particular using enterprise grade firewalls or routers.

I was thinking someone in the university education space may have done this (student dorm networks).

Thanks for the help!

Game Programming

Game programming is the software development of video games. Game programming requires substantial skill in software engineering as well as specialization in simulation, computer graphics, artificial intelligence, physics, audio programming, and input. Like other software, game development programs are generated from source code to the actual program by a compiler. Source code can be developed with almost any text editor, but most professional game programmers use a full integrated development environment (IDE).