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
248
7 years ago 00:03:45 14
Programming on a silicon quantum chip programming on a silicon quantum chip
9 years ago 00:02:44 214
Bjarne Stroustrup: A Unified Programming Language?
9 years ago 00:08:01 33
Ruby Programming - 7 - Write a Hash
9 years ago 00:24:11 80
[Unity Pathfinding Tutorial] Programming the A* Algorithm
8 years ago 00:02:56 242
Programming with Functions in JavaScript - Programming Virgin
8 years ago 00:20:09 105
Create a simple JavaScript Slideshow - Programming Tutorial
8 years ago 00:57:01 5
Java Game Programming - Develop a Brick Breaker Game
12 years ago 00:10:17 161
CrossFit - CrossFit Programming Part 1
8 years ago 00:09:52 161
C Programming Tutorial - 10 - Creating a Header File
3 years ago 00:27:16 33
ASMR Programming - Coding a Snake Game - No Talking
8 years ago 00:04:20 2.4K
Learning Programming in a Virtual Reality Environment
5 years ago 01:55:24 35
Ideas about a new programming language for games.
9 years ago 00:04:31 121
R Programming Tutorial - 3 - How to Run a Simple Program
10 years ago 00:04:58 10
After a programming contest
7 years ago 00:45:08 54
Develop a Quiz App with Javascript - Object Oriented Programming
5 years ago 00:08:26 7
Colobot - a programming game
3 years ago 01:00:04 13
Deliberate Programming - Episode 3 - Adding a feature to a Golang web app
3 years ago 00:08:52 59
Python Network Programming #1: Introduction to Socket Programming