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

Hello,

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:

2018-09-07a.png
My current version of Google Chrome:
2018-09-07b.png
However, sometime later I went to join some friends playing a game at a website called slither.io (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…
0
Amazon Web Services
LVL 12
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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

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?
0
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 )
        _group:insert(img)
        table.insert(_storeContents,img)
    end

    for a,b in pairs(_storeContents) do
        display.remove(b)
    end

    _storeContents = {}
end

I am using gcinfo() to get the memory usage.
What do I need to do to fix the memory leak?
0
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
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
C++ 11 Fundamentals
LVL 12
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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
https://i.pinimg.com/originals/d3/87/3b/d3873bc48632cea842b1c6724c767d09.jpg
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
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,
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.



0
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);
                roundDrawable.setCircular(true);
                p_avatar.setImageDrawable(roundDrawable);

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.

avatar-circle.png
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?
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
Angular Fundamentals
LVL 12
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

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