Giter VIP home page Giter VIP logo

sniper's People

Contributors

adamhutchings avatar dekrain avatar edwinchang24 avatar jakeroggenbuck avatar

Stargazers

 avatar

Watchers

 avatar

sniper's Issues

Class Player

Extends Renderable and GameObject

Information about the player specific to the game. Maybe amo.

Player picks up bullets

Make it so that bullets pause for a short time before respawning, and in that time a player can pick up the bullets and add them to a count of bullets they have.

Class GameObject

Has an x and y position.
Has a x and y velocity.

Can move in any direction.

Mouse clicking detection / GUI component system

We should have a list of all active GUI components running, (and each GUI component extends Renderable and has a rectangle representing their area on the screen), so that whenever the mouse is clicked all of them are checked and activated if necessary.

Sniper

Add a Sniper (using one of the other textures) that follows the player around and, once bullets are added, fires them at the player.

Logging

We should ideally log with at least four degrees of severity (debug, normal, warning, fatal), and provide time of running.

Player can fire back at Sniper

With the bullets the player has from the last issue, they can fire them back at the sniper, and if these bullets hit the sniper the player gains score.

Actually add buttons

This might be a long one to do, but we have truetype working for now so it shouldn't be too bad to do. A button, of course, is a GUI component with some text rendered over a rectangle.

Class Renderable

Has a .render() method. This class is meant to be inherited by others.

Address screen resizing

Render the screen and adjust various coordinates so the game renders without distortion if someone tries to resize the screen while playing.

Game resetting

When the player dies, it displays the score they reached and has a "play game again" button.

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.