Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 15 2014 03:14
    Coalman opened #30
  • Jun 15 2014 03:13
    Coalman opened #29
  • Jun 15 2014 03:13
    Coalman opened #28
  • Jun 05 2014 13:52

    dongy7 on master

    added a scoring system (compare)

  • Jun 05 2014 13:45

    dongy7 on dong

    added basic scoring system added scoresystem class (compare)

  • Jun 05 2014 13:45

    dongy7 on master

    added color comparisons in chai… (compare)

  • Jun 04 2014 02:17

    Coalman on master

    updated gulp version (compare)

  • Jun 04 2014 01:35

    Coalman on gh-pages

    Update 2014-06-04T01:35:10.316Z (compare)

  • Jun 04 2014 01:31

    Coalman on master

    added random hsv coloring for d… (compare)

  • Jun 04 2014 01:17

    dongy7 on dong

    fixing spawning added gameover screen (compare)

  • Jun 04 2014 01:14

    Coalman on gh-pages

    Update 2014-06-04T01:14:42.906Z (compare)

  • Jun 04 2014 01:14

    Coalman on master

    fixing spawning added gameover screen (compare)

  • Jun 04 2014 01:00

    Coalman on master

    started using graphics to creat… started using graphics to creat… Fixed Dot Prototype and 1 more (compare)

  • Jun 04 2014 00:18

    dongy7 on dong

    fixing dot spawning Added basic scorer. Needs more … fixing gulp file to run clean i… and 14 more (compare)

  • Jun 03 2014 17:05

    dongy7 on dong

    started using graphics to creat… (compare)

  • Jun 01 2014 21:27
    Coalman closed #7
  • Jun 01 2014 21:27

    Coalman on master

    added gh-pages publishing (compare)

  • Jun 01 2014 21:26

    Coalman on gh-pages

    Update 2014-06-01T21:26:41.477Z (compare)

  • Jun 01 2014 21:23

    Coalman on gh-pages

    (compare)

  • Jun 01 2014 20:15

    Coalman on master

    linting fixed rending for dot colors (compare)

Michael Coleman
@coalman
git pull --rebase should help avoid those large merge commits
or like
git fetch
git rebase master
git merge
i think ish
not a big deal :smile:
but yeh, helps avoid merge errors imo
Dong Yeop Lee
@dongy7
if i want to render the dots using graphics do i need to add a render function in the dot prototype?
Michael Coleman
@coalman
i was actually about to get started on that lol
that's how i did it on the connection class
you can do that for now (make sure to call render from the Game state)
i think i'll look for a better way to do it, but can still use the graphic drawing code 4sure
Dong Yeop Lee
@dongy7
why can't i do this
ar Dot = function (color, graphics, x, y) {
this.graphics = graphics;
this.x = x;
this.y = y;
};
it says Uncaught TypeError: Cannot set property 'x' of undefined
Michael Coleman
@coalman
ummm
how is it being called?
is it being called with the new keyword?
that does sound really weird though
go ahead and push it to your branch
Dong Yeop Lee
@dongy7
ok i pushed it
Michael Coleman
@coalman
take these out:
Dot.prototype = Object.create(Phaser.Sprite.prototype);
Dot.prototype.constructor = Dot;
gonna reboot and get on linux
Dong Yeop Lee
@dongy7
Ok so the error is gone but the dots don't show up on the screen
Michael Coleman
@coalman
yeh, you need to call the render method manually
inside the Game state's render method
that's the part i don't really like, so i'll look into a way
to kinda hook into phaser events/calls
but for now, the manual call is okay
all the collision detection is going to break :frowning:
i wish skype worked like gitter, this chat just feels so good
except for spacing, each message feel like it gets a little too much margin, probably cause of the avatars
I was thinking about adding karma integration
but i can get started on part of this dot stuff if you'd like
actually, i'll just look into making some kind of game object pattern or something, so we don't have to manually call render events on non sprite objects
Michael Coleman
@coalman
also, let me merge your changes in
when you're ready to
i think it'll be easier for me to settle merge conflicts
Dong Yeop Lee
@dongy7
ok so just call Dot.render() in the game state?
Michael Coleman
@coalman
yeh, in the game state's render method
i think it has one, just make one if it doesn't
i think that's how i did the connection code
Michael Coleman
@coalman
so it looks like to register with the GameObjectFactory (game.add), it needs to be at least a DisplayObject (sounds like a pixi thing)
i'll look into maybe using that over just a composed object, starting to feel clunky with all the manual render calls and stuff
yeh, i think we can inherit from DisplayObject and get some nice things back
I'll try it out on Connection first
Michael Coleman
@coalman
gonna try creating an empty sprite and putting a graphics object inside it instead
might work better/be less clutter