GithubHelp home page GithubHelp logo

rezoner / unfinished-asteroids Goto Github PK

View Code? Open in Web Editor NEW
784.0 784.0 130.0 2.84 MB

IT STARTS HERE --->

Home Page: https://github.com/rezoner/unfinished-asteroids/wiki

License: MIT License

CSS 0.04% JavaScript 99.96%

unfinished-asteroids's People

Contributors

jackrugile avatar rezoner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unfinished-asteroids's Issues

Chapter 5 Question - How to extract bullets from image?

Hello Boss :)

I didn't reach Mike, so I thought I may ask you.
I never did something with spritesheets before, so I'd like to ask you how I should extract the bullets from the spritesheet. Should I count the pixels and then put them in a sprite array or what?

Thank you for the answer
tobipch

Cahpter 6: this.playSound is not a function

I have loaded the sounds using this.loadSounds() in App.js but when I go to call this.playSound("shoot"); in Player.js I get the following console error

TypeError: this.playSound is not a function

Chapter 09 - Animation

Hi I'm having trouble getting the coins to animate (and your subreddit has been archived so I can't comment there).

I'm assuming I have to update the sprite in the step function, here's what I've got so far...

var new_sprite = [];
var index = this.sprites.indexOf(this.sprite);

if (index+1 <= this.sprites.length) {
  new_sprite = this.sprites[index+1];
} else {
  new_sprite = this.sprites[0];
}

This didn't work, I have also tried the following:

var sprite_index = this.sprites.indexOf(this.sprite);
this.sprite = (sprite_index+1 <= this.sprites.length) ? this.sprites[sprite_index+1] : this.sprites[0];

I use this.sprite in a drawReqion call in my render function.

Both methods give me the following error:

CanvasQuery.js:438 Uncaught TypeError: Cannot read property '0' of undefined

Any tips on how to do this? you're playground.js docs talk about using an Atlas, but that doesn't seem relevant to this example.

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.