Level 6: Online Articles - IncrediCoders/Python1 GitHub Wiki
Queen Cobra added this page on June 6, 2023
Here are some more articles that will help you with collisions, character attacks, and character states. You can skip down to these sections on the page:
-
Collision Detection - inventwithpython.com - This site gives you a description of what collision detection is and the different function that can be used. It also provides a coded example that is written out and it shows an example of the description they just gave.
-
Collisions - cocos2d.org - This page gives a description of six categories that relate to collisions, you can click on the different categories and it will scroll down to a description of that category, as well as a written out coded example of that category.
-
Pygame Collision Detecting - Stack Overflow - This site answers questions, and this one asks "How do I detect collision in pygame?" The answer given is a written out coded example, as well as a description about the different parts that have to do with collisions.
-
Bouncing Balls Collision Detection - Stack Overflow - This site is the same as the last, however this questions is more specific to an actual example of where collisions in real life could be written out in code. In this case, the question being asked is how to write code for the collision of bouncing balls. The answer provided is a written out coded example with a description of each of the parts and highlighting the most important parts.
-
Melee Combat Pygame - stackexchange.com - This site is another question and answer forum, and the question asked is about another type of collision which is melee combat. The answer given provides the code for creating a projectile and also how it interacts with other objects.
-
Collisions Between Static and Moving Objects - ClearCode - In this video, he describes how to calculate collisions between static and moving objects by using rectangles and colliderect and collide point in python and pygame using a written out coded example program in Python.
-
Collisions in Pygame - CodeBucket - In this video, he describes how collision work in Python using pygame and the different commands used. Then, he provides a written out coded example of how to use these commands in a program and what they mean for the overall program.
-
Python Collision Detection - TokyoEdtech - In this video, he describes the basic concepts behind collision detection, four different types of collision detection, and how to code three of them using written out coded examples that he created and describing what each command means.
-
Collision Detection - Kathie Quick - In this video, she describes how to add a second image to the canvas and learn about boundary boxes to detect collision between the two images. The collision has to do with the alien, and the different commands that change the collision with the aliens.
-
Collision and Hit Boxes - TechWithTim - In this video, he describes how to check if two objects are colliding and testing if the projectile shot from the character enters the hit box of our enemy and he does all of this in python 3 using the module pygame.
-
Collision Detection in Python - codespeedy.com - This site gives you an example of collision detection specifically in python. There are written out coded examples, as well as windows of the result of code run that displays objects colliding in different ways.
-
Two-Dimensional Collisions - scipython.com - This site gives an example of two-dimensional collisions. Most of the examples are moving pictures that show objects interacting with each other. There is also a brief description of how the collision works and what the code looks like to create that collision.
-
Detecting Collisions Python - pythonprogramming.net - This site starts by giving a video example of detecting collision in Python. Then, there are several written out coded examples that go into detail about the specific parts of collision in Python.
-
Prototyping a Battle System - rmgi.blog - This site goes into detail about the different steps used for prototyping and using that to write a simple battle code program in Python. There are also coded examples of each of the steps after the description of those steps.
-
Python Pokémon Battle - Stack Overflow - This site is a question and answer forum, and the answer to the questions gives a coded example for several Pokemon game features. This includes losing HP in battle and detecting when a player gets to 0 HP.
-
Battle a Random Enemy - Stack Exchange - This site provides an in-depth coded example of how to write code for a random enemy in a battle. There is also a brief description at the beginning and the end that describe what each part means.
-
Turn Based Battle Simulator - Stack Exchange - This site gives an in-depth example of written out code for a turn based battle simulator. It gives a brief description at the beginning and the end about what each of the parts means to the program.
-
RPG Battle System - Valthalin Reuchin - This YouTube video gives you an in-depth coded example of an RPG battle system which will involve both collisions and character attacks. The main character attacks will be between what the video describes as "character" and what the video describes as "enemy."
-
Game Characters Attack Speed - Reanne Galero - This is a shorter video that goes into detail on specifically the characters attack speed. It provides several different whiles, as well as a verbal description of the different parts of the program as it is being written out in the video.
-
Attack Animations - coderslegacy.com - This site gives you an example of the different types of attack animations that can be used. It provides coded out lines for both attack animations for the person on the right (Player 1) as well as the same thing for the person on the left (Player 2).
-
Collision Detection Player Attacks - redhuli.io - This site gives you an example of creating a game in Python using pygame collison detection, as well as player attacks. There are all descriptions of each of the parts at the end of the page.
-
Python Battle Game - replit.com - This page provides an example of having a choice of who the character will play. In this program, there is an example for having the character choose who they will attack, and also a coded out example of a random opponent for the character to attack.
-
RPG Game in Python - balau82.wordpress.com - This site gives takes you step by step on how to build a RPG game in Python. There is a description of what is needed to download python, and then it gives the code for this RPG game that uses character attacks.
-
Python Design Patterns - refactoring.guru - This page gives a brief description about what state is, and how it can be used in coding. Then, it provides a written out coded example of what was described. In this conceptual example, this page asks three questions, and throughout the code, each of these questions are uniquely answered and complete the design pattern.
-
State Design Patterns - refactoring.guru - This site gives several categories of scenarios when using character states. It provides a description and a coded example for things like a possible problem, and the solution for that and also a real world analogy to picture this idea better.
-
State Machine Patterns - readthedocs.io - This page goes in-depth specifically about state machines. There are also written out coded examples throughout the page, but it is mainly the description. It also talks about table driven state machines.
-
Python Simple State Machine - dev.to - This site describes the process of building a simple state machine in Python. The two main things that it talks about are use cases and how to use state machines, and it also provides coded examples for each of those descriptions.
-
Finite State Machine - python-course.eu - This page talks about the finite state machine. It goes into detail about what it means, as well as how it works. It also provides a simple example of use cases and state machines in a diagram going through all the possible scenarios.
-
Python State Machine - pypi.org - This page provides brief descriptions of several different parts to build and to use state machines. After each description, there is a written out coded example that shows what each part means, and how it would look in actual program.
-
Python State Machine Design - Stack Overflow - This page is a question and answer forum, and the question being asked is how to design a state machine in Python. The answer giving is a written out coded example that describes step by step how to design the state machine.
-
Pygame State Machine - incompetent_ian - In this video, he describes how to set up a basic state machine using pygame, and also the game development framework for Python using written out coded examples in a program and describing what each of the state machine commands does to the overall program.
-
Splash Screen and Game Over Coding - TokyoEdtech - In this video, he describes how to create a splash screen and a end screen for a program and he writes out a coded example using Python to shows the step-by-step process for writing out of these concepts and what they mean.
-
Python State Machine Example - readthedocs.io - This site goes step by step through the process of how to write and create a state machine in Python. There are brief descriptions and titles for the section, followed by a written out coded example of what that step looks like.
-
Writing Code Using State Machines - zeolearn.com - This site provides an example of using state machine to write maintainable code. It gives several examples of programs that need the state machines, and it provides a brief description of how the state machine is being used.
-
Python State Machine Documentation - readthedocs.org - This site provides an very in-depth description of all the different parts to state machines. There are 27 pages, so look at the table of contents and find a few sections of places you are stuck on.
Next, you can take on the two extra challenges to chase the Creeper and learn more! When you're done, you can move on to Level 6, the Boss Battle!
-
Challenge 1: In this challenge, you are going to...
-
Challenge 2: In this second challenge, you are going to...
In addition to this Online Articles page and the instructions for our Level 6 challenges, we also have a Help Page, a Learning Quiz, an Unplugged Activity, and a Rewards article:
-
Level 6: Help - This page helps you complete the instructions in the book, in case you get stuck.
-
Level 6: Learning Quiz - I wrote some questions in case you want to quiz yourself about what you learned. Or you can teach others and quiz them!
-
Level 6: Unplugged Activity - I wrote this page with more details than what you saw in the book. In this game,
-
Level 6: Rewards - If you completed the Boss Battle program that we talked about, then I set up this page to act as a reward. You can see some illustrations of me and learn more about who I am! You'll also find the WHAT Award digital download, to show off your accomplishment!
After you're completely done with Level 6 (did you do the challenges?), then it's time to move on to Level 7! While you read through Level 7 in your book, you can check out the resources from CHARACTER, as he teaches you how to build the IncrediCards program:
I hope you had fun learning about the Creeper Chase!
--Queen Cobra