Posts

Showing posts from November, 2017

Scratch Level 2 - Racing Game

Link to the aptly-named st00pid racing:  https://scratch.mit.edu/projects/187309354/ 1. The hardest problem to fix was that the car would keep accelerating as long as the w key was held down, causing the speed to keep rising indefinitely. After unsuccessfully adding 'decay' to the speed, I eventually scrapped the idea and added code that would cap the speed at 7. 2. I changed the shape of the track, because testers kept getting stuck on the edges. I also made it wider in preparation for adding a two-player mode, but that was never implemented due to time constraints. The game stops at 5 laps instead of 3, because making 3 laps was a bit too short for me. It also has a screen that rewards you upon completion. I originally wanted to add a countdown before starting, but that also wasn't added in time.

Scratch-Intro

The project can be found here . The bug was simple to fix once I realized it: it was caused by the program continuing to draw the line even when it wasn't at the right coordinates. I fixed it by making the cat return to the right position before drawing.

PacKodu

Image
1. This game borrows the main concept and aesthetic from Pac-Man, but there aren't any powerups and the enemies are harder to avoid. Because the pathfinding on the enemies isn't as polished as Pac-Man's, the enemies often stay behind walls until the player reaches a gap, usually ending in all four chasing the player from different angles. Originally, there were supposed to be starfish that would trigger Kodu to say something and temporarily repel enemies, but it was cut due to lack of time. 2. I added apples near the center to make them harder to retrieve, because the enemies are too easy to evade once the player reaches the outer walls, and can easily keep them behind the inner ones. 3. The hardest part of this game was programming the enemies: I didn't know how to make paths (which was my original plan) and was running out of time, so I had to settle with the enemies moving in the player's direction. This flaw did add flair to the game unintentionally, so...