C# Corner

Related resources for games
  • Create A Solid Base Using Gdevelop8/23/2017 11:44:54 AM. This blog is based on creating a Solid Stage for a player using “Gdevelop” It's an open source Software and the games can be exported with GDevelop, since it is based on the native HTML5 platform
  • Hangman - A Classic Game Developed In JavaFX8/14/2017 5:03:11 PM. Hangman is a paper and pencil guessing game for two or more players. One player thinks of a word and the other tries to guess it by suggesting letters or numbers, within a certain number of guesses. T
  • Shooting Game Using Construct 28/9/2017 5:22:01 AM. Construct 2 is an HTML5 based 2D game editor developed by Scirra. Construct 2 is a powerful game creator specifically designed for 2D games.
  • Game Developers Win $200,000 In Prizes7/5/2017 12:55:46 PM. The Dream.Build.Play Challenge has been announced. It's a skill-based contest where you have to build a UWP game app, and it's open to all developers
  • Construct Simple Game Using Construct 26/9/2017 12:59:38 PM. Simple Game Construct Using Construct-2.
  • Develop Games Easily Using Unity5/8/2017 5:48:38 PM. The blog shows how easy is it to develop games, using Unity.
  • Add Timer With Construct - 24/21/2017 11:24:50 AM. This article explains about adding Timer with Construct-2.
  • Developing Games Using Unity4/17/2017 10:16:08 AM. This post gives insight about game development and the tools used to develop the games.
  • Xbox One Games Now Available on Oculus Rift12/13/2016 1:53:07 PM. Rift owners will now be able to stream their Xbox One library to Rift with the help of the latest Xbox One Streaming to Oculus Rift app.
  • Install and Setup Unity12/12/2016 4:36:40 AM. In this article, you will learn a how to install and setup Unity, a tool for game developers.
  • Understand the Basics To Build Games In Unity Framework12/12/2016 3:44:00 AM. This article is all about understanding very basic menus that are available in the Unity framework to build games.
  • Game Development - 2D Games Perspectives And Z Order11/24/2016 12:17:40 AM. This article will focus on 2D games Perspectives & Z Order.
  • Game Development - Platforms11/22/2016 2:33:32 PM. In this article, you will learn about game development platforms
  • Game Development - An Introduction11/22/2016 2:25:20 PM. This article is all about answering common questions, which need to be addressed before jumping into the starry domain of game development.
  • Apple Introduces iMessage App Store With Several iMessage Apps, Games, And Sticker Packs9/14/2016 12:27:35 PM. Apple launches an entire iMessage App Store. The iMessage App Store features sticker packs from various companies, like Disney, Bandai Namco, Sanrio, and many others.
  • Deploying A Universal Application In XBOX Console7/20/2016 12:56:19 AM. This article will teach you how to deploy universal Windows Application to XBOX or XBOX One.
  • Let's Start The Game With Construct 26/24/2016 2:09:35 PM. In this article, you will learn about the Construct 2 game engine and kick start the development.
  • Sony Planning On A More Graphic Intensive PlayStation3/29/2016 9:42:16 AM. Sony is planning on a new PlayStation with more graphic-intense games, ahead of the company’s VR headset release in the second half of the year.
  • Microsoft Plans To Bring NFL Games To Virtual Reality With HoloLens2/25/2016 8:49:18 AM. This video is a demo of what the future of NFL may become after virtual reality comes to life in near future.
  • Advanced 3D Physics In .NET Web Games2/21/2016 9:02:36 AM. We are pleased to announce the release of Matali Physics, an advanced 3D physics engine for .NET and Mono, in version for web browsers. With the upcoming Silverlight 5 technology, it becomes possible to run .NET 3D applications inside web browsers with full hardware-accelerated graphics. Meet the expectations of game developers, the latest version of Matali Physics engine already supports Silverlight 5 beta providing realistic simulation of objects' behaviour to all 3d web game developers.
  • One more step to be dominated in the fight with piracy2/21/2016 9:02:36 AM. Peer-to-Peer Sharing is now being watched by Copyright Enforcement Agencies...
  • 'Google Play Games' leaks indicate new social features2/21/2016 9:02:36 AM. Google Play Services will include a new platform called Google Play Games, initiating new features such as cloud saves, multiplayer and achievements.
  • Microsoft clarified Xbox One used games, internet connections and privacy policies2/21/2016 9:02:36 AM. Microsoft has clarified some of the most asked concerns about Xbox One, including used games, always-on and privacy policies.
  • Microsoft to bring Xbox and PC Games to iOS and Android2/21/2016 9:02:36 AM. Microsoft will offer its Xbox and PC games for Apple's iPhone and other smartphone platforms this fiscal year.
  • DirectX 12 Announced2/21/2016 9:02:36 AM. A new version of DirectX is on its way
  • Google's AI wins at playing computer games2/21/2016 9:02:36 AM. Google's AI has shown the ability to play computer games and win.
  • Data Proves That People Who Enjoy Games Have Upgraded TO iOS 92/21/2016 9:02:36 AM. People interested in apps and games are the ones upgrading the apps to iOS 9.
  • MSI Launches New Gaming Laptop2/21/2016 9:02:36 AM. MSI launches theme laptop after Blizzard's online multiplayer game Heroes of the Storm at Singapore's GamesStart convention.
  • Microsoft Store Offers 50% Off On Selected XBox Games2/21/2016 9:02:36 AM. In today's deal, Microsoft Store is offering 50% off on selected XBox games.
  • Unreal Engine Lets Developers Modify Games In VR2/21/2016 9:02:36 AM. Unreal just announced its Unreal engine that allows gamers and developers to edit and build games while they are in VR.
  • Microsoft Store In Windows 1012/10/2015 11:53:02 PM. In this article we will learn how to use the Windows Store to download apps and to buy some products.
  • Design Patterns: Visitor6/18/2015 12:23:48 PM. In this article you will learn about the Visitor Design Pattern.
  • Building Windows Store Games With Construct 26/2/2015 11:59:10 AM. In this article you will learn how to Build Windows Store Games with Construct 2.
  • Playing Pac-Man in City Streets Using Google Maps4/2/2015 2:39:23 PM. This article shows how to play the famous Pac-Man game in our city streets using Google Maps.
  • Unbelievable Cool Games Made in Microsoft Excel9/9/2014 2:09:05 AM. Those days are gone when we use Microsoft Excel for data-analyzing, financial processes and complex calculations. Believe it or not, you can turn this data-analyzing, number-crunching tool into one unbelievably cool game.
  • Creating Tic Tac Toe - Step by Step9/9/2013 11:14:42 PM. Creating Tic Tac Toe using C#( Windows Form Application) for Beginners Step by Step:
  • iPhone Memory Leaks Tracking and Use of Instruments2/14/2013 5:19:19 PM. This article shows the use of Instruments for tracking application memory leaks.
  • What Happened to Solitaire and Minesweeper in Windows 812/19/2012 3:32:22 PM. In this article we are going to explain what happened to Solitaire and Minesweeper in Windows 8.
  • Restoring Desktop Solitaire, Minesweeper, and Other Classic Games in Windows 812/14/2012 12:47:32 PM. In this article we are going to explain how to restoring desktop solitaire, minesweeper, and other classic games in Windows 8.
  • Scramble For Pocket PC in VB.NET12/1/2012 2:11:35 AM. This article shows you how to write Scramble for Pocket PC.
  • Get Back Windows 7 Classic Games in Windows 811/24/2012 3:50:32 PM. This article describes how to restore all the Windows 7 classic games in Windows 8.
  • Dots Game10/3/2012 11:06:25 AM. Here is a dots game developed using C# and GDI+. New version of the game will be coming soon.
  • Conway's Game of Life Using HTML55/31/2012 6:16:07 AM. In this article we'll create Conway's Game of Life using the new Canvas element of HTML5.
  • Are XNA games running under Silverlight host?5/24/2012 4:56:05 AM. I was curiously experimenting WP7 Emulator to find something how XNA runs in Windows Phone 7 Emulator for a loong time
  • Creating Games With the AllegNet Game Library5/19/2012 1:23:08 AM. In this article I will show you the way of creating simple games with the AllegNet game library for .NET.
  • Space Breakout - 2D Game Developed Using DirectX and C#5/19/2012 12:44:06 AM. GDI+ is a feature rich graphics API that makes sophisticated graphical effects highly accessible to the C# developers.
  • Why Use C# to Build a Rougelike Game2/5/2012 11:01:56 PM. In this article you will learn why we use C# to build a Rougelike Game.
  • Building Games in HTML 512/25/2011 11:59:18 AM. HTML 5 is probably one of the most talked topics of year 2011 in the Web development world. HTML 5 brings Web 2.0 to plain vanilla HTML. Besides implementing Web 2.0 tags like Audio and Video, several developers and small companies have built many libraries and APIs to build a variety of interfaces.
  • A Silverlight Magic Eight Ball10/27/2010 6:42:16 PM. This application is a virtual Magic Eight Ball that can help you predict the future. Be careful what you ask it, you may not want to know the answer!
  • A Loader and Game Pad for Playing Sudoku9/4/2010 11:35:55 PM. This C# application will allow you to load existing Sudoku games, manually create your own games, save, print, and check Sudoku puzzles, and more. The article also describes how to use the XmlDocument class to persist Sudoku templates and games in progress.
  • Space Invaders for C# and .NET9/4/2010 11:22:08 PM. This is an update of the space invaders game posted on C# Corner 3 years ago for Visual Studio 2005. This version adds spiraling bombs and a ship lives indicator.
  • Silverlight Invaders - Designing Games in Silverlight 4.0 Part I8/25/2010 12:14:19 AM. Silverlight Invaders is based on the classic space invaders game. This article will step you through some of the techniques for creating a 2D first person shooter game using Silverlight 4.0
  • Windows Forms4/19/2008 3:26:53 AM. This article shows you a small game by using simple text box ,buttons and dropdown list.
  • Windows Forms4/19/2008 3:26:53 AM. This article shows you a small game by using simple text box ,buttons and dropdown list.
  • KillerBeam - A Game in C#7/18/2007 12:09:44 AM. KillerBeam is a .Net implementation of the game called Laser Chess which appeared in Compute! Magazine in the early eighties.
  • Brick Out in C#1/31/2007 4:14:43 AM. Way back, I'd say about 1981 (ok maybe not so far back!), there was a game for the Apple II called Brick Out.
  • BattleShips Games1/31/2007 4:08:45 AM. This application presents a grid of 100 squares to the user. The user has thirty five attempts to find to find the computers fleet. The computer randomly positions five ships of varying sizes around the board.
  • BattleShips Games1/31/2007 4:08:45 AM. This application presents a grid of 100 squares to the user. The user has thirty five attempts to find to find the computers fleet. The computer randomly positions five ships of varying sizes around the board.
  • Shisen-Sho Clone in VB.Net12/12/2006 11:05:42 PM. The attached code is a clone of the KDE game Shisen-Sho using Windows Forms and GDI+.
  • Shisen-Sho Clone in VB.Net12/12/2006 11:05:42 PM. The attached code is a clone of the KDE game Shisen-Sho using Windows Forms and GDI+.
  • Creating Word Find Pzzules in C# and GDI+9/1/2006 6:16:12 AM. In the past I have been guilty of trying a few of word find puzzles myself, so I figured why not give it a go it .NET. The Word Find creator reads a MSDE database of Words and Categories.
  • Eater Game in C#9/1/2006 6:02:02 AM. This is a simple game written in C# in which the user moves a packman like player around the form and gobbles up red dots. The object is to get all the dots in as quick a time as you can.
  • Eater Game in C#9/1/2006 6:02:02 AM. This is a simple game written in C# in which the user moves a packman like player around the form and gobbles up red dots. The object is to get all the dots in as quick a time as you can.
  • Shisen-Sho Clone in C#5/29/2006 3:22:36 AM. The attached code is a clone of the KDE game Shisen-Sho using Windows Forms and GDI+.
  • Shisen-Sho Clone in C#5/29/2006 3:22:36 AM. The attached code is a clone of the KDE game Shisen-Sho using Windows Forms and GDI+.
  • A Chess Program using VB.NET4/21/2006 8:23:53 AM. This is a chess game developed using VB.Net. In this application, I have used object oriented concepts and design patterns like Flyweight, Factory and Decorator. Two players can play this game by simply dragging and dropping the pieces on the form.
  • A Chess Program using VB.NET4/21/2006 8:23:53 AM. This is a chess game developed using VB.Net. In this application, I have used object oriented concepts and design patterns like Flyweight, Factory and Decorator. Two players can play this game by simply dragging and dropping the pieces on the form.
  • ClickMania game in VB.NET4/21/2006 7:52:52 AM. This is an old game, first implemented in 1996 or so... This game uses the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • ClickMania game in VB.NET4/21/2006 7:52:52 AM. This is an old game, first implemented in 1996 or so... This game uses the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • Scramble for Pocket PC 3/23/2006 5:21:59 AM. This article shows you how to write Scramble for Pocket PC.
  • Scramble for Pocket PC 3/23/2006 5:21:59 AM. This article shows you how to write Scramble for Pocket PC.
  • Mastermind Game with Drag and Drop Functionality2/3/2006 12:08:18 AM. There as nice article some time ago on this site for creating mastermind game by Mike Gold. I am rewriting complete game from scratch to implement Drag and Drop feature and presentable User interface.
  • Mastermind Game with Drag and Drop Functionality2/3/2006 12:08:18 AM. There as nice article some time ago on this site for creating mastermind game by Mike Gold. I am rewriting complete game from scratch to implement Drag and Drop feature and presentable User interface.
  • Nemesis-7rc1 ( Codename Deviate)2/3/2006 12:08:15 AM. Nemesis-7 is a full-screen 2D shoot’em up that makes use of the DirectInput, DirectSound and DirectDraw interfaces from DirectX. The player controls a spaceship which he uses to duel the computer opponent. I implemented some artificial intelligence to make the CPU play more human.
  • Nemesis-7rc1 ( Codename Deviate)2/3/2006 12:08:15 AM. Nemesis-7 is a full-screen 2D shoot’em up that makes use of the DirectInput, DirectSound and DirectDraw interfaces from DirectX. The player controls a spaceship which he uses to duel the computer opponent. I implemented some artificial intelligence to make the CPU play more human.
  • C#RIS : Tetris Game in C#2/2/2006 11:25:38 PM. I have written a Tetris clone that demonstrates how to use off-screen graphics buffering for smooth animation and utilizes a multi-dimensional array approach to designing a game grid. The classes are largely self-explanatory and the techniques are documented in code well enough to explain what is going on.
  • C#RIS : Tetris Game in C#2/2/2006 11:25:38 PM. I have written a Tetris clone that demonstrates how to use off-screen graphics buffering for smooth animation and utilizes a multi-dimensional array approach to designing a game grid. The classes are largely self-explanatory and the techniques are documented in code well enough to explain what is going on.
  • Generating Maze using C# and .NET2/2/2006 11:25:02 PM. Did you ever get the feeling that cubicles were laid out with the idea that there could be no escape? (Must be I am a bit overworked these days). Today's article focuses on how to generate a maze using the depth first search algorithm. This is a very simple but clever algorithm that creates a maze by randomly stripping one available wall between two cells for every cell in the grid.
  • Generating Maze using C# and .NET2/2/2006 11:25:02 PM. Did you ever get the feeling that cubicles were laid out with the idea that there could be no escape? (Must be I am a bit overworked these days). Today's article focuses on how to generate a maze using the depth first search algorithm. This is a very simple but clever algorithm that creates a maze by randomly stripping one available wall between two cells for every cell in the grid.
  • Eater Game II - The Stone Maze2/2/2006 11:19:23 PM. This program combines the designs of the Eater Game and the Maze Generation Program to create a more challenging game, Eater Game II. In this game, you move a pacman-like character through a maze and eat as many stones as you can before time runs out. You have a minute and a half to try to eat stones before the pac-man simply freezes-up and accepts his quota of stones.
  • Eater Game II - The Stone Maze2/2/2006 11:19:23 PM. This program combines the designs of the Eater Game and the Maze Generation Program to create a more challenging game, Eater Game II. In this game, you move a pacman-like character through a maze and eat as many stones as you can before time runs out. You have a minute and a half to try to eat stones before the pac-man simply freezes-up and accepts his quota of stones.
  • Move Grid Puzzle2/2/2006 7:11:49 AM. This is a console based application the user will be prompted for move such as L-Left, R-Right, U-Up, D-Down, E-Exit.
  • Move Grid Puzzle2/2/2006 7:11:49 AM. This is a console based application the user will be prompted for move such as L-Left, R-Right, U-Up, D-Down, E-Exit.
  • Move Grid Puzzle2/2/2006 7:11:49 AM. This is a console based application the user will be prompted for move such as L-Left, R-Right, U-Up, D-Down, E-Exit.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NET2/2/2006 7:02:07 AM. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • FlashCards Language Program : How to read and save Images in a Sql Server Database using ADO.NET2/2/2006 7:02:07 AM. I thought it would be fun to write a simple program that displayed flashcards from a database and at the same time, show you how to read and write images to the database. This program is a simple flashcard program that talks to a single table in a Sql Server Database.
  • Simple Game Developed in C#2/2/2006 6:57:37 AM. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Simple Game Developed in C#2/2/2006 6:57:37 AM. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Get the Place Game in C#2/2/2006 6:28:00 AM. I have written a game in C# called Get the Place.
  • Get the Place Game in C#2/2/2006 6:28:00 AM. I have written a game in C# called Get the Place.
  • Mastermind Game in C#2/2/2006 6:22:29 AM. This is the game of Mastermind written in C#. The game is played by clicking on a set of 4 colors and then hitting the score button. Colors can repeat themselves in this game, so be wary!
  • Hangman: Using GDI+ in ASP.NET Applications2/2/2006 5:40:52 AM. This example shows how you can combine GDI+ commands on a web form.
  • Hangman: Using GDI+ in ASP.NET Applications2/2/2006 5:40:52 AM. This example shows how you can combine GDI+ commands on a web form.
  • Shuffle Game for Beginners2/2/2006 5:24:45 AM. This code sample is a GDI+ shuffle game aimed for beginners. Attached zip file includes the exe and the Shuffle.cs file.
  • Shuffle Game for Beginners2/2/2006 5:24:45 AM. This code sample is a GDI+ shuffle game aimed for beginners. Attached zip file includes the exe and the Shuffle.cs file.
  • Tic Tac Toe2/2/2006 5:08:39 AM. TicTacToe is a demonstration of the AI game playing minimax algorithm. The game plays out every possible combination of moves from each position and consequently is unbeatable. This example uses .NET Beta 2 and was written using a text editor.
  • Tic Tac Toe2/2/2006 5:08:39 AM. TicTacToe is a demonstration of the AI game playing minimax algorithm. The game plays out every possible combination of moves from each position and consequently is unbeatable. This example uses .NET Beta 2 and was written using a text editor.
  • Yahtzee Program using C#2/2/2006 4:53:17 AM. The Visual C# environment has given the programmer the ability to create applications in RAD mode without the steep learning curve for the C++ programmer. (I do miss templates though!). The above application, yahtzee, is based on a popular poker-like dice game.
  • Yahtzee Program using C#2/2/2006 4:53:17 AM. The Visual C# environment has given the programmer the ability to create applications in RAD mode without the steep learning curve for the C++ programmer. (I do miss templates though!). The above application, yahtzee, is based on a popular poker-like dice game.
  • Time Ticker2/2/2006 4:14:19 AM. Graphics Class encapsulates a GDI+ drawing surface. The FromHWND method is used to create a new instance of the Graphics class from a window handle. Clear method fills the entire drawing surface with the specified RGB color by using Color class. DrawString method draws a string using Font and SolidBrush classes.
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download