Skip to content

Commit

Permalink
Assignment 3
Browse files Browse the repository at this point in the history
Uploading assignment 3
  • Loading branch information
RainbowMod28 committed Feb 16, 2024
1 parent b324fb6 commit d2eaebb
Show file tree
Hide file tree
Showing 39 changed files with 89 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/fnw8iuknds261.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/fnw8iuknds261.webp
Binary file not shown.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girlp/girl_sprite9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/girly/ygirl9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/robot/robot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/robot/robot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assignmnet_3/Photos/robot/robot3.png
Binary file added Assignmnet_3/Photos/robot/robot4.png
Binary file added Assignmnet_3/Photos/robot/robot5.png
Binary file added Assignmnet_3/Photos/robot/robot6.png
Binary file added Assignmnet_3/Photos/robot/robot7.png
Binary file added Assignmnet_3/Photos/robot/robot8.png
Binary file added Assignmnet_3/Photos/robot/robot9.png
18 changes: 18 additions & 0 deletions Assignmnet_3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Sketch</title>

<link rel="stylesheet" type="text/css" href="style.css">

<script src="libraries/p5.min.js"></script>
<script src="libraries/p5.sound.min.js"></script>
</head>

<body>
<script src="sketch.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions Assignmnet_3/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es6"
},
"include": [
"*.js",
"**/*.js",
"c:\\Users\\brooklynn\\.vscode\\extensions\\samplavigne.p5-vscode-1.2.15\\p5types\\global.d.ts"
]
}
2 changes: 2 additions & 0 deletions Assignmnet_3/libraries/p5.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Assignmnet_3/libraries/p5.sound.min.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions Assignmnet_3/sketch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
let myImage;


let character_sprites = [];

let girl;



function preload(){
myImage = loadImage("C:\Users\brooklynn\OneDrive\Documents\Coding projects\ProgramDigtialMedia_BrooklynnNoble2024\Assignmnet_3\Photos\girly")

for(let i = 0; i<= 9; i++){
character_sprites[i] = loadImage(
myImage + "character_" + i +".png"
)
}
}
function setup() {
createCanvas(960, 540);

bg = loadImage('Photos/fnw8iuknds261.png');

girl = createSprite(width/2, height /2);

let girl_animation = girl.addAnimation(
"walking",
character_sprites[0],
character_sprites[1],
character_sprites[2],
character_sprites[3],
character_sprites[4],
character_sprites[5],
character_sprites[6],
character_sprites[7],
character_sprites[8],
character_sprites[9]

);
girl_animation.frameDelay = 4;


}

function draw() {
background(bg);
if (ro)
}
8 changes: 8 additions & 0 deletions Assignmnet_3/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
html, body {
margin: 0;
padding: 0;
}

canvas {
display: block;
}

0 comments on commit d2eaebb

Please sign in to comment.