GithubHelp home page GithubHelp logo

stupid-space-game's Introduction

stupid-space-game

This is really stupid.

Running the game

Put files in a folder. Run. That's it!

(Only tested in Chrome.)

Controls

Movement

Use the mouse to move the wonky spaceship.

Shooting red rockets

Use the left mouse button to shoot rockets at green enemies.

Spawning enemies

If you have a middle mouse button use it to spawn enemies. Or wait for them to spawn. They will kill you eventually though.

stupid-space-game's People

Contributors

klase avatar krstffr avatar

Watchers

 avatar  avatar  avatar

stupid-space-game's Issues

Where to put random idead/thoughts/etc.?

Sometimes I think random stuff like: "hm, would be cool with a shot that turns enemies against their own instead of the player" or "hm, would be cool if the game was like Castlevania 2 in that you can go to different places and find stuff" or "would be cool with a shield".

Where should we put all this random stuff?

I guess this issues-part is a bit more specific/bug-related? Or maybe not?

Maybe a google doc?

Or a .md document in a ideas/ directory?

What do you think @klase ?

We need to Skype! :)

Rocket: hit stuff.

Right now rockets can't hit anything (as I moved that method from enemies-class to rockets-class and removed all logic) so that method needs to be created again. :)

Spawned enemy rockets don't disapper on enemy kill

If an enemy shoots a rocket and then is killed (while the rocket is still alive) the rocket will keep on living.

The bigger question here is probably: the enemy has a kill method. This method should also eliminate any rockets spawned. But these are spawned by the asShooter mixin, so the logic should probably come from the mixin.

Can you (in a clean and nice way) pass down additional logic into an inheriting class method from a mixin? Sort of like "from the mixin put destroyRockets() method in inheriting objects kill() method" in plain english.

This is in a way the same question as #9 I guess?

Un-kamizake-esque-enemies

Enemies should probably not try to just run into you, but rather move into distance and then shoot their own rockets at you.

Mixins: pass down update to inheriting objects

@klase see how I did it for the moveRockets method. The problem which might/will arise is when multiple mixins pass down multiple inherited updates (I think!). Now I created a fake mixin which does nothing but console.log something just to try if the SpaceShip class inherted both mixins update-methods.

Also I'm getting a bit drunk on folköl so this might make no sense. Going out now!

Also I wrote a longer issue on mixins (where to put them etc. do you think a mixins folder makes sense??) etc. but it disappeared.

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.