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 asked a similar question, posing this possibility, but now I'm committed. . a local mom interested . .
In 1984, when I was 5, my dad showed me some code and got me started making games on our Apple IIe, and 16 years later, I sat in an Xbox office (coding)

I am going to teach local youths how to code, with private lessons. Can anyone suggest an example w/ page of some seriously cool Python code to excite a kid today. Things are v. different now. Paratrooper or King's Quest was enough for me back then, but now, I'd like to be able to show a student's mom that something like *this* is possible. - tho it took me a while, I was making decent stuff in 3rd grade. Turbo Pascal hit the scene soon.
I know Python doesn't have DirectX, or even AWT (well, it does in Jython) but what might be a decent bet to be able to show parents and child what Python can do, just like my brother and I started on textual maze games in Apple Basic, and 320x200 packman clones, PC soon.
I know there's a long learning time needed, but for starting, are there any suggestions w/ page? I could also show my chess game JFrame, with invulnerable AI. (makes random legal moves)
I'd prefer Java or C++, of course, but that's not very practical now. Python is the way.
Thanks
1
We have an app that works great, but there is a minor cosmetic issue I would like to resolve.

The app's primary job is to collect information from a user (fill out a fancy form) and send it to a centralized server. Sort of like a wizard.

At each step, we execute a loop to move all the panels off the screen by setting "left" to 2000.

Then, we set the left value of the panel for the current step to 20 (it's actually calculated based on the screen resolution, but let's say "20" for now).

The problem is: the screen flashes when we cycle through the forms. It's minor, and only for a split second, but you can see it, and I think it's distracting.

Part of the issue (I think) is that the background image for the form is 1920x1080, and we have set the panels background color to transparent. Thus, it's painting the screen and calculating transparency.

Is there a better way to do this?
0
I am trying to program an MMRPG so it can be played on Xbox One and Play Station 4 and I do not know the coding. The game is an online interactive game, and multiple components will need to be connected via bluetooth to the game. Does anyone know how to program the drive in order to do this?
0
Hi
My Java chess engine is going along well.
I print the board on a JFrame with graphics I store in my web-space, like this here

My .java board object is an 8x8 of char[][] and my

      public move[] getWhiteMoves() {
and
      public move[] getBlackMoves() {

methods are coming along very nicely

My JFrame display is perfect.

Because I intend to show my progress to my old profs at university and others, I'm guessing it should be in Python?
How best can I use, include, emulate my JFrame game-window? Must Jython do that?

Thanks
0
I have students who wants to learn to make apps with UNITY, which I don't have any experience with it. Just want to know the quickest way to proceed. I guess we would like books for absolute beginners with no computer programming experience and books for the extensively experienced and yet want to start play with UNITY.

Thanks.
0
Hi
I have a rather simple object for my chess board, for my invulnerable chess AI system.
In portions when I'm calculating every possible move, it needs to be able to make a temporary, perfect clone of the board with no floating objects or lost primitives.

Will a .clone() of this board object make a perfect, safe copy?

My piece object  contains the type and color:


public class DRpiece {
	
	char pieceColor; // b or w
	char pieceType; // k n b q k b n r p
	
	public DRpiece(char type, char color) {
		
		pieceColor=color;
		pieceType=type;
		
	}

}

Open in new window


My board object is an 8x8 of pieces, where I use null for an empty square.

public class DRboard {
	
	DRpiece[][] board;

	public DRboard() {
		
		board = new DRpiece[8][8];
.
.

Open in new window


Will clone understand the way the objects inside link together? and replicate the inner object structuring perfectly?
Thanks
0
Hello,

A while back, I installed an addon for World of Warcraft (WoW) which causes an audio alert to occur each time my character casts a Critical Strike. The addon is called CritSound and I downloaded it from here.

The addon works as expected but I don't like the default sound(s) -- which are human voice announcements. Instead  I'd like it to produce simple audio signals such as a bong or ding, etc. The addon does not come with alternate sound options but the author mentions how to add them in the description on the download page which I'm including here:

——————————————————————————————
plays a sound when you perform a critical hit or healing.
includes your physical damage ,spell damage, ranged damage, healing and your damage shield.
CritSound includes three mode:
1.single mode: always plays the first sound in the list.
2.sequence mode: plays the sounds in the list one by one when you perform a critical hit continually.
3.random mode: plays the sounds in the list randomly.
Use /cs or /critsound to open the controlpanel.
if you use the sequence mode, you can modify the aging time for collecting your critical hits.
you can edit CritSound.lua to delete or add sounds.
for example, in the line 5 to 11:
spell = {
            "CriticalDamage.ogg",    --first time
            "Dominating.ogg",        --second time
            "Unstoppable.ogg",        --etc.
           
0
I need to shift from an orthogonal & normalized coordinate system to another
Both coordinate systems are illustrated in a picturetwo coordinates systemsX axis = blue
Y axis = green
Z axis = red

Because it has to be inserted in an existing code I need a 3x3 matrix to shift from coordinates "1" on the right of the picture to coordinates "2" on the left of the picture.
The only change is the Z axis direction (from "down" to "up")
I've found an uneasy solution with a lot of transform operations
Could someone give me a simple 3x3 matrix to do that ?
Regards
0
Hi

I'd like to have confirmation of my tech stock moves - as far as whether I understand what will happen with my money.
If I buy about 1600 Intel (  INTC  ) shares for 50k , I will receive earnings payments every 3 months in the amount of 1600 * dollar earnings achieved by Intel, their EPS, earnings, which is a dollar amount, currently single digit dollars.

Thanks
0
Hi

I remember the good old days of debugging with the aid of BEEP in basic if my code went into the wrong or correct place!

printf'ing, or println'ing when my chess engine finds a check is okay, but a BEEP would be super.
can I put a .wav, .mp3 sound in my web-space to be loaded in for playback?

Thanks
0
Hi
I have my Java RTS game window working. It is an 800 x 800 pixel JFrame with moving external .GIF unit animations.

Is this doable smoothly in Python, also? - colored background, unit selection, right-clicking to direct movement? key pressing to signal movement, activity type?

Do coders do their Python coding in IDLE, or an IDE? I've tried pyCharm demo
How would I set up Python to include my game's JFrame in its code. Jython? In all fairness, is this not considered a cheap trick?
Thanks
0
If you look at my "generateGameBoard(  )" function, it should be assigning either one PNG or the other, depending on the modulus logic I've put in place.

What ends-up happening is the last image assigned becomes the one that ALL of the canvas elements are using.

I'm new to animation, CreatgeJS and also new to  JavaScript arrays and could use some help getting this fixed so it works as intended.  

Thank you!


JavaScript:
// for future use:  var initGamePieces = {};

// for future use:  initGamePieces["00"] = "powersourceRed.png";


$(document).ready(function() {

    function generateGameBoard() {
        var app = "";
        for (var y = 0; y < 10; y++) {
            for (var x = 0; x < 10; x++) {
                //app += "<canvas id='c' class='canvas' spritesrc='images/wall.png' height='64' width='64'></canvas>";

                //app += "<div id='" + x + y + "' class='gamepiece'><canvas id='canvas1' class='canvas' spritesrc='../images/destroyerRed.png' height='64' width='64'></canvas></div>";

                //app += "<canvas id='" + y + x + "' class='canvas' spriteSrc='images/destroyerRed.png' height='64' width='64'></canvas>";

                if (x % 2 === 0) {
                    app += "<canvas id='" + y + x + "' class='canvas' spriteSrc='images/destroyerRed.png' height='64' width='64'></canvas>";
                } else {
                    app += "<canvas id='" + y + x + "' class='canvas' spriteSrc='images/engineerBlue.png' height='64' 

Open in new window

0
I am not sure if this is a good place for this question but I thought I would ask.  Some parents in the community are putting together an afterschool program for grade schoolers to learn different things such as programming, robotics and such.  We want to set up Minecraft on about 10 to 12 ipads (they were donated from a local business :D)

Can anyone give me an idea if 100mbps business internet hookup will handle 10-12 kids doing Minecraft at the same time?  Is it too much, too little?

Thanks
0
What kind of programming codes and /or software do you suggest to make 3D buildings in the perspective of first person in an online massive multiplayer game?
1
I am creating a dodge ball game for all apple iphones and androids. What kinds of code would you recommend using.
0
Hi,
I am trying below challenge

http://codingbat.com/prob/p178728

I tried as  below
public int teenSum(int a, int b) {
int sum =a+b;

if(a==13||a==13||a==14||a==15||a==16||a==17||a==18||a==19||b==13||b==14||b==15||b==16||b==17||b==18||b==19)

{
return 19;
}


return a+b;
  
}

Open in new window


I am getting below result


Expected      Run            
teenSum(3, 4) → 7      7      OK         
teenSum(10, 13) → 19      19      OK         
teenSum(13, 2) → 19      19      OK         
teenSum(3, 19) → 19      19      OK         
teenSum(13, 13) → 19      19      OK         
teenSum(10, 10) → 20      20      OK         
teenSum(6, 14) → 19      19      OK         
teenSum(15, 2) → 19      19      OK         
teenSum(19, 19) → 19      19      OK         
teenSum(19, 20) → 19      19      OK         
teenSum(2, 18) → 19      19      OK         
teenSum(12, 4) → 16      16      OK         
teenSum(2, 20) → 22      22      OK         
teenSum(2, 17) → 19      19      OK         
teenSum(2, 16) → 19      19      OK         
teenSum(6, 7) → 13      13      OK         
other tests
OK         
            
          



how to  improve my approach and design of this challenge. How do i make a graphical venn or some other relevant diagram to design it before writing single line of code to decide best strategy?
 Please advise
0
Hi,
I am trying below challenge

http://codingbat.com/prob/p193613      

I tried as  below
public boolean nearTen(int num) {

  if(num%10==1||num%10==2){
  
  return true;
  }
  
  else
  return false;

  
}

Open in new window


I am getting below result



Expected      Run            
nearTen(12) → true      true      OK         
nearTen(17) → false      false      OK         
nearTen(19) → true      false      X         
nearTen(31) → true      true      OK         
nearTen(6) → false      false      OK         
nearTen(10) → true      false      X         
nearTen(11) → true      true      OK         
nearTen(21) → true      true      OK         
nearTen(22) → true      true      OK         
nearTen(23) → false      false      OK         
nearTen(54) → false      false      OK         
nearTen(155) → false      false      OK         
nearTen(158) → true      false      X         
nearTen(3) → false      false      OK         
nearTen(1) → true      true      OK         
other tests
X         
          
            
          



how to fix that and improve my approach and design of this challenge. How do i make a graphical venn or some other relevant diagram to design it before writing single line of code to decide best strategy?
 Please advise
0
Hi,
I am trying below challenge


http://codingbat.com/prob/p159612

I tried as  below
public boolean old35(int n) {

if(n%3==0||n%5==0){
return true;
}
else
return false;
  
}

Open in new window


I am getting below result
Expected      Run            
old35(3) → true      true      OK         
old35(10) → true      true      OK         
old35(15) → false      true      X         
old35(5) → true      true      OK         
old35(9) → true      true      OK         
old35(8) → false      false      OK         
old35(7) → false      false      OK         
old35(6) → true      true      OK         
old35(17) → false      false      OK         
old35(18) → true      true      OK         
old35(29) → false      false      OK         
old35(20) → true      true      OK         
old35(21) → true      true      OK         
old35(22) → false      false      OK         
old35(45) → false      true      X         
old35(99) → true      true      OK         
other tests
OK         


Not sure how to eliminate if both case.
how to fix that and improve my approach and design of this challenge. How do i make a graphical venn or ascii diagram to design it before writing single line of code to decide best strategy?
 Please advise
0
Hi,
I am trying below challenge


http://codingbat.com/prob/p118290

I tried as  below
public boolean more20(int n) {
  if((n%20==1||n%20==2)){
  return true;
  }
  return false;
}

Open in new window


I am getting below result

Expected      Run            
more20(20) → false      false      OK         
more20(21) → true      true      OK         
more20(22) → true      true      OK         
more20(23) → false      false      OK         
more20(25) → false      false      OK         
more20(30) → false      false      OK         
more20(31) → false      false      OK         
more20(59) → false      false      OK         
more20(60) → false      false      OK         
more20(61) → true      true      OK         
more20(62) → true      true      OK         
more20(1020) → false      false      OK         
more20(1021) → true      true      OK         
more20(1000) → false      false      OK         
more20(1001) → true      true      OK         
more20(50) → false      false      OK         
more20(55) → false      false      OK         
more20(40) → false      false      OK         
more20(41) → true      true      OK         
more20(39) → false      false      OK         
more20(42) → true      true      OK         
other tests
OK         


how to fix that and improve my approach and design of this challenge. Not sure on how to use mod method
How do I make a graphical venn or ascii diagram to design it before writing single line of

code to decide best strategy?
 Please advise
0
Hi
Chess project...planning...

From within my main Thread's run() method game-loop, I need to call a method from another class, but I don't want that method to be a  hazard - causing a wait.
Will that function call be included in the calling class's Threading ? I have a main class with a Thread that waits for a move from each player, be they human or AI. It will wait for a white move, then black move . . loop

Does a Threaded loop add all workflow called from the run() of the Thread to the Threading?

Thanks
0
I am trying to remember the name of an old mid 1990's computer app/game that usually came bundled with most new computer purchases back then running a 286 AT processor and probably a 20mb hdd ... LOL.

The app/game was very graphical for its time and kind of like a mechanical engineering program that contained tons of gadgets, wheels, shapes and various other components that you could build stuff with.  Almost like an electronic Lego.  Kids used to love this game and we were talking about it a few days ago.  I just can't seem to remember the name ... Any help will be appreciated.

Thanks,

ET
0
Hi
With my RTS's client Java class receiving game state messages for the RTS game state view,
I have primitive jpg drawImage's and drawLine combined for the window.
If I send the game-state object in native code to a proper, professional looking full-screen renderer for each operating system, will it be indistinguishable from Blizzard and Microsoft, if I do first rate graphics?
Is it a seamless substitution?

Thanks
0
- What is the process to start developing games for the PS 4?

- What is the software tool that need to develop game in PS 4?
0
Hi

I accidentally submitted an entry to daft kings.com NFL,
but when I tried another one, I saw a must live in Arizona, Montana, etc
Is this only for residents of gambling-allowed states?
I live in North Carolina.
Thanks
0
Hi

On my road trip, in the car, I want to work on my invulnerable chess engine, (I'll move it from my PC to my Macbook)
but my chess piece .png files are on my web-space.

How can I change a URL object to be a local file, instead?

Passing the file's location into the URL constructor doesn't work, like some pages suggested.
What actually works, without deprecated solutions?

I have working..
URL url = new URL(" http://mydomain/graphicsFile.png");
pieceImages[0] = tk.createImage(url);

Open in new window


How do I do the same with a local file on a MacBook?

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
>