Giter VIP home page Giter VIP logo

spaceshooter's Introduction

YASIC - Yet Another Space Invader Clone

The game is initially based on Unity's Spaceshooter tutorial. To see what it originally looks like, check out the first 10 seconds of this video https://www.youtube.com/watch?v=kX0hnOS1QQQ

Highlight Reel of Gameplay Features: https://youtu.be/jlYaBihW3aU

Visit https://nramburrun.itch.io/spaceshooter to check it out! EDIT: Current version on itch.io has major errors. Please check the highlight reel and feel free to DM for more information~

Gameplay Changes

I added the following gameplay mechanics and there will be a brief description of how each of the features work.

Homing Missile

Two types of Homing Missiles are present:

Guaranteed Hit (WIP) - This type of missile perfectly tracks the position of the player. When the missile is spawned, it gets the position of the player and updates it as the player moves around the scene. The velocities in the x and z direction are adjusted based on the weight (importance) of the old/new velocity. This helps smoothing into a velocity direction and magnitude to prevent a sudden jerk movement. Vector 3 Slerp can also be used for this.

Almost-homing Missile - This missile shoots the bolt at an approximate position based on where the player was at time of spawning. The missile gets the position of the player on creation, and a force is added to the missile according to the relative vector position of the player according to the missile. The missile itself doesn't track the player, the enemy ship does. There's an instance of a player object that updates every frame to see where the player is, and fire at that location.

Spawning Babies

Not unlike the common myth of Stork carrying 10 pounds of a lifetime of responsibilities to your doorstep, this feature enables the asteroid that you destroy to spawn smaller and more annoying versions of itself. They are spawned in a circular fashion with dynamic angle allocation.

Watch Your Back

The term "Having eyes at the back of your head" works well in that case. Instead of falling off into the abyss, the asteroids decide to take revenge on you when you killed their babies, you monster. They bounce at a normal direction depending on their velocity and position of impact at the bottom of the screen, and float towards you.

PowerUps

This is fairly common across games and I'm a big fan of powerups. There's currently 3 different types of powerups available.

Machine Gun (MG) - When you fire a shot, there's a delay between the next shot that you can fire. When you pick up the Machine Gun, using the RMB will remove that delay for 2 seconds so that the bolts come out in a "machine-guney" way.

Rocket Shot (RS) - A special type of rocket that takes a while to deploy but destroys everything in it's path.

Health Potion (HP) - Band-Aid for your boo-boo.

They work in a similar way as spawning hazards/enemies. They are not that common and they don't have the same probability of spawning in the scene.

spaceshooter's People

Contributors

nramburrun avatar

Watchers

 avatar  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.