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 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?
0
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Hi
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?
Thanks
0
Hi
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! ?  

Thanks
0
Hi
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?

Thanks
0
Hi
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?
0
Hi
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

    @abc.abstractmethod
    def get_white_move(self, white_moves):
        """white player chooses the best move for this turn"""
        return

    @abc.abstractmethod
    def get_black_move(self, black_moves):
        """black player chooses the best move for this turn"""
        return

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


Thanks
0
Hi

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?

Thanks
0
Hi
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.

Thanks
0
Hello.

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
54999858925__AB9E1587-E48B-4EC4-B511.MOV
0
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()
    {
        setSize(1000,500);
        setBackground(Color.CYAN);
        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()
    {
        while(running)
        {
            repaint();
            p.update(this);
            b.update(this,p);
            b2.update(this,p);
            b3.update(this,p);
            try
            {
                Thread.sleep(20);
            }
            catch(InterruptedException e)
            {
                System.out.println("ERROR HAS OCCURRED");
            }
        }
    }
    public void update(Graphics g)
    {
        dbImage = createImage(1000, 500);
        dbg = dbImage.getGraphics();
        paint(dbg);
        

Open in new window

0
Cloud Class® Course: Ruby Fundamentals
LVL 12
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Hi,
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
0
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.
0
Hi

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.

 here

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()?

Thanks
0
Hi
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)
       
            screen.blit(white_king,(x*square_size,y*square_size))

Open in new window

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

here

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 pygame.org, but I'd love to see it mostly in one screen.

Thanks
0
Hi
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?

Thanks
0
Hi
singleparentmeet.com 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!

Thanks
0
Hi
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 members.ChessBoard.pyChessPiece.pyChessGame.pyChessPlayer.py

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?

Thanks
0
Hi
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!

here

So I grudgingly_accept!  j/k

Thanks
0
Cloud Class® Course: SQL Server Core 2016
LVL 12
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Hi
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("\n\n.........")
        c=chessBoard()


print('chess main')

chessGame()

Open in new window


Here is the chessBoard:
class chessBoard:

    def __init__(self):

        self.pieces=[]

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

Open in new window


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

Where am I going wrong?

Thanks
0
Hi
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?

Thanks
0
Hi
For my Python RTS / MOBA server,

I am at a decision where I should either make a class for reading UDP activity updates from the clients over TCP activity ( a failsafe)
Should I have a UDPlistener class and a TCPlistener class?
or should I have a packetListener class with a UDPlisten method and  also, a TCPlisten method? - that are each made into Threads?
I think an all-in-one approach would make linking into the game smoother?

both would work, but which would look best? Is Python better suited to one?

Thanks
0
Hi
When my dad saw this claim, attached JPG, seemingly from my website trademark managers, he said he thought it looked like a scam.
I thought it was plausibly, possibly legit, but bec I'm not doing the website anymore, I was disinclined to care. Im not paying another $2,000 into this thing.
Did some Nigerians find my domain info and send me this bill? I already paid all the bills they said I'd need to pay. I was concerned about being fined.

Is this sheet some kind of phishing scam? It looks like a standard commercial building in Manhattan.  (244 Madison Realty Corporation (glotrade)

I don't remember the glotrade name. I'm a hawk on scam scents now after being taken before. I'm not paying it. I'll send Luca Brasi, or Joe Pesci up there to explain it to for me.
Thanks
0
Hi
I am not certain if League of Legends is an RTS type network server, or an FPS? The player movements are well spaced out, so I'd think RTS

In Summoner's rift, is it only 5 people/champions playing? Is that the practical limit on players, in most network games?

If I port my working Java RTS server that I finished a little while ago to Python, could I expect any performance shift? It is TCP messaging, with UDP duplicates sent afterwards for speed.

Thanks
0
Hi
In all my Java games, I have used code like :
public static int STAR_TYPE_RED_DWARF=1
public static int STAR_TYPE_WHITE_DWARF=2
public static int STAR_TYPE_BLUE_GIANT=3
public static int STAR_TYPE_SUPER_GIANT=4
and many more game object constants

What is the best way to replicate this in python, so these constants are automatically associated with its object when writing code?
I haven't seen anything like this yet

Thanks
0

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
<
Monthly
>