Thursday, December 17, 2015

Actual Screenshots

Good news today! I made some actual progress on the EEG project! From what I found out yesterday, there is a specific class that acts as an event handler for anticipating each event that the EEG device sends to the application. The main events I look for are the ones in which threshold changes, amplitude changes, and rewards are given.

The rewards weren't exactly implemented yet, so I pulled in a series of objects that would begin glowing and floating upon reception of an award. The rewards (and the amplitude/threshold ratios for the sky and pitch) are subscribers to the event handler (Observer Pattern!) that activate these derived classes of the subscribers when the events are fired.

Luckily this leads to actual visuals and screenshots that can now be described as a "game":



As for studies, I looked ahead to figure out the amount of items I need to study and found out that the rough average is 9 items per day. Phew! I definitely have a ways ahead of me. A lot of what I'm now studying is a bit of a retread in certain spots (C++ style casts, the difference between reference and pointer) but I did learn some interesting bits, including the reason why people lean towards prefixes instead of postfixes for incrementing and decrementing. The return then increment style of postfix requires an extra object to be made, which is not too bad for built in types. However, if the object is a large object iterator, prefixes are definitely recommended to increment then return, not requiring a temporary copy.

As for the work I'm doing on the prototype, the other facets of AI other than the controller are proving to be extra tricky. It's particularly archaic in how the Receive Tick as well as Receive Execute events even have C++ counterparts. I'll find it somehow.

No comments:

Post a Comment