Space Invader

Tutorial for childrens learning Object-Oriented Programming


Movement: Left and Right Arrow Key

Shoot: F key

Motivation

The above embeded game is written in processing (p5js) on OpenProcessing.org. I have the honour to teach many young students the basics of programming languages such as Python, Java, C#. Since it is very challenging for them to understand object-oriented concepts, instead of just explaining in long and boring definitions, the space invader projects were taught and rebuilt in different languages.

XD XD
XD

Adapting to different languages features and student's ability, each of the project implementation is slightly different. In the project shown above, one of the emphasis was to provide a chance for student to practice drawing primitive shapes with processing, while be creative with their custom character. Hence the out-of-place penguin as our fighter jet.

XD

Building a game excites the student and make them more focus on learning, as a result, the efficiency of learning is increased.
With context provided by the game rules, I am able to teach difficult concepts surrounding classes, instances, subclass and inheritence in coherent manner with examples.

If you are interested in using the projects:

Processing
Python