Skip to content

Chubosaurus/Win2D-Getting-Started

Repository files navigation

Win2D Getting Started: Windows Universal Application

The repo for Windows Universal Application: Getting Started With Win2D.

Overview

Awhile back I did a video series that went over programming a simple game engine from scratch. I picked it back up about a week ago, but I can't guarantee updates since I'm a pretty busy person (2 jobs, very little free time). I thought if any of you were interested you can have a look. This was an experiment by me and recording myself programming was so weird.. in the end I found it easier to take it slow as possible.


To facilitate the engine, I used a fairly new drawing library from Microsoft: Win2D which is an immediate mode drawing library. You can use any drawing library you want and adapt accordingly.

In the video series, I go over

  • Downloading the library with NuGet and importing it. Drawing simple geometric shapes onto the canvas.
  • Creating a Content Pipeline and loading Images into it.
  • Making basic scene items (objects), putting them inside a scene (aka Scene graph) and building a manager that manages all the scenes inside your game: A StoryBoard.
  • Creating the Game Loop which has a specific Updates Per Second and Frame Per Second.
  • Creating an Input Manager such that the mouse (or anything you like) can push its events on to it, which the manager pushes its current input down the StoryBoard model.
  • Creating a Stack to model a scene history.
  • Creating a Layered Scene.
  • Slice and dice a Sprite Sheet into an animation object.
  • Parallax Scrolling.
  • Generic Entity States.

##Videos In The Series

A Top Down View of The Simple Game Engine

Turn your volume up...my voice is low until EP #6... got a new mic :D

#####Season One

EP #1 : Environment Setup & Drawing Primitives
EP #2 : Loading and Drawing Images
EP #3 : Coding The GenericItem
EP #4 : Coding The GenericScene & SceneManager
EP #5 : GameLoop and Keeping Time
EP #6 : Input Manager and Game Engine Overview
EP #7 : Capturing Mouse Events
EP #8 : Optimize Mouse Events And The Generic Button
EP #9 : Scene Switcher and Generic Gaming Scenes -PART A-

#####Season Two

EP #1 : Generic Sprite Animation (not recorded yet)
EP #2 : Layered Scenes and Parallax Scrolling (not recorded yet)
EP #3 : GenericPlayer and States (not recorded yet)

Convenient Playlist of All Videos: PLAYLIST more to come (I hope).


####Setup

  1. Pull the repository from GitHub.
  2. Select which Episode you would like view and set it as the "Start-Up Project"
  3. Compile and see the result from the episode.

####License Information

Win2D Getting Started: Windows Universal Application is licensed under CC BY


####Attributions and Credits

Parallax Scrolling Backgrounds by Mobile Game Graphics and are licensed under their own license.
Rock Entity by Mobile Game Graphics and is licensed under their own license.
Sprite artwork by Tatermand
Spite animations by Christian da Silva

About

Win2D Getting Started: Windows Universal Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published