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

We talked a little about my approach to teaching neighborhood kids and adults, even, how to code.
I think we decided against going all out on Python right away. Do you still agree? I'd like to hold off on Python for a pure newbie.
K-12 focuses on Java, so I think Java for them is obvious.
I also think so, because polymorphism and class design will be important for making tablet, phone apps, as they are seriously non-novice projects. - Java will make 4 an easy transition
I'm going to start them off on Java and when they are blatantly ready, switch to Python, or their preferred device.
I could do Java and Python side-by-side?
Any suggestions?
I'll start early next year

My padowan coders will excel

How do you revert back to a previous version of Google Chrome?

Sometime yesterday I noticed a change in the appearance of Google Chrome, in that the address bar now has a light blue border as shown in the following screenshot:

My current version of Google Chrome:
However, sometime later I went to join some friends playing a game at a website called (where players compete as snakes of different colors and sizes). However, after beginning to play, I noticed that the game image was jiggling or shaking to the point that I had to turn it off. The frame of the window itself does not move but the entire image (background and players) trembles as you might expect a picture on the wall to tremble during an earthquake.

The shaking movement is accompanied by a significant lag. I have experienced lag issues in the past but they always manifest as a sudden freeze for 2-3 seconds followed by a catch-up burst to put everything into its real-time position.

Interestingly, the shaking and lag become much worse by going into a congested area (ie the more snakes in the field of view, the worse the movement), and is almost nonexistent if you are in the outskirts with no one else around.

I've searched Google quite a bit for a solution and have tried each of the following:

• Zoom in/out
• Restart Chrome
• Restart computer
• Empty the Chrome history
• Chrome > Show advanced settings > scroll down to…
Can the "Phaser" game dev JavaScript framework be demo-ed in JSFiddle?

My attempt to run the Phaser game framework inside JSFiddle

reference material:

What is Phaser? (Phaser website)

Phaser "Hello World" - attempting to run this in JSFiddle

Screenshot of what I see when I run the example on my local Apache web server:

phaser on apache web server
Screenshot of what I see when I try to run the same demo in JSFiddle:

phaser hello world in jsfiddle

I am going to begin tutoring in the AP subjects that I took, 6 of them..

These days, do kids expect an actual book text? Will I look like a nimrod if I don't have a digital textbook?
I'm going to buy this book to get me fully back to speed. here
How can it be digital? Not all kids can afford tablets,right?
I am writing a game in Lua on the Corona platform. Currently it's pretty simple.
I am writing the memory usage to the screen every frame using gcinfo().
Why does my memory usage increase to 1.5MB then back down to 800Kb then repeats?
Is it normal?
I wrote a lot of music and am curious about the potential of spotify.

Do kids really listen to it as much as it seems?

Taylor Swift had an entanglement w them, but that was sorted out, concerning payment to artists.

Is this only for seemingly professionally managed artists? who can play gigs on a moment's notice?
Didn't some dude put a song he'd recorded at home on and it became huge? What happened to him?
For a piece I'm writing, I need to explain aspects of open-source code to normal people.
I cant seem to find a list of well-known open source projects.
Most people don't know what Eclipse, Linux and such are.

Is there a way to explain it to non-Dev people, with examples they'd know?
Which movies have had dozens of writers! ?  

I had a similar question answered, but before I waste money on a USPTO trademark infringement search,
I have one question,
If I have a blog and I call it something like Indiana Joans, it's not identical, but
Will ILM / Lucas / Disney throw bombs at me?

There is a domain I'd like for one of my projects, but when I go there, it is just a pointer to another site that has nothing to do with my domain name.

I once bought a domain for a project I might do, and someone in Australia abducted it from me. Must have been a trademark.

How do I file a trademark so I can usurp this person and get my domain, so that I can kick these people aside? Is that it? A trademark? I doubt they have one. Can I check it safely?
My PyCharm is giving surprising red-underlining on import abc, object, and from abc import
Up til now, my chess engine has been working on a player class, but I'd like it to be an abstract base class. I am re-designing it
Must I do any special entries in the Project Settings panel? my code below doesn't seem to be a problem,

My abc is :
import abc

class ChessPlayer(object):
    __metaclass__= abc.ABCMeta

    def get_white_move(self, white_moves):
        """white player chooses the best move for this turn"""

    def get_black_move(self, black_moves):
        """black player chooses the best move for this turn"""

Open in new window

My derivative class is:
import abc
from abc_base import ChessPlayer:

class RandomPlayer(Object):
# ToBeDone, once setup is correct

Open in new window


One of my latest ideas will require investment, and probably a global community. I've done a non-trivial blog already. I must move on... My invulnerable chess engine is done.
Is there any kind of trust / purse available that people can submit their money to, having a guarantee that it won't be spent on anything other than the project in question?
Crowdfunding is just a money pit, but is there any guarantee that the fundees will not spend it on hookers and beer?

I want my potential investors to have no worries - a guarantee that the money will go only towards the project, an overseer?

If I decide to do a blog that is Sci-Fi / gamers discussion and such,
will Disney / ILM / Lucasfilm send Imperial droids after me for the following on my blog...
- using Star Wars font with the long footed 'S' - There are StarWars Font sheets on Google
- discussing their characters, - eg. the need for Rose, or Leia flying through space as if on Ex
- using images of X - wings or Chewey or yes,  ! Jar Jar ! The battle of Hoth?
I will need Adsense spaces

Is ILM still an entity?
Are their lawyers vindictive? I presume so.


I want to make a snake game using DELPHI. The basic, the snake eats the apple and it grows longer. I have the apple generating in random places. The only thing that I cant get is the delay. So i need the blocks to follow the first block in a train effect, but so far they are all stuck together and when I change direction they all move together instead of being in a 'train' effect.

Can anyone help me? I don't know if the explanation was detailed enough.
Many Thanks
I am creating a Java game where you need to fly your plane, and save it from colliding with any obstacles. I have been able to do everything successfully, however the only problem I am facing is with creating Collisions.
Note: The compiler says 'Cannot find symbol' in class 'Bird' on lines 32-33.

//Fly Your Jet
import java.applet.*;
import java.awt.*;
public class Fly_Your_Jet_main extends Applet implements Runnable
    Thread thread = new Thread(this);
    boolean running = true;
    Player p;
    Bird b, b2, b3;
    Image dbImage;
    Graphics dbg;
    public void init()
        p = new Player();
        b = new Bird(this);
        b2 = new Bird(900, 200, this);
        b3 = new Bird(100, 400, this);
    public void start(){thread.start();}
    public void destroy(){running = false;}
    public void stop(){running = false;}
    public void run()
            catch(InterruptedException e)
                System.out.println("ERROR HAS OCCURRED");
    public void update(Graphics g)
        dbImage = createImage(1000, 500);
        dbg = dbImage.getGraphics();

Open in new window

I have difficulties importing auto-rigged Maya Characters into Unity.
Because Unity can not find reference bones or something like that.

Where do I wrong?

Thank you
Hi all,
I have models of Maya (which I can manuplate in Maya) to Import into Unity, which format you think is better, considering all advantages?
.ma or .fbx?

thank you.

I already asked a dragging question, but didn't ask about not leaving a trail of smudged pixels.
For anyone curious,
This is the stack overflow page i'm using for my Pygame mouse select, mouse-down and drag.


My strategy for smooth dragging over existing pieces is...
On a piece select,
1) paste a blank square over that  piece, to clear its start off space,
2) Remember the x,y click displacement from the top left of the piece square, to help maintain the location of the piece as it is dragged under the cursor.
2) Capture the region under the mouse cursor to be repasted once the piece is dragged to cover up the old piece image. Can I save and re-paste the entire screen, super fast way? Redraw would be 2 slow.
Is the double buffing automatic? SetActivePage? setVisualPage()?

My Python chess GUI is coming on well.
The 8x8, black and white is perfectly structured, colored at a changeable square_size

The white squares are just the white window background.
However, my transparent pieces don't render on a black square (rectangle draw.rect)
They are pasted under it! I can move the piece location by a few pixels, and see it emerge slowly from under the black square.

Is this a known issue?

Here is my relevant code, there is no code between them

pygame.draw.rect(screen, square_color, (x*square_size,y*square_size,square_size,square_size), 0)

Open in new window

I found this page of 60x60 chess images to use in my uncontestedly invulnerable ;) Python AI development


Instead of  trial and error myself, is there an example page with code for a Python Frame of image load, drag and drop? w listeners? like in chess apps? I have pygame ready.
I can see the functions on, but I'd love to see it mostly in one screen.

My invulnerable :) chess AI is going to be done, but I'd appreciate some pointers on a chess GUI in Python
I have a legal-move generator coming on nicely, I have pyGame.
Right now, I am printf'ing the board state to the Pycharm console, list of lists, White upper case and black lower case characters, init'ed like this:
It is legible in the fixed width font printout method below, but in array format - a GUI would ease the pain.
self.board = [[' ',' ',' ',' ',' ',' ',' ',' '] for i in range(8)]

        self.board[0] = ['R', 'N', 'B', 'Q', 'K', 'B', 'N', 'R']
        self.board[1] = ['P', 'P', 'P', 'P', 'P', 'P', 'P', 'P']
        self.board[7] = ['r', 'n', 'b', 'q', 'k', 'b', 'n', 'r']
        self.board[6] = ['p', 'p', 'p', 'p', 'p', 'p', 'p', 'p']

Open in new window

This is my ChessBoard class's print method...
    def print(self):

        for i in range(7,-1,-1):
            print(i, '>', self.board[i])

Open in new window

What might the best GUI approach be?
Would I need transparent pieces over my own board GUI, to do select and drag and drop movements w a mouse?

Hi is a really pitiful dating site. I want to unenroll, but their site is truly pathetic.
They don't have tech support and their help page requires 3rd party cookies.
Dating is a hotbed of scammers. Enabling 3rd party cookies doesn't appeal to me, especially from a crappy site that might have vultures, or Nigerians waiting for idiots to allow them access to info. Nigerian vultures!? How can I safely unenroll from this  site? Can I get VISA to read them the riot act? They will probably charge me soon, month end!

I am bewildered by some of my Python bugs today, with a new approach of my Python chess engine.

The ChessBoard class doesn't connect with my ChessPiece data

The board tries to instantiate ChessPiece objects that are a white pawn, like ChessPiece.PIECE_PAWN
PIECE_PAWN is a totally valid data member in the ChessPiece class,
but the error states it is a non-existent attribute - PIECE_COLOR... too

Maybe I'm being poisoned by my Java old habits, eg there are no public static equivalents

How does my code look, also, style wise? My code must be stylistically proper! What have I missed, attached?
Does my ABC player look okay?

I had to bitterly accept an expert comment recently, J/K

..Implying that my usage of CamelCasing in my code was lame, and I should use underscores.
My personal feeling was that camelCasing was easier to read, less long, but this article below confirms the expert opinion, underscores are better!


So I grudgingly_accept!  j/k

I'm whipping up this quick chessBoard data structure in Python, but I think my C/Java habits are tripping me somehow.
The objects aren't linking up correctly,and are giving a roll of errors : I have a chessGame class to contain the chessBoard.
I'll do the chessPiece class once this works.
It should be simple

Here is the big chessGame class: That now, just creates the chessboard, and has the main code
import chessBoard

class chessGame:
    def __init__(self):

print('chess main')


Open in new window

Here is the chessBoard:
class chessBoard:

    def __init__(self):


        #white pawns
        for i in range(0,9):

Open in new window

There are missing lines, but once this simple structure works, I'll be set

Where am I going wrong?

None of my iDrive backups have completed without an error, and I cant see a simple reason. - MacBook

I am doing the 'backup when press the button' not scheduled, because I don't want the OS clogged while I'm coding my globe changing projects :)

Does anything in this log printout help identify my problems? What about the skipped, missing files?

The summary says this:

Start time: 04/07/2018 06:27:03 AM
End time: 04/07/2018 06:29:32 AM

Files considered for backup: 574517
Files already present in your account: 572558
Files backed up now: 429  Size: 19.15 MB
Files failed to backup: 1530

Backup operation failed.

Open in new window

Some of the files/folders selected for backup may have been excluded from the operation. To view excluded files / folders, go to the "Exclude Files / Folders from backup" section of Settings tab in IDrive application.

In settings, there is an 'exclude files' panel.
I don't want to exclude anything! I want my entire McBook saved!
What am I missing?


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).

Top Experts In
Game Programming