Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
b5694eb
feat: connected and configured webpack
LexSava Jan 9, 2021
d8b87d6
feat: add eslint
LexSava Jan 9, 2021
cf6b1c8
feat: add class Screen
LexSava Jan 11, 2021
5d2b344
feat: add class Loading for scene
LexSava Jan 11, 2021
daafd34
feat: connected the stage Loading
LexSava Jan 11, 2021
70257b6
Merge pull request #1 from LexSava/basic-structure
LexSava Jan 11, 2021
9f7b37c
feat: add file graphics
LexSava Jan 11, 2021
b35c6d4
feat: add file graphics
LexSava Jan 11, 2021
c384df5
Merge branch 'graphics' of https://github.com/LexSava/rsclone into gr…
LexSava Jan 11, 2021
a8297c3
feat: add class ImageLoader
LexSava Jan 11, 2021
4ca52db
feat: add method print in class Screen
LexSava Jan 11, 2021
68509de
feat: add class menu in scene
LexSava Jan 11, 2021
a1e9420
feat: add scene change method
LexSava Jan 11, 2021
7c30336
feat: add class ControlState
LexSava Jan 12, 2021
1273b1f
feat: add class GameLevel
LexSava Jan 12, 2021
3f05779
feat: add new scene
LexSava Jan 12, 2021
0d7d635
Merge pull request #3 from LexSava/control
LexSava Jan 12, 2021
9ad70cf
feat: add class Sprite
LexSava Jan 12, 2021
e4854b1
feat: add class SpriteSheet
LexSava Jan 12, 2021
e0e8420
feat: (test) rendered the sprite on the page
LexSava Jan 12, 2021
1815e35
feat: add class Animation
LexSava Jan 12, 2021
80a1726
feat: add method getAnimation in SpriteSheet
LexSava Jan 12, 2021
aa9840d
feat: testing animation work
LexSava Jan 12, 2021
3bdfc4d
feat: add map level one
LexSava Jan 12, 2021
d4bbf53
feat: add class TileMap
LexSava Jan 13, 2021
145d68b
feat: add method createMap in class Screen
LexSava Jan 13, 2021
325dd69
feat: supplemented method createMap
LexSava Jan 13, 2021
7761bcc
feat: connected map
LexSava Jan 13, 2021
4a55b3e
fix: class Animation
LexSava Jan 13, 2021
5f172ff
fix: class Animation
LexSava Jan 13, 2021
cc5a4cb
feat: add animations.json file
LexSava Jan 13, 2021
fe4c044
feat: add class CharacterSheet
LexSava Jan 13, 2021
a30d546
feat: add class Vector
LexSava Jan 13, 2021
4aa0286
feat: add class Body
LexSava Jan 13, 2021
6e635e4
feat: add Personge to the stage
LexSava Jan 13, 2021
d2e0210
feat: add class Camera
LexSava Jan 13, 2021
4e0faf2
feat: add methpd setCamera in Screen class
LexSava Jan 13, 2021
7a25748
fix: method drawSprite
LexSava Jan 13, 2021
9fb2593
feat: add class Collider
LexSava Jan 13, 2021
1f30609
feat: add class Orc
LexSava Jan 13, 2021
9ba8269
feat: add class AI
LexSava Jan 13, 2021
3e4194a
feat: add class Dummy
LexSava Jan 13, 2021
020c227
feat: connected intellect to Orc.
LexSava Jan 13, 2021
517825b
feat: add method shoot in Body class
LexSava Jan 13, 2021
ad78c9d
feat: add shooting functionality
LexSava Jan 13, 2021
e948566
feat: add class Projectile
LexSava Jan 13, 2021
51d8e66
feat: add class Arrow
LexSava Jan 13, 2021
9006271
feat: add steles to the game
LexSava Jan 13, 2021
1eff6d3
feat: add new player
LexSava Jan 14, 2021
ea6d530
feat: Add a constraint around the edges of the map
LexSava Jan 14, 2021
89d5949
refactor: apply webpack
LexSava Jan 14, 2021
86c35db
Merge pull request #4 from LexSava/graphics
LexSava Jan 14, 2021
efb043c
add:
Jan 14, 2021
420792e
Merge pull request #5 from LexSava/graphic-dev-latvels
Latvels Jan 14, 2021
bf79d73
fix: test code
LexSava Jan 14, 2021
a3c780d
fix: test code
LexSava Jan 14, 2021
6347f6e
feat: add collision arrows
LexSava Jan 15, 2021
3aaf0ce
fix: reduced speed player
LexSava Jan 15, 2021
c53a75b
feat: add the ability to kill an orc
LexSava Jan 15, 2021
1465942
feat: add health scale
LexSava Jan 15, 2021
fc42eec
refactor: apply eslint, deleted unnecessary comments
LexSava Jan 15, 2021
caab6d7
Merge branch 'graphics' of https://github.com/LexSava/rsclone into gr…
LexSava Jan 15, 2021
8c502c0
Merge pull request #6 from LexSava/graphics
LexSava Jan 15, 2021
5cda7dc
feat: add combat system
LexSava Jan 16, 2021
d783ec1
Merge pull request #7 from LexSava/graphics
LexSava Jan 16, 2021
3b13509
feat: add Game Over scene
LexSava Jan 19, 2021
9d46b49
refactor: apply eslint
LexSava Jan 19, 2021
98cf634
Merge pull request #8 from LexSava/graphics
LexSava Jan 19, 2021
37a8aa7
feat: add shot sound
LexSava Jan 19, 2021
a9423a1
feat: add sword strike sound
LexSava Jan 19, 2021
3643897
feat: add menu sound
LexSava Jan 19, 2021
6ea8d18
feat: add soutd game level
LexSava Jan 19, 2021
3764610
feat: add soutd death orc
LexSava Jan 19, 2021
c161062
feat: add suond geme over
LexSava Jan 19, 2021
3812e9f
refactor: apply eslint
LexSava Jan 19, 2021
6ad1e7f
Merge pull request #9 from LexSava/audio
LexSava Jan 19, 2021
6b87f5b
feat: add quest character figurine on the map
LexSava Jan 19, 2021
ac10754
feat: add killed orck statistics
LexSava Jan 24, 2021
29dc846
feat: add scene game win
LexSava Jan 24, 2021
b97e805
feat: add style canvas
LexSava Jan 24, 2021
b74b0ee
feat: add modal dialogue
LexSava Jan 26, 2021
53e5517
feat: add sound win game
LexSava Jan 26, 2021
015b302
feat: added a description of the gameplay
LexSava Jan 26, 2021
f75d589
Merge pull request #10 from LexSava/quests
LexSava Jan 26, 2021
70f314b
refactor: apply eslint
LexSava Jan 26, 2021
686180a
Added a new map of the first level, and also changed the appearance o…
Jan 30, 2021
550f11a
Added transition to a new level. Added a new level. Changed the winni…
Jan 31, 2021
056e4cc
Merge pull request #11 from LexSava/levels_and_map
Latvels Jan 31, 2021
08ff8fc
refactor: apply eslint
LexSava Jan 26, 2021
dcb9900
feat: add check for taken quest
LexSava Jan 31, 2021
47633b4
Merge branch 'quests' of https://github.com/LexSava/rsclone into quests
LexSava Jan 31, 2021
b9d91e7
refactor: apply eslint
LexSava Jan 31, 2021
5977246
Merge pull request #12 from LexSava/quests
LexSava Jan 31, 2021
06785cb
docs: add README.md file
LexSava Feb 1, 2021
fccb9cc
build(deps): bump ssri from 6.0.1 to 6.0.2 in /game
dependabot[bot] Apr 23, 2021
c0c507f
build(deps): bump y18n from 4.0.0 to 4.0.3 in /game
dependabot[bot] Apr 23, 2021
fd2699b
Merge pull request #14 from LexSava/dependabot/npm_and_yarn/game/ssri…
LexSava Apr 24, 2021
012fa36
Merge pull request #15 from LexSava/dependabot/npm_and_yarn/game/y18n…
LexSava Apr 24, 2021
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
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# rsclone
3 changes: 3 additions & 0 deletions game/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
.cache/
3 changes: 3 additions & 0 deletions game/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["airbnb/base"]
}
1 change: 1 addition & 0 deletions game/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 21 additions & 0 deletions game/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Kristina

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.
Binary file added game/dist/audio/arrow.mp3
Binary file not shown.
Binary file added game/dist/audio/death-orc.mp3
Binary file not shown.
Binary file added game/dist/audio/game-over.mp3
Binary file not shown.
Binary file added game/dist/audio/game.mp3
Binary file not shown.
Binary file added game/dist/audio/sword.mp3
Binary file not shown.
Binary file added game/dist/audio/win.mp3
Binary file not shown.
Binary file added game/dist/img/bg_title.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 game/dist/img/dark-elf.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 game/dist/img/exit_game.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 game/dist/img/game_name.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 game/dist/img/game_over.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 game/dist/img/girl-for-cave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions game/dist/img/icon_rss-rpg-game.svg
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 game/dist/img/option_game.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 game/dist/img/orc.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 game/dist/img/player.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 game/dist/img/player2.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 game/dist/img/start_game.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 game/dist/img/tiles.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 game/dist/img/tiles2.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 game/dist/img/you_win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions game/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="shortcut icon" href="img/icon_rss-rpg-game.svg" type="image/x-icon">
<link rel="stylesheet" href="./style/style.css">
<title>RSS RPG GAME</title>
</head>

<body>

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="exampleModalLabel">Welcome to the "RSS RPG GAME"</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<h6 class="modal-title" id="exampleModalLabel">Player control</h6>
Go forward: &uarr; key. <br>
Go back: &darr; key. <br>
Go left: &larr; key. <br>
Go right: &rarr; key. <br>
Archery: spacebar key.
</div>
<div class="modal-body">
<h6 class="modal-title" id="exampleModalLabel">Enemy behavior.</h6>
Orcs are friendly creatures and will not fight you first. <br>
But if you kill at least one orc, the rest will start following you to kill.
</div>
<div class="modal-body">
<h6 class="modal-title" id="exampleModalLabel">Game quest.</h6>
You can take the quest of a beautiful elf.<br>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

<div class="modal fade" id="staticBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Kill orcs Quest</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
If you want to open the entrance to the dungeon, you will have to kill 10 Orcs.<br>
Are you ready?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="abandon_the_quest">NO</button>
<button type="button" class="btn btn-primary" id="take_quest">YES</button>
</div>
</div>
</div>
</div>

<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="infoModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="infoModalLabel">Congratulations! You've reached a new level!</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<h6 class="modal-title" id="infoModalLabel">This level is a maze</h6>
You need to find a golden chest full of wealth to complete the game!
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>

<script src="js/elven-scout.js"></script>

</body>

</html>
Loading