[Webinar] Streamline your web hosting managementRegister Today

x

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

Hi

I've been playing League of Legends with no problems,
and all of a sudden it gets into this 'Attempting to reconnect' mode at the re-spawn altar after my champion gets served
and the game is essentially locked and I cant move my primary dude. I can move the camera, but not my champion.

Is that something I did wrong in my game-play?

Thanks
0
Never miss a deadline with monday.com
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Hi I am trying to get my games to output the current time in seconds that the game is running for as a score for the player in the canvas but I keep getting an undefined var instead of the number?

Does anyone have any idea whats wrong with my code??


Thanks, See code below.

HTML5 Canvas
JS
var Game = {
    canvas : undefined,
    ctx : undefined,
    backgroundImage : undefined,
    backgroundMusic :undefined,
    soundImage: undefined,
    soundImagePosition : { x : 750, y : 10 },
    vy : 0,
    rocket : undefined,
    rocketPosition : { x : 350, y : 400 },
    dxSpeed: 7,
	dySpeed: 3,
	keyboard : { keyDown : -1 },
	keys : {
    A: 65,     B: 66,      C: 67,      D: 68,       E: 69,      F: 70,
    G: 71,     H: 72,      I: 73,      J: 74,       K: 75,      L: 76,
    M: 77,     N: 78,      O: 79,      P: 80,       Q: 81,      R: 82,
    S: 83,     T: 84,      U: 85,      V: 86,       W: 87,      X: 88,
    Y: 89,     Z: 90, 	   LA:37,      UA:38, 	    RA:39,      DA:40,
 }
};

function handleKeyDown(evt) {
    Game.keyboard.keyDown = evt.keyCode;
}

function handleKeyUp(evt) {
    Game.keyboard.keyDown = -1;
}

Game.start = function () {
    
    document.onkeydown = handleKeyDown;
    document.onkeyup = handleKeyUp;

    Game.canvas = document.getElementById("myCanvas");
    Game.ctx = Game.canvas.getContext("2d");
  

    Game.backgroundMusic = new Audio();
    Game.backgroundMusic.src = "assets/audio/start.mp3";
    

Open in new window

0
Hi

If Python can be run in a browser,

Will my RTS client's game window be playable? - how? - browser window? - in its own window?
It looks like printf's are written to the browser window, but will Threading occur normally?
I'll keep my invulnerable RTS server in Java. And do a client in pure Python now. Will it be as good as in Java?
Thanks
0
Hi

Someone has pics for me on photo bucket.
Do I have to pay? it seems so.

Is this a legit site? I am sick of scams

Thanks
0
Hi
Python array/list instantiation, import and other declarations are confusing me!

In my code attached, I have a main class for holding the data structures for a platform game level, basically x,y, positions and length of the platform, for now,
I don't understand why the 'module' object is not callable - error? It seems it should be trivial. What does that mean? I intend to end up with a list of terrain objects
In platform.py, must I do 'import platform as platform' is that telling me how to call methods, get data from that class?

Thanks
platform.py
mainclass.py
0
Hi

If I'd like to make a platform game like Contra,

Are there any acceptably decent animated GIF's somewhere out there for me to choose from?
or some adequate transparent ones for me to do alpha coding with? Something close to a predator, an alien, Arnold, terminator, Robocop, scorpion, rancor! tauntaun, ewok gungan

What do most coders use for these place-holders?

Thanks
0
Hi

I finished our colossal collaboration of a network game with a central server, a while ago. I will convert it to python now that I'm shifting to it as well. Is that unadvisable - python might not be optimal for a game server?

I know that MIT had an RTS AI coding contest, before.
There's also ORTS, open rts
There seem to be many similar links on Google.
The MIT contest was geared to a confusing, un-watchable mess of a game, in my opinion.

Do these types of contests have any traction? now? Any of them non-college?
I have many ideas, some non 3D war.
Thanks
0
Hi

I have had my cards hacked enough times to get really annoyed.
I receive balance sheets with card purchases in Rhode Island, or California, and I live in NC !

I paid with Paypal today, which means, my card was never exposed to direct hackers, I think.
Is that correct? VISA always refunds these fraudulent charges ( >$5,000, total, one time, over a few months)
Do hackers steal my paypal login?
Must I always do (card) online payments with paypal? I'm sick of cancelling cards for safety's sake
Thanks
0
Hi

I have my pygame ready and I'm going to start being a coding-personal-trainer teacher for nearby kids.
No doubt, there are many books for me to gain wisdom on how to proceed? Or, is there a good web-site done?
I asked some previous questions in this sphere, but some additional references/syllabus would be useful.
Thanks
0
Hi
I am nearly ready to begin my foray into games in Python. However, is it more advisable to incorporate a JFrame for the game Window? Is Python GUI up to speed?

Thanks
0
Upgrade your Question Security!
LVL 11
Upgrade your Question Security!

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

Hi
All of a sudden, my battle.net is saying

Your connection will be run through a proxy server because of your network setup"

This is new.
Things seem to be hinky. I cant join or create games (that are seen by others).
I cant think of anything I've changed
What might be causing this?
Thanks
0
We have an 11 year old that is very creative and loves doing things on the computer. At a book fair earlier in the year, he chose to get a book on building websites and really enjoyed it. I'm toying with the idea of getting him a coding program for Christmas and wondered if anyone had suggestions for that age. He likes video games as well so I really think he'd like one that allows him to build and play his own game, if that helps.

Thanks.
0
Hi
I need to be able to install Pygame in Pycharm (4.0.5), but it seems Pycharm has come out with newer versions.
Pygame is no longer in 2.9, but 3.3

One example on Youtube suggested I re- install Python? Will this all automatically link up in pyCharm?
Last time it tried, the console installation instructions didn't seem to affect the behavior in pycharm.

What is the best way to get it working in Pycharm?
Thanks
0
A question about making puzzles for bridges (also known as Hashiwokakero or Hashi).  https://en.wikipedia.org/wiki/Hashiwokakero

Is there an algorithm to generate a puzzle given the size of grid?  Please provide algorithm or link to one if it exists.
0
Hi
I have addressed this a little already.
I have completed my audio/video upload site. I am not going to go public, because of the $500 / hr legal fees of all the attorneys I'll need to pay to draft up TOS and copyright needs for users and their music, and safety for my site being the forum for violations.

So, the months of questions there have come full circle, Thanks

But, I have seen comments here and there on the net about nobodies getting serious exposure for their music. What is the best way to do this for my music? My site was not for my music, but anybody's uploads..

My music is not recorded, but could be soon. I don't have a band. I'm quite happy being a loner.
I get the impression that there are forums out there for young people to listen to new music coming out, where artists can add their music to a queue of sorts for playback to listeners?
Are there real ways to advance new music?

Thanks
0
I have a samsung galaxy note 3 32GB Internal 64GB sd card

I format the sd card for portable storage and all is ok I see my 32GB internal and the 64GB sd.

If I format the sd card to merge with the inetrnal storage it shows:

Total space available; 90GB

Internal 32 GB (It should say 90GB right)

sd card shows 64GB but unavailable for file manager (which is ok)

I connect my android to the PC and it shows only internal (which is ok) but it only shows 32 GB of space.

My idea was that if formatted as internal the available sorage would show up as 90GB, so from my PC I cant really know what the actual available space is.

Am I doing somethong wrong? Or that is the way sd card as internal space works? Is there a workaround?
0
Hello Experts!!!

How do you get individual cards out of an image where they are all together (see attached pic)...  Is this the standard way of generating cards, is there a better way?  (Like having individual graphics in a resource file)

I'd like to know the how, the why and the best practices;  References are awesome, experience is awesome (er), lol

Thank you in advance,

Fox
CardSample.png
0
I will be given a set of X/Y points and their corresponding Z values. Z = f(X, Y), but I do not know the function f. The points will be clustered together and I don't expect pathological conditions. The local maximums and minimums will have extra sample points to help make the interpolation better. The goal is to come up with a smooth surface that represents the function f as close as possible.

The analyst providing me with the set of points of known XYZ points will also give me an XY rectangular grid; and at all the intersection points of horizontal and vertical lines, I need to provide a z-value.

One thought I had was to consider a point and look at 4 quadrants, and take the closest point in each quadrant, and using those 4 points or more to try to interpolate. Prefer to be able to use a curved surface to get the results rather than linear planes. One rule is that the final results will match the given XYZ points . The given points are known as anchor points or knots.

I am just looking for something functional. I am not interested in speed.

 I am not allowed to use binaries, so I will have to build from source code in Linux or Windows.

Thanks in advance.
Paul
0
Hi

My latest blog is finished.
It is a musicians' upload blog, with a general theme/topic for discussion, and quarterly contests for a user-made topical video for five or some thousand dollars.

Is this a potential hornet's nest? lots of legal risk ? What are the hornets?

Thanks
0
The new generation of project management tools
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

There are huge amount of different slot machines available online, like in the given list here bettingcasinoslots.com. All of them powered by own random generated algorithm. So I would like to know if there some strategies to play slots? I mean when you are playing for money and you want to make even a little profit and it would be great it the strategy does not include loosing money. Researches and publications are appreciated too.
0
Hello,

As the title states, I am making a simple game program for a introductory Computer science course.  In the game, there are several GContainers which take the form of blackholes slowing boucing around the screen.  There are also several "planets", which are GOvals that are pushed around the screen towards a destination.  I just added some code which should check for a collision between the blackholes and the planets.  However, according to a println command I put in, the blackholes and the planets are constantly overlapping, which I don't think is true.  

This is the code to check for collision between the black holes and the planets:

 
 public void checkBlackholeCollision(BlackholeGame blackhole, GOval planet){
        double distance = getDistanceOfBlackholeAndPlanet(blackhole, planet);
        double overlapped = (SIZE/2 +(blackhole.getWidth()/2) - distance);
        if (overlapped>0) {
            gameIsLost = true; 
        }
    }

Open in new window


This the code to get the distance between the two:

private double getDistanceOfBlackholeAndPlanet(BlackholeGame blackhole, GOval planet){
        return GMath.distance(blackhole.getX(), blackhole.getY(), planet.getX() + SIZE/2, planet.getY() + SIZE/2);
    }

Open in new window


This is the code for the blackhole's general collision:

public void checkCollision(BlackholeGame blackhole) {
        double x = blackhole.getX();
        double y = blackhole.getY();
        double size = blackhole.getWidth();
  

Open in new window

0
Hi

I have created a media upload website.
Anyway, I'm concerned that my dear users might upload songs or videos, only to have them stolen by renegades and losers
I applied for trademark of my website name today on legalzoom.
I once heard that having a provable version of art, eg, a recording/book in a mailing, is as good as copyright.
Can I have a text field for my artist 'Megatrons' to say for their song 'home invasion'
" Copyright @2017 Megatrons"
and that have meaning, legally?
Thanks
What should I consider?
0
Hi
In my music, opinion blog, that supports user uploads, with Adsense income,
can I say that my users may only enter one of my contests if they are "considerably active and respected members of the blog?"
Does Google let publishers go who require bloggers to participate?

Thanks
0
Hi

I'm going to file my blog trademark again. Lame, but I neglected to do the final step one time, because I was so annoyed with the seeming endless ( unstoppable) billings. It felt like a Nigerian scam. Truly, I was suspicious and concerned.

Anyway, forget about it. I'm going to file again and there are 3 options. Does it matter which one I use? - for a blog name trademark? Also, would a logo filing be done later? The costs are complicated?  What will they be?

This is the initial page - notice the feeling-to-be-never-ending fees,      here

Thanks
0
Hi
To test my media website, I'd like to use music video mp4's and mp3's. ( as many as possible)
Maybe film students keep them somewhere, to compare? They make tons. K-12 Schoolers?

I can't use No Doubt, Nirvana, Pearl Jam, Ed Sheeran, Kevin Federline  and Beastie Boys, New Kids, apparently.

Google only finds converters and streams. Aren't they more trouble than it's worth?

What would you say?

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

Vendor Experts

Gil FeldmanMonday Learn more about Monday