Создать расширяемую платформу в качестве основы мурома 1.2

This commit is contained in:
2019-10-02 14:17:32 +03:00
parent 73b4485a4f
commit 8752fdf1e8
4 changed files with 334 additions and 14 deletions

View File

@@ -1,7 +1,28 @@
# RU
Это хранилище МИРА, модульной платформы.
МУРОМ:
* является редактором игр
* исполняется в веб-браузере
* использует [МОТОР][motor] для отображения 3D
* долговечен, доступен, независим
* выпущен под лицензией [CC0][cc0] (общественное достояние)
Подробности на [http://opengamestudio.org/murom][murom-ru].
# EN
This is the repository of MIR, a modular platform.
MUROM:
* is a game editor
* runs in your web browser
* uses [MOTOR][motor] to render 3D
* is durable, accessible, independent
* is released under [CC0][cc0] license (public domain)
Read more at [http://opengamestudio.org/murom][murom].
[murom]: http://opengamestudio.org/murom
[murom-ru]: http://opengamestudio.org/murom/ru
[motor]: http://bitbucket.com/ogstudio/motor
[cc0]: https://creativecommons.org/share-your-work/public-domain/cc0/

View File

@@ -1,12 +0,0 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<style>
</style>
</head>
<body>
<script>
</script>
</body>
</html>

44
заставка.js Normal file
View File

@@ -0,0 +1,44 @@
function добавитьЭкранЗаставки()
{
var заставка = document.createElement("div");
document.body.appendChild(заставка);
заставка.id = "заставка";
заставка.style.cssText = "position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;";
заставка.innerHTML =
`
<h1 id = "заголовок">МУРОМ</h1>
`;
var вид = document.createElement("style");
document.head.appendChild(вид);
вид.innerHTML =
`
#заголовок
{
position: absolute;
left: 50%;
top: 50%;
}
#заставка
{
opacity: 1;
background-color: grey;
animation: fadeOut 2s ease;
animation-fill-mode: forwards;
}
@keyframes fadeOut
{
from
{
opacity: 1;
}
to
{
opacity: 0;
}
}
`;
};
муром.старт.подписать(добавитьЭкранЗаставки);

267
муром_1.2.0.html Normal file

File diff suppressed because one or more lines are too long