-
Notifications
You must be signed in to change notification settings - Fork 13
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
Actionlog #16
Conversation
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
There was a problem hiding this 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.
src/scripts/skins/original/creep.js
Outdated
obj.saying = obj.actionLog.say; | ||
} | ||
if(obj.saying) { | ||
say(this.g, obj.saying.message); |
There was a problem hiding this comment.
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.
src/scripts/actions.js
Outdated
|
||
g.clear(); | ||
g.beginFill(color, v); |
There was a problem hiding this comment.
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
src/scripts/actions.js
Outdated
let g = new PIXI.Graphics(); | ||
room.g.addChild(g); | ||
|
||
const color = 0xffff00; | ||
color = color || 0xffff00; |
There was a problem hiding this comment.
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) {
I've made the changes you suggested. (I'm new to PixiJS, thanks for catching my mistakes!) |
Adds most of the actions from #7. I haven't gotten around to testing all of them yet, but I will soon.