Search for tag: "frame"

Zoom Dec. 3. Generators

In this presentation we will review, generators which lead into the last major topic of the course (coroutines). Once again, this will involve a lot of visualization.We also start off this…

From  Hannah Lee on December 3rd, 2020 12 plays

Lesson29.6 Animation Coroutines

Just as it was hard to design iterators with classes, it is also hard to design timed animation with classes. In this video, we show how to use coroutines to make animation design so much simpler.

From  Hannah Lee on December 3rd, 2020 29 plays

Lesson 28.4 Generator Visualization

Generators look like normal functions, but they do not behave like them. In this video we show how to visualize them, using the Python Tutor.

From  Hannah Lee on December 3rd, 2020 23 plays

Lesson 28.3 The yield Statement

Making iterator classes is hard. In this video, we show an alternative, allowing us to write the iterator as a ‘function”. This requires the addition of a new python statement, the yield…

From  Hannah Lee on December 3rd, 2020 26 plays

Lesson 27.7 Advanced State Triggers

The state triggers we saw in the previous video were pretty simple. In this video, we talk about using a more complicated trigger: a double click. Double-clicking is more complicated because it needs…

From  Hannah Lee on November 30th, 2020 38 plays

Lesson 27.4 Application Input

The big difference between a game and a movie is the ability to respond to player input, be it from a mouse or a keyboard. In this video we show how to us the tools provided by the GameApp class to…

From  Hannah Lee on November 30th, 2020 39 plays

Lesson 27.2 Animation Frames

The while-loop that drives the game is hidden. This is going to create some interest challenges, particularly when you need variables that carry over from animation frame to animation frame. In this…

From  Hannah Lee on November 30th, 2020 45 plays

Lesson 25.3 Error Types and the Call Stack

After the last video, try-except looks less like an if-else statement and more like an if-elif-else statement. As we see in this video, this has profound effects on how errors interact with the call…

From  Hannah Lee on November 12th, 2020 40 plays

Lesson 22.1 Classes and Code Reuse

In this video we motivate the conept of subclasses by looking at a potential application. As software becomes more and more complex, we have to leverage features that allow us to work with other,…

From  Hannah Lee on November 8th, 2020 34 plays

Davis Vision - Benefair Week 2020

Faye White, Representative from Davis Vision, discusses the aspects of the Davis Vision Plan as part of the Open Enrollment period during Benefair Week 2020.

From  Gerald Deis on November 6th, 2020 54 plays

Lesson 20.7 Intializers

In this video, we introduce the most important method definition in any class: the initializer. The initializer is responsible for creating all the attributes so that the user does not need to worry…

From  Hannah Lee on October 27th, 2020 44 plays

Lesson 19.7 Mutable Table Functions

Dictionaries are mutables and support mutable functions. But this is a case where dictionaries are slightly different from lists. We are allowed to loop over a dictionary as we modify it, so long as…

From  Hannah Lee on October 27th, 2020 32 plays

Lesson 19.6 Immutable Dictionary Functions

Since we can loop over dictionaries, that means we probably want to use them in functions with accumulators. In this video we show how to do this and why they are not that much different from lists.

From  Hannah Lee on October 27th, 2020 31 plays

Lesson 18.6 Mutable Table Functions

In this video we show how to write a mutable function on a table of data. Once again, this is very similar to writing an mutable function on a traditional list.

From  Hannah Lee on October 27th, 2020 31 plays

Lesson 17.8 Recursion Performance

In this video, we show another reason to pay attention to the division step: performance. In fact, we show an example where a change in how we divide the data can improve performance by several…

From  Hannah Lee on October 19th, 2020 37 plays

Lesson 17.3 Recursion and the Call Stack

Because a recursive function calls itself, it will have multiple call frames on the call stack. In this video we show exactly why we should be concerned about this and why it will affect our function…

From  Hannah Lee on October 19th, 2020 50 plays