Dominique Louis 177b9c2f2c Ensure all projects have a .config directory. 2 місяців тому
..
.config 177b9c2f2c Ensure all projects have a .config directory. 2 місяців тому
.vscode 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому
Core 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому
Platforms 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому
AsteroidBeltAssault.sln 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому
README.md 787aa50223 History Reset and Projects updated to SDK and MG 3.8.* 3 місяців тому

README.md

Asteroid Belt Assault

This project contains the Asteroid Belt Assault game as it is at the end of Chapter 5.

This was taken from the Book XNA 4.0 Game Development by Example: Beginner's Guide by Kurt Jaegers Published by PACKT Publishing which can be found here http://www.packtpub.com/xna-4-0-game-development-by-example-beginners-guide/book

For a complete discussion of the code please buy the book as it is worth the money.

About

Asteroid Belt Assault is a cross-platform 2D space shooter game originally developed for XNA 4.0, now ported to MonoGame. The project demonstrates game development concepts such as sprite management, collision detection, particle effects, and sound, following the structure from the book "XNA 4.0 Game Development by Example: Beginner's Guide" by Kurt Jaegers.

Supported Platforms

  • Windows (DirectX)
  • DesktopGL (cross-platform)
  • Android
  • iOS

Building and Running

Prerequisites

  • .NET 8 SDK
  • MonoGame (if not included via NuGet)
  • For Android: Android SDK & emulator
  • For iOS: macOS with Xcode & simulator (or networked Mac for Windows users)

Windows

  1. Build: Use the VS Code task build-windows or run:

    dotnet build Platforms/Windows/AsteroidBeltAssault.Windows.csproj
    
  2. Run: Use the VS Code launch config Run Windows or run the built .exe from Platforms/Windows/bin/Debug/net8.0-windows/.

DesktopGL

  1. Build: Use the VS Code task build-desktopgl or run:

    dotnet build Platforms/Desktop/AsteroidBeltAssault.DesktopGL.csproj
    
  2. Run: Use the VS Code launch config Run Desktop or run the built binary from Platforms/Desktop/bin/Debug/net8.0/.

Android

  1. Build: Use the VS Code task build-android or run:

    dotnet build Platforms/Android/AsteroidBeltAssault.Android.csproj
    
  2. Deploy & Run: Use the VS Code launch config Deploy and Launch Android or run:

    dotnet android deploy --project Platforms/Android/AsteroidBeltAssault.Android.csproj
    

    The app will be deployed to the default Android emulator.

iOS

  1. Build: Use the VS Code task build-ios or run:

    dotnet build Platforms/iOS/AsteroidBeltAssault.iOS.csproj
    
  2. Deploy & Run: Use the VS Code launch config Deploy and Launch iOS or run:

    dotnet ios deploy --project Platforms/iOS/AsteroidBeltAssault.iOS.csproj
    

    The app will be deployed to the default iOS simulator.


For more details, see the book or the source code in the Core and Platforms directories.