sniper's People
sniper's Issues
Abstract velocity stuff from Player and Bullet
- getvel
- setvel
Class Player
Extends Renderable
and GameObject
Information about the player specific to the game. Maybe amo
.
Key press and logic
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.
Fix path to build script in readme
prepend ./script/ to path
Sent from my iPhone
Class Wall
Extends Rectangle
Make a unified file system that works for all OSs
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.
Abstract do bounce for any moving objects
Get the background nicely colored (not just pure black)
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.
CI
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.
Class Obstacle
Extends Rectangle
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.
Rotate the player to be facing the direction it's moving
What "facing" means is up to whoever implements this, but the player should rotate with the direction it's moving.
Class Rectangle
Has h and w size
Has x and y pos
Game resetting
When the player dies, it displays the score they reached and has a "play game again" button.
Add thin border to screen (from the OpenGL coordinates of +- 1)
We need this for if the screen is resized so the game doesn't fill the whole screen.
Class Bullet
Extends Renderable
and GameObject
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.