These are chat archives for codefellows/sea-f1-TAs/Brian

29th
Sep 2014
Matthew Conquergood
@kristjin
Sep 29 2014 01:48
Brian, you out there?
Brian Caldwell
@Caldwerl
Sep 29 2014 04:22
I am now
Sorry for the slow response
Matthew Conquergood
@kristjin
Sep 29 2014 13:28
I had to go to bed. And I have to work this morning. But if you could pull my code down and take a look at it I'd welcome some help this afternoon around 3. Everything seems to be working as expected except that all the moves get made and everything BEFORE the game components actually display on screen. So all I get, after clicking a bunny, is the game screen, with the final result displayed, I don't actually see the race happen. Haven't been able to figure out what I'm doing wrong there. It's in the JS though. Any help would be appreciated.
Brian Caldwell
@Caldwerl
Sep 29 2014 17:44
Hey im looking at it now
Matthew Conquergood
@kristjin
Sep 29 2014 18:13
I'm on my lunch break right now until noon so if you're here and want to chat or ask any questions, I'm free for a few.
Brian Caldwell
@Caldwerl
Sep 29 2014 18:14
Yup, I just got the animation working at human speed
Matthew Conquergood
@kristjin
Sep 29 2014 18:14
nice, what did I do wrong?
Brian Caldwell
@Caldwerl
Sep 29 2014 18:14
Put it in a while loop
haha
Matthew Conquergood
@kristjin
Sep 29 2014 18:14
derp
Brian Caldwell
@Caldwerl
Sep 29 2014 18:14
While loops are great for computation, bad for animation
Matthew Conquergood
@kristjin
Sep 29 2014 18:14
aha
Brian Caldwell
@Caldwerl
Sep 29 2014 18:15
So here is what you are to do
Instead of the while loop
use this little number
var timerID = setInterval(function() {
Same spot as the while loop
where the loop ends
put this
}, 500);
500 is in milliseconds
Adjust to whatever speed you want
Anywhere that this should end
put this
clearInterval(timerID);
I leave the implementation to you
setInterval acts as a while loop, running the contents of the function over and over, with a break of the set time in milliseconds, until clearInterval is called
Matthew Conquergood
@kristjin
Sep 29 2014 18:18
Makes sense to me.
Thanks, Brian. I'll see what I can get done before the end of lunch. :)
Brian Caldwell
@Caldwerl
Sep 29 2014 18:18
Cool, shouldnt take long and watch the closing brackets
Matthew Conquergood
@kristjin
Sep 29 2014 18:23
And done! Nice. Thank you so much.
Now I just need to put in some information about the results... I want to float some text over the background.
Would I need to use a div for that, I guess, with a <p> tag?
Brian Caldwell
@Caldwerl
Sep 29 2014 18:24
Could just be a p
Matthew Conquergood
@kristjin
Sep 29 2014 18:24
kk
Brian Caldwell
@Caldwerl
Sep 29 2014 18:24
Make sure its readable
distinct background and text color
Matthew Conquergood
@kristjin
Sep 29 2014 18:26
nod This is virtually ready to be turned in, save for notifications.
Finally.
and for the record, I didn't make those graphics, so feel free to laugh at them all you like.
Brian Caldwell
@Caldwerl
Sep 29 2014 18:26
haha was wondering
15mb is a bit much for that quality I think
Matthew Conquergood
@kristjin
Sep 29 2014 18:27
dude
you can't even imagine
They are like, 10% the original size
and they were originally done in .gif format
and the transparency wasn't right
and the size of the background was enormous
Bigger than QHD size
I mean, absurd
all done by a friend of mine who has been going to school for about a year now for graphic design. 0.0
I mean, for heaven's sake he asked me if he could give them to me in PDF format at one point.
Brian Caldwell
@Caldwerl
Sep 29 2014 18:29
haha
Wouldnt even know what to do with them that way
Matthew Conquergood
@kristjin
Sep 29 2014 18:29
Yeah. Oh yeah. Exactly.
I was like "no, I need t ransparent backgrounds on images........."
Just crazy.
The rabbit images were all on differently sized canvasses and in different SPOTS on the canvas.
I mean, hello?
And then he asked me if I'd pay him for the work.
What on Earth do you say to THAT??
I offered him $5
It was quite an eye opening experience. :)
Brian Caldwell
@Caldwerl
Sep 29 2014 18:31
That sure is a thing
Matthew Conquergood
@kristjin
Sep 29 2014 18:31
oi vey
I mean it was just... it was hilarious really. Just start to finish. So it was just one of the things I had going on with this project which has been particularly rude. :)
so glad when it's over.
jongmink
@jongmink
Sep 29 2014 18:32
Hi Brian. I have a question about merge sort. Many websites demonstrate how to merge two "sorted" arrays into one array, but they don't explain how to sort the two arrays....
Matthew Conquergood
@kristjin
Sep 29 2014 18:32
I might use comic sans for my font on the notifications, because I can think of nothing more appropriate really.
Brian Caldwell
@Caldwerl
Sep 29 2014 18:35
When merging
You break up the arrays until they are a single piece of data
You sort them when putting them back together
If you havent seen many algorithms like this before there are simpler less efficient ones I would suggest doing first to get the general idea of it understood
jongmink
@jongmink
Sep 29 2014 18:40
Yeah, I should use a different sorting algorithm. The example is helpful though. Thanks!
Brian Caldwell
@Caldwerl
Sep 29 2014 18:41
check out http://bigocheatsheet.com/ if you havent already
Matthew Conquergood
@kristjin
Sep 29 2014 23:38
Hey Brian, apparently I missed responded to the class 5 and 6 attendance quizzes. Can you update both of those to show I attended? I did.
Looks like I missed week 3 feedback too but that's ok. I'll have feedback for the last week when that survey is available.
ahem Make that the attendance quiz for class 5, 6, and 7. >.<
Brian Caldwell
@Caldwerl
Sep 29 2014 23:40
Will do
Matthew Conquergood
@kristjin
Sep 29 2014 23:43
tx