Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 73 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
7234659
Setting up GitHub Classroom Feedback
github-classroom[bot] Apr 12, 2023
23c65e6
Add assignment deadline url
github-classroom[bot] Apr 12, 2023
0547a5c
updated readme
johannes-aas Apr 12, 2023
5e71160
added index
MajaBru Apr 12, 2023
fb5c18b
Merge branch 'main' of https://github.com/AdvancedCSS2023/assignment-…
MajaBru Apr 12, 2023
6ad43ee
added index html
johannes-aas Apr 12, 2023
187947d
sass init
MajaBru Apr 12, 2023
d3d6021
folder for styles
MajaBru Apr 12, 2023
df8620e
test
sabria23 Apr 12, 2023
a19103f
test
sabria23 Apr 12, 2023
4afa453
readme
sabria23 Apr 12, 2023
6a12f47
prototype
johannes-aas Apr 18, 2023
d55ec9c
Merge branch 'dev' of github.com:AdvancedCSS2023/assignment-2---css-g…
johannes-aas Apr 18, 2023
2238a9c
fd
sabria23 Apr 18, 2023
d2cebe5
Merge branch 'dev' of https://github.com/AdvancedCSS2023/assignment-2…
sabria23 Apr 18, 2023
20b4a54
game over fix
johannes-aas Apr 18, 2023
13eb511
Merge branch 'dev' of github.com:AdvancedCSS2023/assignment-2---css-g…
johannes-aas Apr 18, 2023
11e0674
added colors file
MajaBru Apr 18, 2023
abb3f72
moving enemy prototype
johannes-aas Apr 18, 2023
6e1f2c8
edit
MajaBru Apr 18, 2023
157e994
Merge branch 'dev' of https://github.com/AdvancedCSS2023/assignment-2…
MajaBru Apr 18, 2023
c94606f
edit
MajaBru Apr 18, 2023
b43e6ba
edit
MajaBru Apr 18, 2023
0ab746b
e
MajaBru Apr 18, 2023
d9f763b
cursor svg
MajaBru Apr 18, 2023
8f639ee
e
MajaBru Apr 18, 2023
51ed4be
cleaned up a bit
johannes-aas Apr 18, 2023
fd117a4
png
MajaBru Apr 18, 2023
a2a2fec
e
MajaBru Apr 18, 2023
74deb81
fonts
sabria23 Apr 18, 2023
812beb0
Merge branch 'dev' into fonts
johannes-aas Apr 18, 2023
8a5b7bf
Merge pull request #2 from AdvancedCSS2023/fonts
johannes-aas Apr 18, 2023
a9415cb
e
MajaBru Apr 18, 2023
7080ef3
e
MajaBru Apr 18, 2023
793b2a1
Merge branch 'dev' into cursor
johannes-aas Apr 18, 2023
6134860
Merge pull request #3 from AdvancedCSS2023/cursor
johannes-aas Apr 18, 2023
d0601f2
ghost_enemies
sabria23 Apr 19, 2023
42fbd02
target
sabria23 Apr 19, 2023
1875418
fixed sass files
MajaBru Apr 19, 2023
2e40b89
added maze
MajaBru Apr 19, 2023
43b6182
Merge pull request #5 from AdvancedCSS2023/map-maja
johannes-aas Apr 19, 2023
abf0f6c
changed @import to @use SASS
MajaBru Apr 19, 2023
beb0c17
added svg ghost with animations
MajaBru Apr 20, 2023
495f342
grid maze, funky styling
johannes-aas Apr 20, 2023
bdb6950
Merge pull request #7 from AdvancedCSS2023/animate
johannes-aas Apr 20, 2023
52373a5
another ghost addition and a slide in animation
MajaBru Apr 20, 2023
2336f06
sass color variables + other additions
MajaBru Apr 20, 2023
eca9630
readne
sabria23 Apr 20, 2023
8a4e6b7
_keyframes file
MajaBru Apr 20, 2023
3e7ada6
Merge pull request #8 from AdvancedCSS2023/animate
MajaBru Apr 20, 2023
92d7480
moved styles folder into assets folder
MajaBru Apr 20, 2023
887626a
readme
sabria23 Apr 20, 2023
6cf059b
Merge branch 'dev' of https://github.com/AdvancedCSS2023/assignment-2…
sabria23 Apr 20, 2023
8ea98f4
Updated README.md
MajaBru Apr 20, 2023
1d05686
some visual changes + ghost
MajaBru Apr 20, 2023
deafaa0
visual change
MajaBru Apr 20, 2023
9a6db17
Merge branch 'dev' of https://github.com/AdvancedCSS2023/assignment-2…
MajaBru Apr 20, 2023
c627416
Merge branch 'dev' of https://github.com/AdvancedCSS2023/assignment-2…
MajaBru Apr 20, 2023
e37295c
test
MajaBru Apr 20, 2023
9ed031b
Add assignment deadline url
github-classroom[bot] Apr 21, 2023
f3eb323
Merge pull request #9 from MajaBru/dev
MajaBru Apr 21, 2023
a75da6f
added images folder
MajaBru Apr 21, 2023
e3a5fcc
Added victory audio using js + readme update
MajaBru Apr 22, 2023
3539a0b
added a music toggle button for bg music + styling
MajaBru Apr 22, 2023
e651ce1
updated readme
MajaBru Apr 22, 2023
6978ca9
removed empty files
MajaBru Apr 22, 2023
d6824b1
placed ghost in map grid
johannes-aas Apr 22, 2023
84af80f
Readme update
MajaBru Apr 23, 2023
a97becc
e
MajaBru Apr 25, 2023
214f71b
path changes
MajaBru Apr 25, 2023
097cb1c
merge
johannes-aas Apr 25, 2023
266d53d
Merge pull request #10 from AdvancedCSS2023/dev
johannes-aas Apr 25, 2023
e40f36e
Update README.md
johannes-aas Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
[![Open in Visual Studio Code](https://classroom.github.com/assets/open-in-vscode-718a45dd9cf7e7f842a935f5ebbe5719a5e09af4491e668f4dbf3b35d5cca122.svg)](https://classroom.github.com/online_ide?assignment_repo_id=10840104&assignment_repo_type=AssignmentRepo)
# Assignment 2 - Tiny CSS game

## What the project does?
### Maze game
The project consists of a maze game where a character controlled by a mouse cursor must try to find their way through the maze and to the goal in the center.
If the player touches any of the walls or gets run over by an enemy ghost, then the player is forced to start over. By reaching the center, you win the game.

## Why the project is useful?
The project is useful to us students as we learn creative ways of utilizing CSS and its great capabilities. That allows us to expand our knowledge within the field. This assignment also makes us more familiar with structuring a project for this purpose.
The game is useful for users too because it can help improve their concentration, problem solving skills, and reaction time. Additionally, it can be a fun and entertaining way to spend leisure time.

## How to start playing the game?
Simply clone or download this repository and open index.html in your browser.

## Which technology is used:
* The technologies used in this game include HTML, CSS/SASS (SCSS variables), and JS for regulating audio.
* Retrieved background gradient from this CSS background builder tool: https://www.magicpattern.design/tools/css-backgrounds
* Royalty free sound effect was retrieved from: https://mixkit.co/free-sound-effects/game/
* Royalty free music from: https://pixabay.com/music/search/arcade%20game/?manual_search=1&order=None
* Icons from: https://fontawesome.com/

## Who maintains and contributes to the project
Maja Celin Brunsvik, Johannes Aas og Sabrina Altahrawi
Binary file added assets/audio/bling_audio.mp3
Binary file not shown.
Binary file added assets/audio/music-arcade.mp3
Binary file not shown.
Binary file added assets/images/blob_cursor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/images/ghost.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions assets/styles/_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Descriptive Colors
$white: #fff;
$black: #000000;
$deep-purple: #150e1a;
$dark-purple: #241346;
$purple: #b535fa;
$red: #ee0000;
$green: #079212;
$orange: #cf4200;
$blue: #0061cf;
$light-orange: #ff9d2d;
$magneta: #f82dff;

// Functional Colors
$maze__primary: $deep-purple;
$maze__secondary: $dark-purple;
$maze__accent: $purple;
$maze__victory: $green;
$maze__gameover: $black;
$maze__text--victory: $white;
$maze__text--game-over: $red;
$text__primary: $purple;
$ghost__one: $orange;
$ghost__two: $blue;
$ghost__three: $light-orange;
$ghost__four: $magneta;
$ghost__five: $red;
$ghost__eyes: $black;

// gradient mixin
//gradient generated from: https://www.magicpattern.design/tools/css-backgrounds
@mixin background__gradient {
background-color: #000000;
opacity: 1;
background-image: radial-gradient(#979be9 1.4500000000000002px, transparent 1.4500000000000002px), radial-gradient(#979be9 1.4500000000000002px, #252525 1.4500000000000002px);
background-size: 58px 58px;
background-position: 0 0,29px 29px;
}
105 changes: 105 additions & 0 deletions assets/styles/_keyframes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@

@keyframes moving-eyes {
0% {
transform: translateX(-1.5px);
}
50% {
transform: translateX(0);
}
100% {
transform: translateX(1.5px);
}
}

@keyframes ghost-movement {
25% {
left: 0;
top: 100%;
transform: translate(0%, -100px);
}
50% {
left: 100%;
top: 100%;
transform: translate(100px, -100px);
}
75% {
left: 0;
top: 0;
transform: translate(0, -100px);
}
100% {
left: 0;
top: 0;
transform: translate(0, 0);
}
}

@keyframes ghost-movement-2 {
25% {
left: 0;
top: 100%;
transform: translate(0%, -150px);
}
50% {
left: 100%;
top: 100%;
transform: translate(-150px, -150px);
}
75% {
left: 100%;
top: 0;
transform: translate(-150px, 0%);
}
100% {
left: 0;
top: 0;
transform: translate(-0%, 0%);
}
}

@keyframes ghost-movement-3 {
25% {
left: 0;
top: 100%;
transform: translate(0%, -100px);
}
50% {
left: 100%;
top: 100%;
transform: translate(-100px, -100px);
}
75% {
left: 100%;
top: 0;
transform: translate(-100px, 0%);
}
100% {
left: 0;
top: 0;
transform: translate(-0%, 0%);
}
}
@keyframes ghost-movement-4 {
100% {
transform: translateX(250px);
}
}

@keyframes ghost-movement-5 {
100% {
transform: translateX(400px);
}
}

@keyframes slide-in {
0% {
transform: rotateX(70deg);
transform-origin: top;
opacity: 0;
}
100% {
transform: rotateX(0deg);
transform-origin: top;
opacity: 1;
}
}
Loading