Click here to Skip to main content
15,892,927 members
Everything / Game Development

Game Development

game

Great Reads

by Marcelo Ricardo de Oliveira
A shoot'n'up HTML5 game made with Phaser game framework
by Adam David Hill
All the juicy tricks and scandalous shortcuts which helped us ship our competition game on time
by CMalcheski
Thinking outside the box can result in critical performance gains
by Petar Brkusanin
An example of how Decorator, Dependency Injection, and Composition Root patterns can be used to extend the base game functionality.

Latest Articles

by EgorYusov
This article introduces Diligent Engine, a modern cross-platform graphics API abstraction library and rendering framework
by honey the codewitch
Display automated (optionally controllable) Tetris on an LCD or Neopixel panel
by Member 10912276
How to control game elements based on predefined conditions
by Jo_vb.net
This article and the demo are about getting started using my Schafkopf_OOP VB.NET project.

All Articles

Sort by Updated

Game Development 

1 Jul 2010 by #realJSOP
Quick Answers is for asking programming questions about code you're hacving a problem with, and is NOT a forum for diuscussion about projects you'd like to build. There's probably an appropriate forum on this site for this kind of thing, but Quick Answers is NOT it.
14 Jul 2010 by #realJSOP
My question back to you is, why can't you harvest the links yourself? Coming here to ask us to google *for* you is pretty much the most idiotic thing I've witnessed here on CodeProject.
4 Jan 2011 by #realJSOP
Part of being a programmer is being able to analyze the problem, and then design and implement the solution. If you ask someone else what *they* would do, then it becomes that person's solution instead of yours. How are going to learn from doing what someone else would do?Lastly, you should...
10 Jan 2011 by #realJSOP
To determine the elapsed time, create two DateTime variables - one called started, and called stopped. When the players starts to play, set the started datetime with DateTime.Now, and when a collision occurs, set the stopped datetime.Since you're only displaying time as it passes,...
21 Dec 2011 by #realJSOP
So, let me get this straight - you're trying to store an image into an array of integers...Well, there's your problem...One final observation, you're putting 16 values into a 15-element array.
22 Dec 2011 by #realJSOP
If it were me, I would let the clients push their own updates and pull other client updates on a regular basis. That makes the server nothing more than a glorified data clearinghouse. All it does is listen for client connections, and then the clients drive the comm session - not the server.
4 Nov 2012 by #realJSOP
My Anagrams game ported to WPF.
17 Jul 2022 by 0x01AA
See also the comments to the question. The problem is, that you evaluate with the variables player and computer (which hold the strings'Paper', 'Stone', 'Sissor') instead of no and pla.
5 Jun 2014 by _Asif_
You need to have a deep understanding of PE EXE format. Check below link might lead you to a direction. One of the idea could be to duplicate the original executable file and inject your code/data in the newly created file. Check below linkInject your code to a Portable Executable...
14 Mar 2015 by _Maxxx_
If point(0) is at (x,y)then it forms a triangle with points(x,y) , (x, y+n) , (x + SQRT(n2 - (n/2)2) , y + (n/2))where n is the length of side of the triangle - which is N / 3 where N is the hexagon side length.now you have the coordinates of triangle (0,1,5) every other triangle...
20 Mar 2012 by Abbath1349
Hello. Can u say me alhoritms for find mate, stalemate and check in chess?
7 Sep 2012 by Abed AlSayed
Hi, I want to make an internet (High speed) game, I don't know what is it (it maybe chess, billiards, poker, yugi dueling...) I don't have a problem with games I can make it but my problem that I don't have a server to make this online multiplayer game, is there a way to make it without having a...
14 Jul 2010 by Abhinav S
A search engine is your best friend - see here.It is, however, unlikely that your are going to get the entire game's source code for free.
28 Apr 2011 by Abhinav S
This discussion could help.
4 Nov 2012 by Abhinav S
These links might help you get startedhttp://www.jeffblankenburg.com/2010/10/29/31-days-of-windows-phone-day-29-animations/[^]Windows Phone 7 Animations — Alternatives, Performance[^]http://mobile.dzone.com/articles/create-simple-animation-your[^]
28 Feb 2015 by Abhinav S
Some links related to chatting -A TCP/IP Chat Program[^]Chatting Application Using DotNet[^]
24 Jun 2015 by Abhinav S
Just learning basics of C will not be enough for game programming.You will need to cover more advanced topics like using GPU, Image manipulation etc.
6 Nov 2015 by Abhinav S
Customize a progress bar? Tryhttp://www.mkyong.com/android/android-progress-bar-example/[^]Progress Bar using Progress Dialog[^]
19 Dec 2012 by Abhishek Pant
this may help you-How to make Pacman[^]
4 Jan 2011 by AbnormalCreations
I am currently creating a small 2D game engine for my final year project at university, but when ever i think im going in the right direction i get stuck on things like real time rendering in c#, creating and rendering a BSP tree in c# which I have come to find is a difficult task.So i turn my...
23 May 2016 by Abtin Bina
i want to write a program that calculate poker hand ranks for omaha poker and holdem poker i search on github but i can not find a good algorithmi need an algorithm that do it very fastWhat I have tried:i am trying to write a good algorithm but i am worry about the speed of itit...
19 Jun 2012 by Aburik
Learn c++ and OpenGL programming (OpenGL-Open Graphics library, It is just an API which will provide function to draw basic geometries). You will find enormous number of example code and helps in internet.... By the way opengl will not provide windowing and user interface support, there are lot...
3 Dec 2012 by Adam David Hill
Sensor-controlled XNA tunnel game with VR head-tracking.
7 Jan 2013 by Adam David Hill
All the juicy tricks and scandalous shortcuts which helped us ship our competition game on time
30 Jan 2015 by Adrian Ulland
Hello, I just want to make sure you are aware this is a beginners project I am having. I am not using XNA.Framework, DirectX, Unity or any game engines, I am making my own game completely from scratch using windows forms in VB.net, so far its alright- however:Question 1: When you move around...
10 Dec 2022 by Adérito Silva
Introduction to XInputium — a full-featured open-source library for XInput integration in .NET games or applications.
14 Feb 2015 by Afzaal Ahmad Zeeshan
In C#, there are quite a bunch of options for your to develop game applications. XNA framework[^] is one of them. But you might be interested in using the Unity. Unity is a gaming engine, that lets you create cross-platform games in C#. You can develop mobile games (Android, iOS, Windows...
23 May 2015 by Afzaal Ahmad Zeeshan
Since you are talking about C# language development for games, I would suggest that you have a look at the Unity engine. All of the examples in Unity would be (mostly) only C# (unless some script kiddie shows up using C++). Have a look at their showcase for games......
4 Mar 2016 by Afzaal Ahmad Zeeshan
I won't recommend Xamarin as a game development engine, because just to make things work in Xamarin, you are again going to ask for help from another tool.Instead, I would recommend that you get a game development engine. Unreal, Unity or any other, doesn't matter. As long as that framework...
6 Feb 2022 by AGC Retrogaming
I wonder if Commando and/or Street Fighter 1 or other games from thoses boards can be port to CPS1, do you think is possible? What I have tried: those games has base 68K and Z80 code, understanding.
15 Feb 2012 by aidin Tajadod
yes, look at this linkhttp://msdn.microsoft.com/en-us/library/system.codedom.compiler.codedomprovider.aspx[^]or search for "c# codedomprovider" in google.
17 Jul 2022 by Akshat Parmar
print("Let's play Stone(1), Paper(2), Sissors(3)") import random no=random.randint(1,3) if no==1: computer="stone" elif no==2: computer="paper" elif no==3: computer="sissors" print(computer) pla=int(input("It's your chance|1 for...
18 Jul 2013 by Alan N
Yes I can see this jittering effect on my computer too, or to be more accurate I could when a programme was being recorded from the USB digital TV tuner. Now that has stopped and the tuner has been unplugged the timer is quite regular. I was seeing SignalTime intervals of either 15.625ms or...
9 Jan 2013 by Albara Hakami
A Windows Forms application to share a whiteboard with many clients with only one drawer, in a gamy way.
21 Dec 2011 by Albert Holguin
From looking at this:http://dragonfiresdk.wikispaces.com/ImageAdd%28char+*filename%29[^]I can see what you're trying to accomplish, and you're doing it all wrong. I'm thinking you don't know C++? You can't declare and load an array dynamically like that, it doesn't work that way. You...
12 Jan 2017 by Alex Banu
to read input try like this:int op = 0;string in = string.Empty;do{ Console.WriteLine("enter choice"); in = Console.ReadLine();} while (!int.TryParse(in, out op));
8 Nov 2017 by Alex the Green Apple
You could have just used a cSquare array and done: if (cNextMove == cSquare[cNextMove] && cNextMove
2 Apr 2012 by Alexander Alekseyevich Fedoseev
Hello I am looking for books that are for beginners in C sharp game development.Games such as Breakout , Tetris , snake , etc.Looking for examples of breakout.Thank you!~
23 Apr 2011 by Alexander Böcken
A basic way to interpret joystick data received from Raw Input API
14 Nov 2013 by Alexander SchuIze, Felix Herbst, Paul Kirsten
Multi-User game for AIO where players build their own spider's web
28 Feb 2016 by AlexeyYakovlev
This article describes building an Android game with networking support using C#, Xamarin.Android platform and Zyan Communication Framework.
16 Dec 2022 by Alexon 2
Unfortunately, the library does not have a specific function for calculating the odds for multiple player holdings in a pot. However, you can use a combination of the library's functions to calculate the odds. For example, you can use the...
6 Jul 2015 by Android on Intel
This article shows how to analyze and improve the performance of a mobile game and how to optimize graphic resources for a mobile platform, using mTricks Looting Crown as an example.
31 Jul 2015 by Android on Intel
Peach Pellen, CTO of Black Gate Games talks about her background, her work with Black Gate Games, and what projects she’s working on at the moment.
15 Apr 2016 by Android on Intel
Whether it’s a friendly battle, classic gaming strategy, or a fast-paced adventure, these apps will surely set the pace for a positive spring ahead.
15 Apr 2016 by Android on Intel
Whether you are looking for an entire game engine to develop your idea into a game, or an efficient easy-to-use video codec to deploy full motion video, this list will guide you to the best middleware to use while developing your game for Intel® architecture.
15 Apr 2016 by Android on Intel
The discussion in this blog will focus on the 2 Atom x3 SoC SKUs which have already been launched: C3200RK and C3230RK.
25 Mar 2014 by andry fajar
I want to asked, how to automatically create a serial port in unity? there any sample source code.Thanks
10 Dec 2020 by André Marcos (Advisor), LaercioMBR
An overview of the development process of an online platform to facilitate community driven data cataloging and management.
17 Nov 2022 by André Marcos (Advisor), José Cláudio Silva, Victor Lopes
This work proposes the development of a Raycast engine in JavaScript to facilitate the 3D game development.
17 Nov 2022 by André Marcos (Advisor), José Cláudio Silva, Victor Lopes
Unity Engine support for Electronic 2D game development
12 Jan 2017 by Andy Lanng
Quote:BTW sorry for using gotos please dont flame meHa - two days and you already know everyone's biggest bug-bear ;)The toggle here: l1finished = !l1finished; is unnecessary. Just use l1finished = true;In the 'LevelMenu:' segment, you write out the "Level Menu" + 27 clear lines but...
29 Nov 2011 by AngeLsEyes
Module Module1 'This program displays the word Computer as C ------ r and asks the user 'To guess letters. Each time you correctly guess the letter appears in the corresponding position 'Every time you make a mistake loses an opportunity-life. 'The game ends when either guess...
30 Nov 2011 by AngeLsEyes
Module Module1 'This program displays the word Computer as C ------ r and asks the user 'To guess letters. Each time you correctly guess the letter appears in the corresponding position 'Every time you make a mistake loses an opportunity-life. 'The game ends when either guess...
4 Dec 2020 by Aniket945
I am writing a code in C/C++ with Win32API which Automates Chrome(I know there is Selenium and I used that but there is BOT detection available. Just forget about slenium).In my code There are extra features too ie.-If you have multiple Chrome...
10 Aug 2012 by Aniruddha Loya
In this tutorial, I will show you how to use the basic features of HTML5 and get the simple game of Snake up and ready within a couple of hours, even if you are a beginner.
11 Mar 2012 by Aniruddha Loya
Receiving INDEX_SIZE_ERR: DOM Exception 1 in HTML5 drawImage() function - Here is a small trick that helps to make sure that images are loaded before being rendered.
21 Feb 2011 by Anirudh R
anybody know how to go about making a scrollable background as the character sprite moves? Looking for both a 2d side scrolling motion as well as top down motion.
25 May 2020 by AnonymousBosch
For a final project, my group and I are working on a text-based adventure game. The way the game works is users are presented with 3 options. For example: 1. Go to the saloon 2. Go to the general store 3. Go to the sheriff's office The player...
17 Aug 2011 by Anthony Mushrow
Interestingly, No[^]You basically have 2 options though, to do what was already suggested and just record the screen. Or go down the complicated route of hooking into DirectX and OpenGL to capture the rendered frames (which I believe is what Fraps does). I've no idea how you'd do that, and...
14 Apr 2021 by Anurag Gandhi
A group Sudoku game to demonstrate the usage of SignalR in AngularJs application
1 Apr 2018 by apb007
Hi there, I am currently trying to make a sort of io version of call of duty zombies and dying light. So far it is coming along nicely, until i hit this snag. I would like to make 2 modes: 1) an open world where quests can be completed *kinda like dying light ish* 2) a survival map based thing...
29 Jan 2018 by Arav Singhal
An introduction to all the math required to get started on your own 2D physics engine
8 Sep 2012 by Asame Imoni Obiomah
This article is the first toddler step in the development of a framework for the delivery of motion, touch and 3D forms as interactive services locally and over networks.
10 Oct 2016 by Ashley Davis
A look at version control from the game developers perspective
7 Sep 2012 by Ashraff Ali Wahab
You cant create a MMOG or MMORPG without using a Server,but you can create a simple two player game by keeping one of your player as the server.Let me put an idea here.You create a executable which playe one opens to play the game.1. Player 1 starts the game and generates the invitation...
16 Aug 2010 by AspDotNetDev
Why do you need something better than a picturebox? Also, I recommend you use XNA if you're making a graphics intensive game. Using Windows Forms isn't really that great for this type of software. WPF is another option you might consider. It has excellent graphics support. If you don't want to...
16 Aug 2010 by AspDotNetDev
You should read a book on WPF. What language are you using, VB.Net or C#? Assuming C#, you can download Visual C# Express 2010 for free. You can use that to get started creating a WPF application. You would use an Image control for an image. Move the nuts using UI events and animation logic.
25 Jul 2011 by AspDotNetDev
Whenever a portion of your snake goes past 480, subtract 480 from the position (you can also use a mod function to handle this for you). Example:snake.MySnake[i].X = snake.MySnake[i].X % 480;Also, whenever the snake goes less than zero, add 480 (I am not sure how mod works with negative...
17 Mar 2010 by Avi Berger
Your logic isn't right for what it appears you want to do. You are not iterating through the two lists the way that you think you are. Once I started in on your code, I ended up doing a bit more than I intended. You will want to compare what I did with your own and figure out the reason for all...
22 Apr 2011 by Awesomedudei
Hello there , I would like to know how to create an simple Overlay in C# , for example as in Fraps , Mumble , Teamspeak they have an Overlay when you are in a Fullscreen Game.I want to create an overlay but in C# , Iknow they use C++ for this measure but i cannot rebuild my whole program...
9 Feb 2010 by balaji gudipati
hi, i am looking for algorithm to develop chess game. i know depth first search and alpha-beta pruning. i am looking forward to know perfect algorithm to design chess game. so, could anyone help me please. i am not looking for code. i need kinda pseudo code(algorithm)ideas are...
11 Jun 2015 by BD Star
This is a mini project (Tic-Tac-Toe game) for Turbo C / C++ compiler.
7 Dec 2018 by BeardedPC
I'm making a mastermind game (the one where you gotta guess the password and it tells you how many of the codes you got right when you tried). BUUUUUT, I'm doing mine with a single word, and not multiple words or colors example: answer = "this" given = "that" print(str(answer - given) + "/4...
17 Dec 2014 by Bhagat Bir Singh
I wanna develop a game(C# unity 3d) of my own. As my final year project. I am a fresher.Where should i start?What are the requirements for developing a game?Is it possible to develop a game within three months for a single person.Any website, blog, e-book,,,etc...???
12 Jun 2012 by bhagirathimfs
Hi,I am a developer in .NET and am crazy about games. :DI am curious to know about this, " can I develop games for android based cell phones using .NET framework ? ".If Yes, can anybody, please share with me any link giving walkthroughs. And, if No. :| . Please tell me know using...
27 Feb 2012 by BillLange1968
Solution for creating a Leaderboard for a Windows Phone 7 (WP7) XNA game
10 Feb 2014 by BillW33
From the error message it looks like somewhere you have a timeout argument with a negative value. You will have to step through your code to find out exactly where this error is thrown then fix the value of the argument.
28 Oct 2020 by BillWoodruff
The Unity Test Framework package (formerly the “Unity Test Runner”) is a tool that allows you to test your code in both Edit mode and Play mode, and also on target platforms such as Standalone, Android, or iOS . For more information on other...
21 Dec 2021 by biull smith
If such a request has already been asked, please accept my apologies. I looked for samples, read up on the player and monster classes, and player and monster stats on other sites, and nothing appeared to fit with the game's code without...
22 Jul 2011 by Blind.Geek81
I swear I followed this guy's tutorial to the letter; I have no errors in my code. When the window is opened, the player is instructed to press the spacebar in order to start the game, use the arrow keys to move the snake, and get the highest score. The intro label disappears and a piece of food...
25 Jul 2011 by Blind.Geek81
This collision detection code is in my FRM_Snake form. The person who created the tutorial used an integer to serve as a "wall". I'd like to share this with classmates, so my question comes in two parts:A) How would I make the integers (height=480, width=480) act as a "wall" that will kill...
25 Jul 2011 by Blind.Geek81
My timer interval is set to 50 milliseconds; the snake moves quickly and smoothly, but it tends to flicker. I am not sure what would help you most, so here are my drawing methods and one MoveSnake() meethod:public void DrawSnake(Graphics g){ foreach (Rectangle rec in mySnake) {...
29 Aug 2016 by Blind.Geek81
I am creating a Bejeweled game using Emanuele Feronato's awesome prototype; Match 3 Bejeweled HTML5 prototype made with Phaser – detecting combos. I created my own grayscale graphics in Photoshop, made them a little bigger, increased the grid size of the game, and used some code from his HTML5...
14 Mar 2013 by Boudi AlSayed
The data will be just in form of string (TEXT), is there any companies that can help me do it? Or there is a better way? I'm thinking of making a trading card game...
1 Aug 2014 by Boudi AlSayed
After 2 days of searching Google I've finally decided to ask here... Found things about DirectX but idk how to use it honestly..How could I detect GamePad/Joystick input in WPF and Not WindowsForms using vb.net(preferred) or C#...I've made a guitar controller out of USB gamepad and just...
20 Aug 2012 by bozinho
This is part of my code...In this code is 1 animatedSPrite that user controls. I want that user can draw line on this background and that this animatedsprite can move on this line...PLease help :/public Scene onCreateScene() { this.mEngine.registerUpdateHandler(new...
20 Aug 2012 by bozinho
How to move this line on touch?final Line line = new Line((this.CAMERA_WIDTH/2) - 150, (this.CAMERA_HEIGHT/2) + 200, (this.CAMERA_WIDTH/2) - 200, (this.CAMERA_HEIGHT/2) + 200, 5, this.getVertexBufferObjectManager());
4 Apr 2015 by BrainlessLabs.com
In this tip series, we will create a small C++ game engine.
20 Apr 2011 by Bravo03
Trying to code Pacman in C# for programming class. For the map(classic design) I used picture boxes but there's like 50 of them, so collison detection is a pain.Is there an easier why to make the map and simplify the colision detection? { public Form1() { ...
2 May 2011 by Bravo03
Trying to get pacman to move in grid, only can move through ones, stops when he hits a 0(the wall). Have four separate timers for directions that activate on keypress. Have only started with him moving right at the moment, for some reason he moves 4 spaces(int move = 4), then stops and will no...
21 Apr 2013 by bshokati
How to create a client-server network for multiplayer game programming using C++ and Windows Winsock
26 Aug 2013 by Buddhi Chaturanga
Please I need brief comparison of above mentioned 3D teachnologies.What is the most suitable technology for general 3D applications?Concerning O/S:Windows dependent 3D applications developed using DirectX.Linux dependent 3D applications developed using OpenGL.Some 3D applications...
2 Feb 2012 by Budo007
Software: Visual Basic 2008My problem:I make a program for taking screenshots from the game, this is the current code that I use:Dim bounds As Rectangle Dim screenshot As System.Drawing.Bitmap Dim graph As Graphics bounds =...