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

Added Icy_tower_game #5042

Merged
merged 70 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
98fa016
Create Readme.md
pavitraag Jul 29, 2024
acce0ea
Add files via upload
pavitraag Jul 29, 2024
2d6c0b1
Create m
pavitraag Jul 29, 2024
5545c36
Add files via upload
pavitraag Jul 29, 2024
cf96813
Create m
pavitraag Jul 29, 2024
92ce005
Create m
pavitraag Jul 29, 2024
3d85397
Add files via upload
pavitraag Jul 29, 2024
c14c4b4
Delete Games/Icy_Tower_Game/src/assets/m
pavitraag Jul 29, 2024
52a4719
Delete Games/Icy_Tower_Game/src/assets/ui/m
pavitraag Jul 29, 2024
a44aa24
Add files via upload
pavitraag Jul 29, 2024
07a38f3
Create m
pavitraag Jul 29, 2024
a25d04c
Add files via upload
pavitraag Jul 29, 2024
2e0746d
Delete Games/Icy_Tower_Game/src/modules/m
pavitraag Jul 29, 2024
ac08583
Create m
pavitraag Jul 29, 2024
e6fb8a4
Add files via upload
pavitraag Jul 29, 2024
09a493e
Create m
pavitraag Jul 29, 2024
ce5af2f
Add files via upload
pavitraag Jul 29, 2024
3ccf9a7
Delete Games/Icy_Tower_Game/src/Objects/m
pavitraag Jul 29, 2024
8ca0051
Create m
pavitraag Jul 29, 2024
16839d8
Add files via upload
pavitraag Jul 29, 2024
e0816aa
Delete Games/Icy_Tower_Game/src/Scenes/m
pavitraag Jul 29, 2024
4d9a66e
Create m
pavitraag Jul 29, 2024
656e675
Add files via upload
pavitraag Jul 29, 2024
50006fb
Create m
pavitraag Jul 29, 2024
5449d1e
Add files via upload
pavitraag Jul 29, 2024
4ab9235
Create m
pavitraag Jul 29, 2024
d8df1eb
Add files via upload
pavitraag Jul 29, 2024
8fca3a4
Create workflows
pavitraag Jul 29, 2024
7b717fd
Add files via upload
pavitraag Jul 29, 2024
80c1a4e
Delete Games/Icy_Tower_Game/.github/workflows
pavitraag Jul 29, 2024
a4866b8
Delete Games/Icy_Tower_Game/.github/linters.yml
pavitraag Jul 29, 2024
a2531eb
Create m
pavitraag Jul 29, 2024
4f317c0
Add files via upload
pavitraag Jul 29, 2024
d57156d
Delete Games/Icy_Tower_Game/.github/workflows/m
pavitraag Jul 29, 2024
a230652
Delete Games/Icy_Tower_Game/_tests_/m
pavitraag Jul 29, 2024
819f49d
Delete Games/Icy_Tower_Game/build/m
pavitraag Jul 29, 2024
9c536bc
Delete Games/Icy_Tower_Game/src/Config/m
pavitraag Jul 29, 2024
3312737
Delete Games/Icy_Tower_Game/src/m
pavitraag Jul 29, 2024
078bbeb
Delete Games/Icy_Tower_Game/webpack/m
pavitraag Jul 29, 2024
f2707c6
Delete Games/Icy_Tower_Game/src/Objects/config.js
pavitraag Jul 29, 2024
6f9beef
Add files via upload
pavitraag Jul 29, 2024
eaf8987
Update CreditsScene.js
pavitraag Jul 29, 2024
104af93
Update README.md
pavitraag Jul 31, 2024
fc7faac
Merge branch 'main' into icy
pavitraag Jul 31, 2024
ec7ce97
Rename back.png to Icy_back.png
pavitraag Aug 2, 2024
03ed7d7
Rename dude.png to Icy_dude.png
pavitraag Aug 2, 2024
a15a1b9
Rename iceberg.png to Icy_iceberg.png
pavitraag Aug 2, 2024
266a2c8
Rename icy.gif to Icy_icy.gif
pavitraag Aug 2, 2024
03cc5ab
Update and rename Icy_icy.gif to icy.gif
pavitraag Aug 2, 2024
556817c
Delete Games/Icy_Tower_Game/src/assets/icy.gif
pavitraag Aug 2, 2024
0d5a3eb
Add files via upload
pavitraag Aug 2, 2024
be62b47
Add files via upload
pavitraag Aug 2, 2024
d8fb93a
Rename back.png to Icy_back.png
pavitraag Aug 2, 2024
572e5d0
Rename dude.png to Icy_dude.png
pavitraag Aug 2, 2024
d73c2ff
Add files via upload
pavitraag Aug 2, 2024
b130a41
Rename iceberg.png to Icy_iceberg.png
pavitraag Aug 2, 2024
59a406d
Rename icy.gif to Icy_icy.gif
pavitraag Aug 2, 2024
0e87604
Delete assets/images/Icy_icy.gif
pavitraag Aug 2, 2024
26d9e5b
Add files via upload
pavitraag Aug 2, 2024
6605384
Rename logo.gif to Icy_logo.gif
pavitraag Aug 2, 2024
4b7a1e2
Rename platform.png to Icy_platform.png
pavitraag Aug 2, 2024
bfad79d
Rename score.JPG to Icy_score.JPG
pavitraag Aug 2, 2024
8d234e4
Rename singledude.png to Icy_singledude.png
pavitraag Aug 2, 2024
2557cac
Rename stair.JPG to Icy_stair.JPG
pavitraag Aug 2, 2024
fd1d7b9
Add files via upload
pavitraag Aug 2, 2024
f2ae685
Delete assets/images/Icy_logo.gif
pavitraag Aug 2, 2024
f4e40ee
Delete assets/images/icy.gif
pavitraag Aug 2, 2024
f75f7bf
Rename logo.gif to Icy_logo.gif
pavitraag Aug 2, 2024
60ea170
Add files via upload
pavitraag Aug 2, 2024
bb4fbe2
Merge branch 'main' into icy
pavitraag Aug 5, 2024
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
12 changes: 12 additions & 0 deletions Games/Icy_Tower_Game/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "10"
}
}
]
]
}
22 changes: 22 additions & 0 deletions Games/Icy_Tower_Game/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb-base"],
"rules": {
"no-shadow": "off",
"no-param-reassign": "off",
"eol-last": "off",
"arrow-parens": "off"
},
"ignorePatterns": [
"dist/",
"build/"
]
}
36 changes: 36 additions & 0 deletions Games/Icy_Tower_Game/.github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Linters

on: pull_request

env:
FORCE_COLOR: 1

jobs:
eslint:
name: ESLint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup ESLint
run: |
npm install --save-dev [email protected] [email protected] [email protected]
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/javascript/.eslintrc.json
- name: ESLint Report
run: npx eslint .
stylelint:
name: Stylelint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Setup Stylelint
run: |
npm install --save-dev [email protected] [email protected] [email protected] stylelint-csstree-validator
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/javascript/.stylelintrc.json
- name: Stylelint Report
run: npx stylelint "**/*.{css,scss}"
14 changes: 14 additions & 0 deletions Games/Icy_Tower_Game/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# System and IDE files
Thumbs.db
.DS_Store
.idea
*.suo
*.sublime-project
*.sublime-workspace

# Vendors
node_modules/

# Build
dist/
/npm-debug.log
10 changes: 10 additions & 0 deletions Games/Icy_Tower_Game/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [ "stylelint-config-standard" ],
"plugins": [ "stylelint-scss", "stylelint-csstree-validator" ],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"csstree/validator": true
},
"ignoreFiles": [ "build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css" ]
}
21 changes: 21 additions & 0 deletions Games/Icy_Tower_Game/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Richard Davey

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions Games/Icy_Tower_Game/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

53 changes: 53 additions & 0 deletions Games/Icy_Tower_Game/_tests_/getScore.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { getScore } from '../src/modules/score';

jest.mock('../src/modules/score');

describe('Testing the fetching scores', () => {
test('shows the scores returned', async () => {
getScore.mockResolvedValue({
result: [
{
user: 'Safa',
score: '1000',
},
{
user: 'Erden',
score: '350',
},
{
user: 'Muslum',
score: '500',
},
],
});

const recievedScore = await getScore();
expect(recievedScore).toEqual({
result: [
{
user: 'Safa',
score: '1000',
},
{
user: 'Erden',
score: '350',
},
{
user: 'Muslum',
score: '500',
},
],
});
});

test('returns empty array if there is no score', async () => {
getScore.mockResolvedValue({ result: [] });
const result = await getScore();
expect(result).toEqual({ result: [] });
});

test('it returns an object of previous results.', async () => {
const result = await getScore();
expect(typeof result).toBe('object');
});
});
12 changes: 12 additions & 0 deletions Games/Icy_Tower_Game/_tests_/updateScore.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { updateScore } from '../src/modules/score';

describe('Testing the score updating functionality', () => {
const currentScore = 0;

test('it receives an integer as the current score, adds 10 and returns the updated score', () => {
expect(updateScore(currentScore)).toEqual(10);
});
test('it receives an integer as the current score, adds 10 and returns the updated score', () => {
expect(updateScore(currentScore)).not.toEqual(20);
});
});
6,547 changes: 6,547 additions & 0 deletions Games/Icy_Tower_Game/build/project.bundle.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Games/Icy_Tower_Game/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./src/assets/style.css">
</head>
<body>
<script src="build/project.bundle.js" charset="utf-8"></script>
</body>
</html>
Loading
Loading