Learn how to program a C# Snake game!
Download the assets here:
Source code is available here:
In this video you will learn how to write a Snake game in C# without using any game engine. We go over everything you need to know to program Snake step-by-step. The video even includes helpful animations to help you understand everything! The code for the game is written in C#, but the is well decoupled from the UI and can be adapted for other programming languages like Java and C . Have fun developing a Snake game in C#!
Chapters:
0:00 - The Game
0:28 - Project Setup
1:37 - Importing Assets
3:04 - Grid Representation
4:26 - GridValue Enum
5:31 - Directions
9:53 - Positions
12:10 - The Game State
15:27 - Adding The Snake
16:49 - Adding Food
19:40 - Snake Helpers
21:10 - Snake Modification
23:20 - Moving The Snake
29:36 - Loading Images
32:10 - Color/Font Resources
34:30 - Coding UI
37:33 - Image Grid
41:28 - Adding Grid Images
44:35 - Bitmap Scaling & Removing Gaps
46:00 - Drawing The Game State
49:54 - Changing Direction (User Input)
51:33 - Moving Snake (Game Loop)
53:07 - Updating The Score
53:37 - A Strange Bug
56:13 - Changing Direction Properly
1:00:53 - Fixing Scaling
1:02:26 - Intro/End Screen
1:09:31 - Countdown
1:10:56 - Restarting The Game
1:12:56 - Googly Eyes!
1:16:08 - What The ****?
1:16:26 - Fixing Image Rotation
1:17:28 - RIP Animation
1:20:19 - Other Grid Sizes?
1:21:49 - Thanks!
1 view
829
249
9 years ago 00:02:44 214
Bjarne Stroustrup: A Unified Programming Language?
9 years ago 00:04:20 2.4K
Learning Programming in a Virtual Reality Environment
13 years ago 01:50:55 19
Основы программирования часть 1 / Bases of programming a part 1
9 years ago 00:08:01 33
Ruby Programming - 7 - Write a Hash
8 years ago 00:06:07 32
Ruby Programming Tutorial - 2 - Writing a Simple Program
11 years ago 00:04:58 10
After a programming contest
8 years ago 00:20:09 105
Create a simple JavaScript Slideshow - Programming Tutorial
5 years ago 00:08:26 7
Colobot - a programming game
12 years ago 00:03:08 116
Probation Period - How To Crack A Program
6 years ago 01:55:24 35
Ideas about a new programming language for games.
8 years ago 00:05:28 1
HomeSafe Programming a 24 Hour Zone
2 years ago 00:01:05 1
About a programming language - Python.
11 years ago 00:39:37 35
Creating a Rogue-like game [C++11 programming]
8 years ago 00:10:11 223
How to make a Video Game in Unity - PROGRAMMING (E02)
3 years ago 00:39:34 3
Programming a Tetris Game in C# - Full Guide
3 years ago 00:03:01 1
Drone Programming | A Complete Course (2020)
8 years ago 00:30:46 537
Speed Programming Snake
9 years ago 00:24:11 80
[Unity Pathfinding Tutorial] Programming the A* Algorithm
5 years ago 00:10:56 1
Programming a City-Building Game from Scratch!
8 years ago 00:33:33 4
Mary Rose Cook: A programming language for children
7 years ago 00:28:59 1
Probabilistic Programming: A Modern Bayesian Workflow || Peadar Coyle
9 years ago 00:10:39 31
Programming Ruby 06 -- Array Operations
9 years ago 00:16:47 14
Ruby Programming - 22 - Add an Item to a Hash
9 years ago 01:13:38 310
1 Hour Programming: A Tower Defense game in Unity 3d [Tutorial]