Windows-appsample-marble-maze

A 3D DirectX game for the Universal Windows Platform.

  • 所有者: microsoft/Windows-appsample-networkhelper
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖


page_type: sample
languages:


DirectX marble maze game sample

This is a mini-app that shows how to build a basic 3D game using DirectX on the Universal Windows Platform (UWP).
It's a simple labyrinth game where the player is challenged to roll a marble through a maze of pitfalls using tilt, mouse, or gamepad controls.

Note - This sample is targeted and tested for Windows 10, version 1903 (10.0; Build 18362), and Visual Studio 2019. If you prefer, you can use project properties to retarget the project(s) to Windows 10, version 1809 (10.0; Build 17763), and/or open the sample with Visual Studio 2017.

MarbleMaze app in action

This sample is written in C++ and requires some experience with graphics programming and DirectX.
Complete content that examines this code can be found at
Developing Marble Maze, a UWP game in C++ and DirectX.

Features

  • Incorporating the Windows Runtime into your DirectX game
  • Using DirectX to render 3D graphics for display in a game
  • Implementing simple vertex and pixel shaders with HLSL
  • Developing simple physics and collision behaviors in a DirectX game
  • Handling input from accelerometer, touch, mouse, and game controller with the Windows Runtime
  • Playing and mixing sound effects and background music with XAudio2

Universal Windows Platform development

Prerequisites

  • Windows 10. Minimum: Windows 10, version 1809 (10.0; Build 17763), also known as the Windows 10 October 2018 Update.
  • Windows 10 SDK. Minimum: Windows SDK version 10.0.17763.0 (Windows 10, version 1809).
  • Visual Studio 2019 (or Visual Studio 2017). You can use the free Visual Studio Community Edition to build and run Windows Universal Platform (UWP) apps.

To get the latest updates to Windows and the development tools, and to help shape their development, join
the Windows Insider Program.

Build the sample

  1. Unzip the archive.
  2. Start Microsoft Visual Studio 2017 and select File > Open > Project/Solution...
  3. Starting in the folder where you unzipped the sample, go to the C++ subfolder. Double-click MarbleMaze_VS2017.sln.
  4. Press Ctrl+Shift+B, or select Build > Build Solution.

Run the sample

The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it.

Deploying the sample

Select Build > Deploy Solution.

Deploying and running the sample

To run the sample with debugging, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.

主要指標

概覽
名稱與所有者microsoft/Windows-appsample-networkhelper
主編程語言C#
編程語言C++ (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-04-29 00:43:12
推送於2022-11-28 19:14:26
最后一次提交2022-11-28 19:14:26
發布數4
最新版本名稱66954 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數152
關注者數67
派生數53
提交數41
已啟用問題?
問題數10
打開的問題數3
拉請求數3
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?