15 |
16 |
17 |
18 |
19 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/vPetApp/logic.js:
--------------------------------------------------------------------------------
1 | console.log("logic connected.")
2 |
3 | function chill() {
4 | console.log("chill button clicked")
5 | let img = document.getElementById("petImage");
6 | img.src = "./IdleDog.gif";
7 | }
8 |
9 | function jump() {
10 | console.log("jump button clicked")
11 | let img = document.getElementById("petImage");
12 | img.src = "./JumpingDog.gif";
13 | }
14 |
15 | function clap() {
16 | console.log("clap button clicked")
17 | let img = document.getElementById("petImage");
18 | img.src = "./ClappingDog.gif";
19 | }
20 |
21 | function dance() {
22 | console.log("dance button clicked")
23 | let img = document.getElementById("petImage");
24 | img.src = "./DancingDog.gif";
25 | }
26 |
--------------------------------------------------------------------------------
/monsterBattler/logic.js:
--------------------------------------------------------------------------------
1 | console.log('connected.')
2 |
3 | let userHealth = 100
4 | let cpuHealth = 100
5 |
6 | document.getElementById('userH').textContent = `You: ${userHealth} HP`;
7 | document.getElementById('cpuH').textContent = `CPU: ${cpuHealth} HP`;
8 |
9 | let fireAttack = 10
10 | let waterAttack = 20
11 | let healing = 15
12 |
13 | let cpuAttack = Math.floor(Math.random() * 21);
14 |
15 | function attack(attackType) {
16 | console.log('attack')
17 | if (attackType == 'fire') {
18 | cpuHealth -= fireAttack;
19 | userHealth -= cpuAttack
20 | }
21 | else if (attackType == 'water') {
22 | cpuHealth -= waterAttack
23 | userHealth -= cpuAttack
24 |
25 | }
26 | else if (attackType == 'heal') {
27 | userHealth += healing
28 | userHealth -= cpuAttack
29 | }
30 |
31 | updateUI()
32 | }
33 |
34 | function updateUI() {
35 | document.getElementById('userH').textContent = `You: ${userHealth} HP`;
36 | document.getElementById('cpuH').textContent = `CPU: ${-cpuHealth} HP`;
37 | }
38 |
--------------------------------------------------------------------------------
/asyncActivities/asyncActivityMar7.md:
--------------------------------------------------------------------------------
1 | # Async Activity March 7th, 2025
2 |
3 | ### Please create a new file called asyncActivityFeb21.py or asyncActivityFeb21.js and complete the following questions.
4 |
5 | IMPORTANT
6 | Once you've completed the assignment, please do the following steps to ensure your assignment is submitted properly.
7 |
8 | Commit and sync your work to your github repository. - DO NOT PUT THE LINK TO YOU CODESPACES! - IT MOST BE YOUR REPOSITIORY.
9 | Drop the link to your repository in the following link below
10 |
11 | [march 7 Async Repo Submission form](https://forms.gle/huSvW1XqcUzD8yeo6)
12 |
13 |
14 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (March 7th, 2025).
15 |
16 | ### For the Python Programming Class
17 | 1. Navigate to the BTP GAMES repository on the black tech Philly GitHub Page and use the code in the fall game folder to fix and complete your game.
18 | - Bonus: try to customize the character object with your own art.
19 |
20 | ### For the JavaScript Programming Class
21 | 1. Navigate to the BTP GAMES repository on the black tech Philly GitHub Page and use the code in the rock paper scissors folder to fix and complete your game.
22 |
--------------------------------------------------------------------------------
/monsterBattler/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/asyncActivities/asyncActivityFeb21.md:
--------------------------------------------------------------------------------
1 | # Async Activity February 21nd, 2025
2 |
3 | ### Please create a new file called asyncActivityFeb21.py or asyncActivityFeb21.js and complete the following questions.
4 |
5 | IMPORTANT
6 | Once you've completed the assignment, please do the following steps to ensure your assignment is submitted properly.
7 |
8 | Commit and sync your work to your github repository. - DO NOT PUT THE LINK TO YOU CODESPACES! - IT MOST BE YOUR REPOSITIORY.
9 | Drop the link to your repository in the following link below
10 |
11 | [Feb21 Async Repo Submission form](http://forms.gle/PB5sPqMStPaLxzNSA)
12 |
13 |
14 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (Feb. 21, 2025).
15 |
16 | ## 1. Please watch this video on Game Design Documents
17 |
18 | [Game Design Document](https://www.youtube.com/watch?v=ZE8v7uVGepM&t=124s)
19 |
20 | ## 2. On your document answer the following questions about your upcoming game project
21 |
22 | As we embark on our game development journey, I would like you to begin brainstorming what kind of game you want to build by creating a draft of a game design document.
23 | Your game can be a custom and unique project or it can be clone of an already existing game.
24 |
25 | 1. What is the name of your game?
26 |
27 | 2. What genre is your game going to be in (horror, action-adventure, shooting, fighting, platformer, etc.)
28 |
29 | 3. What is the objective and general game loop of your game? Please write your response in complete sentences.
30 | example: players will try to score points by hitting randomized targets in a set amount of time.
31 |
32 | 4. What already existing games does your game take inspiration from? Please provide at least 3 examples, including the name of the game, and describe the aspect your inspired by in complete sentences.
33 |
34 | 5. Please describe the mechanics, or functional parts that will be in your game
35 | example:
36 | - a. my game will allow the player to move across the screen horizontally
37 | - b. my game will feature different weapon types that will have different effects.
38 |
--------------------------------------------------------------------------------