Last modified: January 26, 2023
Each person in your group does this: - Click the Clone a Repository from the Internet button. - Click on GitHub.com. - You should see your repository listed below. - Select the repository. - Click on the choose button to select the location you want to clone your repository - pay attention to where it saves! - Click on Clone when you have chosen a location.
One person in your group does all of this while others help.
Now everyone else in your group does this:
You should see that your teammate made some commits.
The README.md should now have your names in it.
If you did previous sections correctly, you should see a pull button appear.
You will see your names if you open the README.md file in a text editor.
You can also click on the history button to see a list of commits which should include the one made by your teammate.
One person in your group does all of these:
Now everyone else in your group does this:
Now everyone in your group does this:
Note: You should always close Greenfoot before working in GitHub Desktop for two reasons:
Only one team member will successfully push (whoever is first) because the first person pushed commits that have not yet been pulled by the other two. To fix this, the other team members must pull changes from the remote before pushing. GitHub Desktop will prompt you to pull.
Now everyone in your group does this:
If you get the error saying: "You have divergent branches and need to specify how to reconcile them.":
One of the team members that failed to push should pull to get the latest commits. The team will fix the merge conflict together.
If try to push your code changes to an online repository there's a good chance that one of your team members already changed something and now your copy of the project is not the most recent. In such cases, you will you get a "rejected - non-fast-forward" error message telling you that you don't have the most recent copy of the project. \ Before you can push your code, you must pull the most recent version of the project and tell Git how to integrate your code changes with the latest online version. Often, this leads to Merge Conflicts.
A Merge Conflict occurs when the code you worked on interferes with the most recent pull version (which you are required to download before uploading your code!) In such cases, Git needs you to tell it how to combine your changes with the most recent pull version. Git tells you which files have conflicts and marks them to show you what the conflict is (see next section).
Open files marked as a Merge Conflict and you will see something like this:
For example, if you wanted to include both lines of code and change the order so that Person 3 is after Person 2 then you would change:
Modify each conflicting file and save the changes you want. Then, commit and push so the online repository has the merged changes.
Ted McLeod
Period 2 Team 15
Journal
Mon 5/10/2021 in class - 1 hour
My team and I discussed exactly what game we were making and decided to make a platformer. My part is to create the player class and get the physics/jumping working. I created the Player class and worked on applying physics to the player by adding a dx, dy and ddy properties. I gave the player initial values for now so I can see the player immediately move in an arc when I press run. I tried to make the player stop at the bottom edge, but I haven't managed to get that working yet. I will work on that for HW.
Mon 5/10/2021 at home - 45 minutes
I finished the basic physics in the Player class so the player can now move in an arc and stop when it reaches the bottom edge. I also prevent the player from going off the left and right edges. I added keyboard controls so now the player can move left and right with a and d and can jump by pressing spacebar. I am starting to work on platforms now, but it doesn't really work yet.
Tues 5/11/2021 at home - 30 minutes
I have a basic platform system working now. I had a lot of trouble figuring out how to actually get a reference to the platform because I kept getting compiler errors, but I finally resolved those issues by using getOneIntersectingObject and saving the result in an Actor. At first this kept crashing with a NullPointerException, but then I added an if statement to check for null. The player can jump up and land on a platform and doesn't fall through it now, however it is still a bit glitchy because if a player jumps up into the bottom of a platform, it teleports the player to the top of the platform instead of just making the player fall back down.
Your goal is to create a short but complete game. Don't brainstorm a Legend of Zelda masterpiece or a fighting game with 50 characters - you aren’t Nintendo. However, any game can be scaled back to an appropriate length. This might be only three awesome levels or two-stage maps. Or, perhaps it's Chapter 1 of an adventure game. Finally, choose a game that fits your skill level. You can create a clone of an existing game, create your own mashup of existing game ideas or come up with a unique game that doesn't exist.
If you already have a game idea, skip ahead to the next part. Otherwise, spend time exploring the games below to get ideas.
Nearly 10,000 games! A bunch of these are Flash games that may not work in your browser, but there are LOTS here that don't require Flash.
5,000 more games! Console games. Original Nintendo (NES) games will be the easiest to code.
When finished with the previous instructions, discuss your plans for the game you wish to make. You don't have to have every detail figured out, just a general idea of what the game will be. Once you have decided on a game, edit the README.md file to add a description of your game. The README.md should have a list of your names at the top and a game proposal.
Dark Mode
Outline