tolache / head-first-c-sharp Goto Github PK
View Code? Open in Web Editor NEWHead First C#
Head First C#
Levels keep incrementing in Form1.Text
when there is multiple enemies nearby
Let invaders and shots move while player is dying.
Player doesn't blink when getting hit
There is no drink button.
Add fade-in and fade-out star animations
Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'Invaders.Model.Invader' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Invaders.ViewModel.InvadersViewModel.OnModelShipChanged(Object sender, ShipChangedEventArgs e) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\View
Model\InvadersViewModel.cs:line 220
at Invaders.Model.InvadersModel.OnShipChanged(Ship ship, Boolean killed) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\Model\InvadersModel.cs:line 4
97
at Invaders.Model.InvadersModel.<Update>g__CheckForInvaderCollisions|43_4() in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\Model\InvadersModel.cs:lin
e 355
at Invaders.Model.InvadersModel.Update(Boolean paused) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\Model\InvadersModel.cs:line 167
at Invaders.ViewModel.InvadersViewModel.OnTimerTick(Object sender, EventArgs e) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\ViewModel\InvadersView
Model.cs:line 288
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at Invaders.App.Main()
Unhandled exception. Invaders.Model.InvalidInvaderTypeException: Failed to determine Invader type in wave 4 and row 6
at Invaders.Model.InvadersModel.<NextWave>g__GetInvaderType|48_0(Int32 wave, Int32 row) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\Model\Invaders
Model.cs:line 501
at Invaders.Model.InvadersModel.NextWave() in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\Model\InvadersModel.cs:line 446
at Invaders.Model.InvadersModel.Update(Boolean paused) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\Model\InvadersModel.cs:line 164
at Invaders.ViewModel.InvadersViewModel.OnTimerTick(Object sender, EventArgs e) in C:\Users\Anatoly.Cherenkov\repos\head-first-c-sharp\Chapter_16\Invaders\ViewModel\InvadersView
Model.cs:line 297
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at Invaders.App.Main()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.