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

Cube portal scene #32

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
8 changes: 8 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ExpandedNodes": [
"",
"\\src"
],
"SelectedNode": "\\src\\index.js",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/aurora2020-master/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Deadline
Задание 1 **До 25.11.2020**

Задание 2 **До 16.12.2020**

Индивидуально:
1. Выбрать один из алгоритмов:
клеточный автомат,
генератор комнат,
random walk
свой
2. Реализовать класс для заполнения маски уровня:
матрицы, содержащей информацию о ячейках
Можно в группе
3. Составить JSON, который нужен для отображения
данных об уровне в массив тайлов
3а. Использовать свой или имеющийся в проекте набор тайлов
4. Сделать сцену, которая строится из маcки уровня и набора тайлов
(сцена обновляется при каждом запуске)
5. Проверить:
1. Камера следует за игроком
2. Можно посчитать метрики
(% заполнения, число комнат, связность, максимальный размер уровня, расстояние до цели...)
3. (Опционально) Заполнять несколько уровней карты: пол, украшения, враги/NPC.

# Требования к уровню на экзамен:
1. Выполнен уровень в проекте Aurora
2. Движок Phaser, язык JS
3. Реализовано движение игрока и ввод с клавиатуры, мыши или геймпада
4. Реализована хотя бы 1 физическая модель движения (на основе встроенных физических модулей Arcade, Matter или собственная)
5. Реализована базовая модель поведения (1-2 стиринга)
6. Реализована модель поведения "верхнего уровня" для NPC (выбор целей на основе одной из моделей: конечный автомат, дерево поведения, нечеткая логика, продукционная модель, blackboard, своя модель)
7. Реализована процедурная генерация карты по одному из алгоритмов (комнаты, коридоры (случайные блуждания), клеточный автомат, генерация лабиринта, свой алгоритм)
8. Уровень выполнен в виде отдельной сцены, код предоставлен в виде пулл-реквеста в репозиторий https://github.com/mmcs-gd/aurora2020/

# Development

```
Expand Down
16 changes: 15 additions & 1 deletion assets/animations/cyberpunk.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,19 @@
"Right": [12, 13, 14],
"Up": [20, 21, 22],
"Down": [24, 25, 26, 27]
},
"WalkWithGun":
{
"Left": [72, 73, 74, 75],
"Right": [80, 81, 82, 83],
"Up": [88, 89, 90, 91],
"Down": [64, 65, 66, 67]
},
"RunWithGun":
{
"Left": [104, 105, 106, 107],
"Right": [112, 113, 114, 115],
"Up": [120, 121, 122, 123],
"Down": [96, 97, 98, 99]
}
}
}
6 changes: 6 additions & 0 deletions assets/animations/mine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Mine": {
"Blink": [0, 1],
"Boom": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
}
}
18 changes: 18 additions & 0 deletions assets/animations/vfx/effects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"magicSpell": {
"min_frame": 0,
"max_frame": 74,
"framerate": 20
},
"vortex": {
"min_frame": 0,
"max_frame": 60,
"framerate": 20
},
"flamelash":
{
"min_frame": 0,
"max_frame": 51,
"framerate": 30
}
}
Binary file added assets/audio/musicBox.mp3
Binary file not shown.
51 changes: 51 additions & 0 deletions assets/menu_background.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ "compressionlevel":0,
"editorsettings":
{
"export":
{
"format":"json",
"target":"menu_background.json"
}
},
"height":18,
"infinite":false,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AABZAAAAagAAAFkAAABZAAAAWQAAAFkAAABcAAAAWQAAAFkAAABZAAAAWQAAAFkAAABZAAAAWQAAAFkAAABZAAAAWQAAAF4AAABZAAAAWQAAAGkAAABZAAAAWQAAAFkAAABZAAAAWQAAAFkAAABZAAAA",
"encoding":"base64",
"height":18,
"id":1,
"name":"Main",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":24,
"x":0,
"y":0
}],
"nextlayerid":4,
"nextobjectid":1,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.3.0",
"tileheight":32,
"tilesets":[
{
"columns":16,
"firstgid":1,
"image":"tileset\/Dungeon_Tileset.png",
"imageheight":640,
"imagewidth":512,
"margin":0,
"name":"Dungeon_Tileset",
"spacing":0,
"tilecount":320,
"tileheight":32,
"tilewidth":32
}],
"tilewidth":32,
"type":"map",
"version":1.2,
"width":24
}
Binary file added assets/sprites/bullet.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 assets/sprites/characters/bomb.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 assets/sprites/cursor.cur
Binary file not shown.
Binary file added assets/sprites/gun.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 assets/sprites/guns.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 assets/sprites/vfx/10_weaponhit_spritesheet.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 assets/sprites/vfx/11_fire_spritesheet.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 assets/sprites/vfx/12_nebula_spritesheet.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 assets/sprites/vfx/13_vortex_spritesheet.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 assets/sprites/vfx/14_phantom_spritesheet.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 assets/sprites/vfx/15_loading_spritesheet.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 assets/sprites/vfx/16_sunburn_spritesheet.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 assets/sprites/vfx/17_felspell_spritesheet.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 assets/sprites/vfx/18_midnight_spritesheet.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 assets/sprites/vfx/19_freezing_spritesheet.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 assets/sprites/vfx/1_magicspell_spritesheet.png
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 assets/sprites/vfx/2_magic8_spritesheet.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 assets/sprites/vfx/3_bluefire_spritesheet.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 assets/sprites/vfx/4_casting_spritesheet.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 assets/sprites/vfx/5_magickahit_spritesheet.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 assets/sprites/vfx/6_flamelash_spritesheet.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 assets/sprites/vfx/7_firespin_spritesheet.png
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.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<style>
* { margin:0; padding:0; }
html, body { width:100%; height:100%; background: black; }
canvas { widht: 600px; display:block; background: black; margin: 0 auto; }

canvas { width: 600px; display:block; background: black; margin: 0 auto; }

</style>
</head>

Expand Down
Loading