Giter Club home page Giter Club logo

windows-appsample-marble-maze's Introduction

page_type languages products statusNotificationTargets
sample
cpp
windows
windows-uwp

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 2004 (10.0; Build 19041, also known as the Windows 10 May 2020 Update), and Visual Studio 2019. If you prefer, you can use project properties to retarget the project(s) to Windows 10, version 1903 (10.0; Build 18362, also known as the Windows 10 May 2019 Update).

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

Related topics

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.

windows-appsample-marble-maze's People

Contributors

eliotcowley avatar karl-bridge-microsoft avatar karlerickson avatar kellim avatar matchamatch avatar microsoft-github-policy-service[bot] avatar msftgits avatar scottmill avatar stevewhims avatar supernova-eng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-appsample-marble-maze's Issues

Unable to deploy to XDK with Microsoft Visual Studio 2017

Was able to build and deploy for x64 using Visual Studio 2017 on a local Windows 10 PC but was unable to deploy to the remote Xbox One (XDK). The game built and was installed to the Xbox One just fine, but upon launching the following error message was displayed:

A dependent dll was not found

I found these two other developer posts, but I believe they were using Visual Studio 2015 instead. I also did not see WIN32_LEAN_AND_MEAN set as a preprocessor flag in the GitHub project, so I don't believe that is the issue. I retargeted the solution to platform tools v141 and tried the latest two Windows SDKs 15063 and 14393.

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/2c06b874-9ee0-4a81-beea-a03278278aa1/uwpccxxbox-one-app-crashes-on-xbox-one-0xc0000135-a-dependent-dll-was-not-found?forum=wpdevelop

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/92ea9bfa-2968-4cb6-9c36-d0e70d09064d/uwpxbox-a-dependent-dll-was-not-found?forum=wpdevelop

Please let me know if any additional information would be helpful to assist in debugging this issue. If someone could confirm they also encounter errors deploying this sample to Xbox One (XDK) with Visual Studio 2017, that would also be helpful information.

For now, I am attempting to uninstall VS 2017 and will try again with a fresh install of VS 2015.

Thanks,
Mark

ball falling through floor

I imported the code to monogame and put the highscores and controls to windows platform. I did not manipulate any game physics or calculations.

The ball always falls through the floor except for the bridge area, which responds perfectly. Walls and pits respond fine. Contentimporter works well and all .tags are imported properly from mesh. Any ideas? Are there math differences between xna and monogame? Or handling of calculations between windowsPhone/Windows?

Need DirectX 12 Edition

For People who are new to DirectX Platform, this sample already provides DX11, DX3D11 experience but it would be most helpful it could include a DX12 optimised version of the Game, also showing like a separate window with DX11, DX12 comparison like in the BUILD-2015 DX12 Videos

Please consider this option. It would be really helpful for new people like myself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.