I don't wanttogetanythingliketheboilerplatecodestandbetweenmeontheideathat I'm tryingtopresent.
Nowtheregularswillalsoknowthat I startwith a blankinmainfunctionlikethisandsimplyadd a whilelooptorepresent a gamely.
Andyoualsoknowthatinadditiontothegameloop, I alwaysadd a screenbufferandusedthesetconsoleactivescreenbufferfunctionso I cantreattheconsoleisbasicallyanarrayofpixels, and I usedthefunctionrightConsulOutputcharactertoupdatethescreen.
Call a userfunctioncalledonnewsupdate, and I passedtothattheelapsedtimeandfinally I updatethetitlebaroftheconsoleandoutputthescreenbufferaccordingtotheparametersthatwespecifiedintheconstructconsolefunction.
Usingtheclasscouldn't besimpler.
Thefirstthingweneedtodoisincludethefiletoactuallydefineourbaseclass L.
L C Councilgameengine.
Then I'm goingtocreate a secondclasscalledDemo, whichinheritsfromthat, sowe'lljustneedtofillintheobviousthings.
Oneofthereasons I'm keentodothisbecause I knowsomeofyouthinkOh, no, we'removingawayfromthesimpleformatisitallowsmetodemonstratereallycoolalgorithmsverysimplysuchasthis, andyou'llsee a lotmoreofthisinthenextvideo.