Skip to content

In this project we will make a rectangle move around the canvas using Keyboard events and timer

License

Notifications You must be signed in to change notification settings

mooict/WPF-Move-Rectangle-In-Canvas-Using-Keyboard-and-Timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WPF-Move-Rectangle-In-Canvas-Using-Keyboard-and-Timer

In this tutorial we will learn how to make a object move in 4 directions using the keyboard with wpf and c# inside of visual studio. Most games have this movement and we will most certainly make use of this movement for games development in wpf and c#. for this tutorial we will focus more on the moment for the player and also animate another box that will move between the borders from left to right. The player character will move up, down, left and right also we will need to stop the character when it hits any of the 4 borders. We will be using our trusted canvas element inside of the wpf format and for the first time use dispatcher time which is kind of same as the timer as used in the windows form games development examples. Hopefully you find this tutorial insightful and inspires you to make something cool with it.

Video Tutorial -

Written Tutorial -

https://www.mooict.com/wpf-c-tutorial-move-an-object-with-keyboard-and-timer-in-visual-studio/

About

In this project we will make a rectangle move around the canvas using Keyboard events and timer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages