Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
How To Program Your Own Breakout Game using Visual C#
Rating: 4.4 out of 5(51 ratings)
3,177 students

How To Program Your Own Breakout Game using Visual C#

Practice C#.NET with WinForms and Visual Studio Building a 2D desktop game with collision detection, sounds and images!
Created byMohammad El-Haj
Last updated 8/2017
English

What you'll learn

  • Learn the basics of building a WinForms Application on Windows using C#
  • Build a fully functional Breakout Game Clone as a Windows Application in C#
  • Learn how to build game logic and develop simple games
  • Learn how to draw basic graphics inside Winforms applications
  • Learn how to animate objects on screen
  • Learn how to use timers to mimic game loops

Course content

1 section24 lectures2h 10m total length
  • Course Overview2:32

    In this lecture, we will go over the project we are going to build as part of this course so that you get an overview and high level picture of the course and steps involved.

  • About Your Instructor1:20

    Meet your instructor, Mohammad, a seasoned software engineer since 1995, sharing expertise in C, C++, Visual Basic, C#, Java, Ruby on Rails, web development, and Unity game engines.

  • Download Game Assets (REQUIRED)0:44
  • Download The Source Files (OPTIONAL)0:50
  • Creating the C# Project in Visual Studio5:39

    In this video, we will create our game project as a winforms application using Visual Studio

  • Adding Background Image3:40

    In this video, we will add the background image to our game

  • Adding the Game Paddle4:02

    In this video, we will add the game paddle to our game.

  • Moving the Game Paddle8:20

    In this video, we will add the code to move the game paddle with the mouse

  • Adding the Game Ball4:54

    In this video, we will add the game ball to our game and also move it with the mouse like we did with the game paddle

  • Animating the Game Ball10:02

    In this video, we will learn how to use a timer to mimic the game loop and move the ball using the timer

  • Detecting collision with game paddle5:47

    In this video, we will learn how to use a simple technique to write collision code between ball and game paddle

  • Adding the Game Blocks6:54

    In this video, we will learn a new way to add game blocks to the game using ImageList control. We will also learn how to handle form paint event and how to draw on our form using Graphics object

  • Drawing Blocks Using Graphics9:49

    In this video, we will learn how to randomly create and draw blocks on our game form

  • Detecting Ball Collision With Blocks - Part One10:18

    In this video, we will learn how to detect collision using math to calculate area of collision to translate ball location into row, column inside the blocks array, which is much better performance than doing two loops, which is very slow: O(n^2)

  • Detecting Ball Collision With Blocks - Part Two8:16

    In this video, we will complete the collision logic inside the game timer and remove the temporary mouse click code from part one

  • Adding the Game Menu - Part One7:43

    In this video, we will add the game menu user interface (UI) to our game and learn how to use the panel control, label and button controls

  • Adding the Game Menu - Part Two5:41

    In this video, we will finish the code to hide/show menu and pause / un-pause our game


  • Implementing Menu Commands7:40

    In this video, we will write the code to handle the menu buttons for new game, resume and quit game

  • Adding Game Score7:02

    In this video, we will add the game score to our game and learn how to increase the ball speed when it hits the stone blocks

  • Finishing Touches - Part One4:39

    In this video, we will learn how to animate a count down timer and how to use sleep and DoEvents in Winforms

  • Finishing Touches - Part Two5:53

    In this video, we will add the code to animate game over and also implement "Level Complete" logic

  • Adding Sounds to our game!7:11

    In this video, we will learn how to embed sounds as resources in our project and how to play sounds using .WaV sound files

  • Adding Keyboard Support for Moving the Paddle1:05

    In this part, we try to add a way to toggle between keyboard / mouse movements for the paddle.

  • Congratulations!0:44

    Congratulations for making it all the way to the end! I hope you enjoy playing your own game and show it off to friends and family

  • How to fix ball speed?

Requirements

  • Installation of Visual Studio (Recommended: Free Community Edition 2015 or 2017 or any other version)
  • Understanding of Windows environment and applications
  • MUST HAVE Basic knowledge of C# language like writing functions, if conditions and loops
  • MUST HAVE Basic Familiarity with .NET Framework and Winforms

Description

LEARN HOW TO QUICKLY BUILD A BREAKOUT GAME CLONE ON WINDOWS USING VISUAL C# and WinForms

If you want to learn and experience what it takes to build a game on Windows using Visual C# and Winforms then I hope you will find this course as exciting as it is informational.

WHAT YOU ARE GOING TO LEARN:

  • The techniques  you need to build a complete Breakout game clone with Visual C# on Windows
  • Understand how to use WinForms and how to create desktop applications using C#
  • How to draw graphics inside Winforms
  • How to use timers to mimic game loops
  • How to play sounds
  • How to embed images and sounds as resources inside your application
  • How to handle mouse and keyboard events
  • How to load images and display images using WinForms

You have 30-day money back guarantee from Udemy, so there is nothing to lose! I made my best efforts to provide high quality content and to make this both useful and fun to watch.

Let’s get started today! Enroll now!

WHAT'S IN THE COURSE?

  • Complete Breakout Project in C# on Windows
  • Understand how to write efficient C# code 
  • Learn how Windows applications work
  • Full source code of the project we will build
  • All game assets used in the game are included for free

COURSE REQUIREMENTS:

  • Basic knowledge of C# (or any similar language like C/C++, Java....etc) 
  • Basic understanding of loops, functions, variables and if conditions...
  • Windows 7 or newer
  • Visual Studio installation – Visual Studio 2015 Community Edition (Recommended) or Newer

ENROLL TODAY TO START BUILDING YOUR OWN BREAKOUT GAME AND HAVE FUN PLAYING IT

Who this course is for:

  • This course is an easy step by step instructions to build a simple Windows application in C#
  • Anyone with some basic knowledge on Programming