C# Win Forms Flappy Bird Hunting Game OOP Master Class in VS

所在平台: Udemy

课程主页: https://www.udemy.com/course/flappy-bird-hunting-game-c-sharp-master-class-mooict/

课程评论:没有评论

第一个写评论        关注课程

课程简介

本课程是关于如何使用 C#、Windows Forms、.NET 和 Visual Studio 开发一款名为“Flappy Bird Hunting Game”的射击游戏。 **课程亮点:** * **突破 Windows Forms 限制:** 探索 Windows Forms 的隐藏功能,用 C# 构建交互式、快节奏的多对象射击游戏,而无需使用 Unity 或 Unreal 等大型游戏引擎。 * **丰富的游戏功能:** * 使用精灵图动画化鸟、牛(MOO)和金币。 * 实现跟随鼠标光标的十字准星。 * 集成 Media Player 播放 MP3 文件,支持音效和背景音乐的开关。 * 加载外部背景图像,并允许用户更换背景。 * 创建多种不同类型的鸟,并实现其动画效果。 * **面向对象编程(OOP)核心:** * 创建“BIRD”类,并在游戏循环中管理鸟的游戏状态(存活/死亡)。 * 实现鸟死亡后生成金币动画,并移除当前鸟。 * 创建“MOO”对象来收集掉落的金币,并播放相应的音效。 * **游戏机制与奖励:** * 自定义字体应用。 * 实现得分系统,并将最高分保存到文本文件。 * 添加倒计时功能,玩家在规定时间内尽可能多地猎杀鸟。 * 连续射杀 5 只鸟可获得额外子弹奖励。 * **项目发布与打包:** * 学习如何创建安装向导(MSI 和 EXE 文件),方便分享游戏。 * 定制安装过程,包含游戏文件和图标。 **学习收获:** 这不仅是一门游戏开发课程,更是一门深入的 C# 编程课程。通过完成一个具有挑战性的“Flappy Bird Hunting Game”,您将学会如何更高效、更具生产力地使用 C#,并深入理解 Windows Forms 的强大潜力。

课程评论(0条)

课程详情

Welcome to the Flappy Bird Hunting game master class. This course has been meticulously planned to challenge your views on the capabilities of windows form. What if we can make an interactive, fast paced, multi object shooting game in windows form with C# and nothing else? What if this game would spawn and respawn objects, allow the user to have crosshair on their mouse cursor, play music and register the hits on the birds and reward the players accordingly? Does this game sound impossible in windows form? Yep it kind of does, until you realise that someone as stubborn as you and me will have to find a way to do just that. Why? Well, why not.Windows form is an amazing platform for learning programming. Its very basic what you see if what you get platform and most of the times we learn by making calculators, image viewers or other desktop style applications. Windows form is not made for games development but its an interesting challenge to be able to mimic or build similar games as the ones existed before in this limited platform only using the tools available inside of visual studio and not using any of the big game's engines such as GODOT, Unity or Unreal.I want to explore the hidden or less used features of windows form that can potentially be used to make actual games on the platform and for us to learn how to use C# programming in a more productive and effective way.Although this is a games development course at the heart of it it's a programming course. We will complete the course together by making a flappy bird hunting game that's full of Challenges.FeaturesMake a flappy bird hunting game using native C#, Windows Form,.Net and Visual StudioImport sprite images to animate the bird, MOO, and coin in the gameHave a cross-hair to follow the player mouse cursorAdd the Media Player dependency for.Net through visual studio to play multiple Mp3 files together in the gameAllow players to mute or play the music and sound effects in the gameLoad external sound effects to the game such as bullet sound and background musicLoad external background images for the game and allow the user to pick a new background for their game playLoad lots of different birds in the game, this will be the bird sprites and we can animate each of them using separate sprite images from external folderCreate a BIRD CLASS and import that to the games windowUse the BIRD object in the game loop to check if they bird is dead or alive. If alive it will continue to fly within the bounds of the game and if DEAD it will spawn the coin animation and remove the current bird from the game.Add a cow (MOO) that will be collecting the coins when it drops to the ground.Play sound effects for MOO and the coin collectionUsing different layers of elements to show the background, foreground, bird, MOO and cursor images in the gameLoad and apply custom fonts to the game directly inside of Windows FormKeep track of the score in the game and save the high score into a text file so it can be loaded and saved in permanent memoryCreate a fun count down timer in the game and allow the users to hunt as many birds as they can within that timeReward player with more bullets when they accurately shoot 5 birds in a row.When the game is finished we can build a installation wizard to publish the game, this wizard will create a MSI and EXE file to be shared online or offline.The installation process will be custom built, so it will contain the files we want to contain for the game and also include the icons for the file which will show with the desktop shortcut.If you are not familiar with my work please check out my YouTube Channel MOOICT or search for MOOICT on google and you can explore the different types of educational content I make on my website and YouTube channel. Happy Hunting everyone.

课程标签

0人关注该课程

主题相关的课程