Coder Social home page Coder Social logo

mg's Introduction

MG

This Monogame solution is a journey to discover what can be done with Monogame. This involves discovering problems and finding solutions. Having a finished product is not an expectation, its all about the journey and not the destination.

There are a few things in the Void Control project that set it apart. While this is not a finished game it is playable and has some interesting elements. Each void ship has 6 ship systems.

  • Cloak reduces detection range by opponants
  • Reactor generates energy for ship systems
  • Sensor increase detection range of opponants
  • Shield protects from damage from colisions with opponants and bullet
  • Thruster increases maximum acceleration and ammount of power used to accelarate
  • Weapons increases amount of power and speed in bullets

Screenshot

PID

Motion control starts from position velocity and acceleration. Starting with the player only having control over accelaration, it seems fair for the non-players to have these same constraints. In Void Control the non-players approachs weapons firing range of the target while at the same time avoiding other non-players. This results in control that is computationaly easy while having some profound depth. The non-players naturaly flank the player and avoid colision with each other. While the control implements P, I and D the I term is not really helpfull in this application.

Hash

The starfield background places stars based on a hash of visable points on a grid. The results in a non-repeating background that looks like a random distribution but it is completely deterministic. Each star uses the hash to apply an offset, change the color and size. The hash is also used to modulate the color of the stars causing them to flicker.

Non-players are also placed into world space in a simular way of hashing points on a grid.

UI

A user interface is implemented to provide a heads up display of information while playing. This is all done in a manner that follows consepts of controls that are placed on forms in the style of visual studio. Extending a base control provides a flexiable solution with a low cost to develop with fast performance. Even the minimap is an extention of the base control.

Looking around for icons to use with menus the best option was to use something that already existed and was free. Microsoft includes Segoe MDL2 Assets icons with windows 10 so it turns out to be a good solution.

Aim

Its nothing new but aiming at where the target is going to be instead of where the target is makes a big diference. Looking around for a while without finding anything just right I copied the method from here Calculating Lead For Projectiles and revised it to work without unity.

mg's People

Contributors

davidpmarsh avatar david-marsh avatar

Watchers

 avatar

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.