Search for tag: "attribute"

Zoom Dec. 1. GUI Applications

In this presentation we talk more about the game2d module that is used in the final assignment. This module contains all of the classes you will subclass.Most of the demo code that you will need for…

From  Hannah Lee on December 3rd, 2020 16 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 29.5 Timed Animation

Our primary application of coroutines in the final assignment is timed animations. In this video we talk about what these are and how to design them with the GameApp class.

From  Hannah Lee on December 3rd, 2020 33 plays

Lesson 28.2 Iterable Classes

In this video, we show how to make our own iterable and iterator classes. These are actually tightly linked, and you need one to create the other.

From  Hannah Lee on December 3rd, 2020 26 plays

Lesson 27.10 Model Classes

Through the semester, you have essentially been writing application controllers. In the final assignment, you will need to do that again. But you will also be creating your own models this time. In…

From  Hannah Lee on November 30th, 2020 33 plays

Lesson 27.9 Model-View-Controller

When we break up out application in multiple classes, we need to give each class a role. One of the most popular ways to do this is designate a class as a model, a view or a controller. In this video…

From  Hannah Lee on November 30th, 2020 36 plays

Lesson 27.6 Application State

Even though you only need to implement three methods in GameApp subclass, this methods will eventually get very long. In this video we introduce the concept of application state, and talk about how…

From  Hannah Lee on November 30th, 2020 44 plays

Lesson 27.5 Mouse Input

In the previous video we primarily focused on keyboard input. Mouse input (called “touch” by kivy) is a little more difficult. In this video we talk about how mouse input works and how to…

From  Hannah Lee on November 30th, 2020 37 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 25.6 Complex Custom Error Types

When we were recording the video on custom error types, it ran quite long. So we decided to break it up into a second video. In this video we look at a slightly more complicated error type. We also…

From  Hannah Lee on November 12th, 2020 37 plays

Lesson 24.3 Dynamic Attribute Access

Types guarantee that an object supports a set of operations (methods) and has a certain set of attributes. However, in this video we show that we can actually get this information without typing an…

From  Hannah Lee on November 12th, 2020 32 plays

Zoom Nov. 3. Object-Oriented Design

In ths presentation, we will spend the time creating several example classes. This is another major part of the next exam.When we work with classes, it is very important to pay attention to…

From  Hannah Lee on November 8th, 2020 7 plays

Lesson 23.8 Properties (OPTIONAL)

This video introduces an advanced topic that is completely optional and will not appear on any exam. Classes like RGB and Point3 appear to enforce their invariants without any getters and setters.…

From  Hannah Lee on November 8th, 2020 10 plays

Lesson 22.8 Subclass Initializers

In this video we show that thte primary purpose of the super function is in the initializer method of the subclass. That is because we cannot guarantee that all of the attributes for the parent class…

From  Hannah Lee on November 8th, 2020 31 plays

Lesson 21.6 Immutable Attributes

Getters and setters have another advantage in that they allow us to completely disable to any changes to an attribute. This allows us to separate attributes into mutable and immutable attributes,…

From  Hannah Lee on October 30th, 2020 47 plays

Lesson 21.5 Data Encapsulation

In this previous video we introduced the concept of getters and setters. But how do we force the user to use these when the attribute is so much simpler. In this video we talk about the concept of…

From  Hannah Lee on October 30th, 2020 50 plays