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 think my .io game might benefit from the main landing page being a blog / sign-in
before playing, so my gamers need an account to participate in contests that I'm anticipating.
Players will be able to practice, no matter what.
Will I be able to plug a Wordpress account / logins/ features into my game?
The account will be needed for participant info. I can also pop in ads on the blog aspect.

Would Wordpress be okay for this?

Thanks
0
Become a Certified Penetration Testing Engineer
LVL 13
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Hi
I'm anticipating decisions ahead for my .io game, both phone and browser.

I think most .io games do in-game purchases, but I'd like to know if that is avoidable, and still practical. One of the marquee .io game creators said he was averse to micro-transactions. I'm inclined to agree. A game like slither only does personalized graphics? Games like slither just crank it in. Let's discuss chess, as an example, for my game and situation. It isn't chess, but slightly similar in play speed, etc. How could that be monetized, most effectively? For my game and its circumstances, I am expecting good traffic. - certainly not just my friends and family.
I thought of a video ad popping up after each 8 moves, or something. As hideously annoying as that might be, what are my options? On a phone, the board need only occupy the top half, or so, leaving good room for ads below?

Any suggestions?

Thanks
0
Hi
I am having no trouble generating legal moves on the board state in my experimental Java chess server.

I'd like to know how best to send the legal moves list byte[] to each client.
My move struct constructor looks like this:
public ChessMove (int _x1, int _y1, int _x2, int _y2, char chPiece) {  
              //chess characters are upper-case white, lower-case black, RNBQKBNR and rnbqkbnr,  PPPPP and ppppp
		x1=_x1;
		y1=_y1;
		x2=_x2;
		y2=_y2;
		pieceChar=chPiece;

Open in new window


I can convert integers to 2 bytes, no problem...
cast integer to (byte) and then
byte SecondByte(int x) {
			return (byte) ((x & 0x0000ff00) >> 8);
		}

Open in new window

and then [] to int:
static int intFromBytes(byte firstByte, byte secondByte) {
			if ((secondByte&0x80)==128) {
				//negative number
				return (int) ( (firstByte&0x000000ff)| ((secondByte&0x000000ff) << 8) | 0xffff0000 );
			} else {
				//Positive number
				return (int) ( (firstByte&0x000000ff)| ((secondByte&0x000000ff) << 8) );
				}
		}

Open in new window

I'm not worried about cheating, because the client sends back the index of the move in the move array list they want to play to the server.

What is the most efficient way to encode my list of legal moves for each client on the client-server messaging?
Do I not need to bother, and have the move generator on the client as well?
Cheating, altering data in memory won't help/matter. If they don't send back a decent Legal move's index to the server, it's their fault!
There are many ways to approach this, but I'd like "approval." My RTS server happened, and I'm certain this plan sounds good.
?

Thanks
0
Hi
I was advised to use React Native for the graphics aspect of my io game.
I'm getting it up. Is that the only option, say if I wanted to do checkers, or chess, or Mario Bros, Dig Dug?

Thanks
0
Hi
I've been flicking my eyes on this agar clone server, and it is just a simple, in my opinion, TCP iostream / javascript game.
I'm glad that the agario game state / universe is centralized.

Do you agree? . . . here

Where do you suspect they house their server?

Can there be any downsides to making my game-server in Java, not .js? I have my first game ideas ready to be cranked.

Thanks
0
Hi
I'm trying to install react-native into my Atom for a super game module.
If I use this page here,
I don't know how to install the packages with npm, at the quick start section
Must I be in a  specific directory in my terminal (it is the OS terminal, not some special Atom terminal?) Is there a library system?
Must I obtain those files from somewhere? Are they known to the installer?

Thanks
0
Hi
If I make my game server in Java, with TCP/IP HELO, START and in-game messages, game runs in browser, javascript to my server,
what can I expect as the worst from the unavoidable hackers and miscreants? Floods..
DSS attacks. Are they detectable? Stoppable? Google suggested they are stoppable. I will be using a Godaddy professional private server.
Floods will be a certainty if my game escalates. It would  suck, because there will be prizes in contention.
Do Blizzard and Microsoft weed these out? Is this how the old disconnect-hacks worked?

Thanks
0
Hi
i) Many of you know that I am working on getting my phone game IDE setup working. I have my first potentially very good ideas to play with/test.
I received excellent advice to make the game in Java first to know exactly what I'm trying to do, so I'm ready. It's working in a Javax JFrame. (thanks a lot - got my mind right)
I have been studying Javascript, some iOS, a look at some c# pages, Xcode pages..

ii) I am not getting it done as quickly as I hoped..I have so many questions every minute, u know how it goes..
Do you think it could be a plan to ask a Freelancer to completely help set me up, maybe over the phone? Ability to make games on any, every device, browser? I prefer back and forth banter, not sporadic articles. too much waiting. I need some first downs.
How many languages, SDK's and devices are there to accommodate me in this situation, have to learn? What did the agar.io or slither.io dudes do? Javascript!? How did they cover everything, all devices!? iPhones need special features. What else?  J2ME is a bust, so I need a new angle. The agar.io dudes made an iPhone app! Also Android App? Windows phone?

iii) I have access to one of Godaddy's private professional servers. - got major repeat customer credits for an appealing price for 10 years in. I hope it will serve the potential max players well. non VPN (can be clogged) Can I expect this to serve my players as well as agar.io and slither.io  do?

Freelancer a plan?
Thanks
0
Hi
I'm surprised this JFrame didn't work, an I wonder why. It doesn't draw any blue. What might I have done wrong?

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.*;


public class Merrywin extends Thread{
	
	JFrame jFrame;

	public Merrywin() {
		
		
		
		start();
	}
		
		

		
		
		
	

	public void run() {

		System.out.println("Hi");
		jFrame = new JFrame();   
		jFrame.setBounds(10, 0, 1125, 2436);  
		jFrame.setVisible(true);
		
		Graphics G = jFrame.getGraphics();
		G.setColor(Color.BLUE);
		G.fillRect(0, 0, 1000, 2000);
			
				

	}
		
		
	public static void main(String[] args) {
		System.out.println("Maine");

			Merrywin m = new Merrywin();

	}

}

Open in new window

0
Hi

I'd like to get my first Javascript test game onto my phone.

Do they expect .js files or HTML5?

How do I upload it - comple it to an app? Will it work on all devices? How do I accommodate different pixel dimensions in my code? - for identical gameplay on all devices, is there a stretch / affine transform?
Thanks
0
Announcing the Winners!
LVL 13
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

Hi
I think for my io game in javascript, it would help my game object layout if I knew if the game was being played on a phone or desktop.
What is the best way to do this?
Also. . . Clear the canvas for a game loop efficiently? Is Javascript rendering super-fast?
...and then place my game objects appropriately?

Thanks
0
Hi
If I am going to focus on phone / io games, I'd like to know about security issues like hacking, which is unavoidable w online games. I created a successful Authoritative Java RTS server. It could not be hacked. Slither.io has all game data local..  Are people messing around with slither, etc?

Surely, if they start my game from an io site - or on my business hosting private server, it is my official client code. - it is not their hack. Now they can hack my game variables, but can they simply make a map hack? Must I still have an authoritative server? I read that some games are just clients - update each other on all activity, no in-game server, just clients.

Is hacking something I ned to be vigilant about, yet?

Will it ever be?
Thanks
0
Hi
For a phone io game,
I'd like to be able to click/touch one part of a line, and move it.
If the HTML sends in the size of the game-window, does a phone luncher pass in its size?  obviously. Is there a minimum size?
Thanks.
Are touches simply like mouse clicks? No special module?
0
Hi

What do you think of me having in my game, a character with a sword, in a black cloth suit, just like Anakin on Mustafar, but he is called Pepe the Swindler? with a colorful sword?
How could Disney / LFilm kill me? I know them, they'd murder me. You can not copyright a story. How about a giant droid thing slightly similar to  general grievous? if I called him unpleasant robot.
There is fair use for situations like this, but does Disney / LF care?

Thanks
0
Hi
My other networking question is abandoned. I think it has become a snail's nest, so I'll simplify it...pithy...

How is agar.io's networking perfectly natural, with no lag? You can turn your circle with a mouse click or finger tap, and the response never ever stalls.
Some dude has a javascript agar.io networking tutorial out there, below , which is v good, if you want to make a LAN game or ONLY localhost game, pure TCP/IP, but it isn't optimized for the big bad world, ..distance.


There is no UDP w a TCP safety net. How exactly did they make agario perfectly? Browsers eliminate UDP. I have a good Websockets link below that I like..
I am completely comfortable making Java game servers, btw
BTW, That javascript tutorial is here


I like this page I found for WebSocket aspects here
Thanks
0
Hi.
I think my <script> learning curve would be most boosted right now, if I could see a .js /htm that allows a player to move a circle /square/dodecahedron / pterodactyl around the screen with a finger.

Also, I see some coders do their scripting inside html and <script> tags and others in .js
Is it inconsequential? or simply a preference.

Thanks
0
Hi,

I've been fine-tuning my javascript for a little while, and this page below has helped me most understand everything needed for gaming. . .
but, it doesnt do networking, which I'd like to discuss...
Is slither.io / wings.io an MMO, or computer enemies? They have what seems to be a score table with different names, but I question whether they are people or not, since there seem to be so many?
Is it datagrams over TCP?  Many connected servers all over the world?
Is a game like slither.io pure Javascript?

That Javascript game overview is . . .

here

Thanks
0
Hi
I'm going to start making Javascript games (thanks, ye legends who helped me before! - I have my server being written in Java)

For my game client on phone, etc in Javascript,
Is there a good page for me to see how a JS game is best laid out, handlers, data-structures, resource loading, game loop,  a road map? I may have
seen a YT for it, but can't re-find it.

Thanks
0
Hi,
if I make a Javascript game, most I see on my phone don't do sound.
Is that the norm? Avoiding sound? I couldn't see .wav or .mp3 in their code
One time ago my dad had game swirling sounds playing loud from his laptop, and the cats became very upset.

Thanks
0
CompTIA Cloud+
LVL 13
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Hi  
I have Mac Cleanup Pro in my tray and it claims to have 1020 issues to resolve on my MacBook Pro, 7.7 Gb recoverable..
Is this a trustworthy app, or a Nigerian backdoor credit card sniffing program? 7.7 is nothing too concerning, but it makes me wonder..

What should I know?

Thanks
0
Hi
I'm trying to get javascript to run in Atom Editor,
bu there is no compile or run button / menu Item

I have the following packages installed... (83 !) of them.
script 3.18.1
script-runner 2.3.1

dozens of others to get this one working
Should there be a compile/run menu item / button?
Thanks
0
Hi

I've already angered some experts w legal questions :D - not - I know I shouldn't hope for such binding certainty w, basically, friends!
If I put in a game, a character, npc called Brad Pitt, I'd get in trouble, but how strict are they on similar names,

like, Bradd McPitt, or Ranakin Slywalker? How does a similar character look factor. Space Quest III had the Vader v Obi-Wan duel in their hangar, briefly. I'm sure Sierra got legal permission. I think I saw that if you make a character that is in all black, helmet and laser sword, that is a no-no. What about a dead ringer for an Alien? (xenomorph)
What should I know!?
Thanks
0
Hi,

So, I'm going to use Javascript for my game client. I can do the server in Java, thanks to local legends. I need a listener waiting for user directives on the game window and sending an activity packet for each frame.
It's going to be a platform style multiplayer.
I'm going to treat it like an RTS, UDP over TCP, for fast delivery of info in UDP packets over reliable TCP sends.
Does Javascript block for GameWindow activity? How is it queried?

What should I know? I got it done in Java be4 w Threads
Thanks
0
Hi
I'm curious..

I have made a few network game projects w help of sporadic legends on this site.

Now, a Python network game.

It seems Pygame can do adequate 2D gaming, side scroller / maze etc
How about a networking game client?
It looks like all the usual abilities are available.
I might make my server in Java, but my game clients in Python?

A plan?
Thanks
0
Hi
My last Disney question concerned their ruthlessness protecting their IP.
This one concerns how seriously they take criticism.
They sued an elderly couple in Florida for $1000,000 for using an image of Mickey on their kindergarten wall.

Obviously, if they were super sensitive about criticism, Youtube would be buried in lawsuits concerning fan mega-criticism of Star Wars.
Would they be as ruthless concerning an inconspicuous site criticizing their Star wars decisions and plans?
My dad said it's just free-speech and they cant do anything (no IP infringement) I won't use any images on the site.
Thanks
1

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
>