Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actionlog #16

Merged
merged 5 commits into from
May 19, 2017
Merged

Actionlog #16

merged 5 commits into from
May 19, 2017

Conversation

jameswestman
Copy link
Contributor

Adds most of the actions from #7. I haven't gotten around to testing all of them yet, but I will soon.

The flash effect is green for healed and renewed and red for attacked.
Action line for ranged attack (by towers and creeps) is now blue.
Fix a bug that caused creeps with no CARRY parts not to render.

Fix a bug that prevented creep speech bubbles from showing

Add attack effect
Copy link
Owner

@ricochet1k ricochet1k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, fix a few things and I'll merge this. Sorry it took me so long to review.

obj.saying = obj.actionLog.say;
}
if(obj.saying) {
say(this.g, obj.saying.message);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this into the case 'say' above, and get rid of obj.saying.


g.clear();
g.beginFill(color, v);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably much better to set g.alpha instead of redrawing every frame

let g = new PIXI.Graphics();
room.g.addChild(g);

const color = 0xffff00;
color = color || 0xffff00;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added as a default value to the color parameter above, like this: , color = 0xffff00) {

@jameswestman
Copy link
Contributor Author

I've made the changes you suggested. (I'm new to PixiJS, thanks for catching my mistakes!)

@ricochet1k ricochet1k merged commit 00ebc1f into ricochet1k:master May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants