Coder Social home page Coder Social logo

paladin's Introduction

Paladin

Paladin is a player vs. player or player vs. CPU duel in the vein of Star Control. It's also a game I'm building to teach myself gamedev and Rust, so it is pretty raw.

Controls

Green Ship

  • 'W' == Thrust
  • 'A' == Rotate Counterclockwise
  • 'D' == Rotate Clockwise
  • 'SPACE' == Shoot Laser

Red Ship

  • 'Up' == Thrust
  • 'Left' == Rotate Counterclockwise
  • 'Right' == Rotate Clockwise
  • 'Right CTRL' == Shoot Laser

Game Physics

Paladin has newtonian physics and momentum with forward thrust being your primary means of movement. If you want to slow down, turn around and apply opposite thrust.

The game map warps around, so you can both shoot and travel through the sides of the map.

Each player starts the game with 150 hit points. Attacks from lasers, missiles (eventually) or collisions reduce this total.

Laser strikes also impart momentum and apply slight jitter to the ship struck.

When a ship is reduced to 0 or fewer hit points, it is destroyed. The surviving player gains a point and both ships are restored and returned to their starting positions.

How to run

To run the game, use

cargo run --features "vulkan"

on Windows and Linux, and

cargo run --features "metal"

on macOS.

For building without any graphics backend, you can use

cargo run --features "empty"

but be aware that as soon as you need any rendering you won't be able to run your game when using the empty feature.

Resources

This game is a learning project. The resources I've used to piece it together include:

paladin's People

Contributors

toferc avatar

Stargazers

Addison van den Hoeven avatar  avatar Soheil Eivazy avatar Kristoffer Andersson avatar T. C. Vincent Leung Yin Ko avatar Stanislav Tkach avatar Radio Guy avatar Giovanni Dejan avatar Andréy Lesnikóv avatar Ana Gelez avatar Andrew Prentice avatar

Watchers

James Cloos avatar  avatar  avatar

paladin's Issues

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.