Browse Source

Изменения от Главреда ГитЖС | Changes of GitJS Glavred

master
Главред | Glavred 3 years ago
parent
commit
3808f6c9f5
2 changed files with 23 additions and 15 deletions
  1. +21
    -15
      🏁.js
  2. +2
    -0
      📦

+ 21
- 15
🏁.js View File

@@ -1,8 +1,16 @@
//const ФИШКИ = "https://git.opengamestudio.org/PuCOBATEJlb/PECYPCbl/raw/branch/master/0000";
//const ФИШКА = "/фишка.gltf";

const ФИШКИ = "https://git.opengamestudio.org/MAOH/MAOH_KA_M1/raw/branch/master/0000";
const ФИШКА = "/TileHigh.gltf";

//const ТЕМА = "https://git.opengamestudio.org/MAOH/MAOH_TEMA_OTAK/raw/branch/master/0000";
const ТЕМА = "https://git.opengamestudio.org/MAOH/MAOH_TEMA_M1_KACC/raw/branch/master/0000";

const РЕСУРСЫ = "https://git.opengamestudio.org/PuCOBATEJlb/PECYPCbl/raw/branch/master/0000";
const ФИШКА = "/фишка.gltf";
const ТЕМА_ОТЛАДОЧНАЯ = "https://git.opengamestudio.org/MAOH/MAOH_TEMA_OTAK/raw/branch/master/0000";
const РАСКЛАДКИ = "https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/raw/branch/master/0000";
//const РАСКЛАДКА = "/😀.layout";
//const РАСКЛАДКА = "/😭.layout";
const РАСКЛАДКА = "/X_shaped.layout";


// // // //
@@ -48,9 +56,7 @@ const РАСКЛАДКИ = "https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/r
ПодготовитьсяКСозданиюФишек = мир =>
{
var м = мир.модули.модульПоУказателю(РАСКЛАДКИ);
//var раскладка = "/😀.layout";
var раскладка = "/😭.layout";
var содержимое = м.содержимое[раскладка];
var содержимое = м.содержимое[РАСКЛАДКА];
var позиции = разобратьРаскладкуKMahjongg(содержимое);
var фишки = [];
@@ -69,7 +75,7 @@ const РАСКЛАДКИ = "https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/r
};

мир.фишкиМаджонга = фишки;
мир.модельФишкиСцены = мир.полигональныеСетки[РЕСУРСЫ][ФИШКА];
мир.модельФишкиСцены = мир.полигональныеСетки[ФИШКИ][ФИШКА];
мир.сцена.add(мир.сценаМаджонга);
};

@@ -80,8 +86,8 @@ const РАСКЛАДКИ = "https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/r
СоздатьПримерСцены = мир =>
{
мир.сцена.background = new THREE.Color(0xFFFFFF);
мир.камера.position.y = 20;
мир.камера.position.z = 10;
мир.камера.position.y = 30;
мир.камера.position.z = 20;
мир.камера.lookAt(new THREE.Vector3(0, 0, 0));
мир.свет = new THREE.DirectionalLight(0xFFFFFF, 1);
@@ -98,13 +104,13 @@ const РАСКЛАДКИ = "https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/r
мир.материалыФишекСцены = [];
мир.выбранныеМатериалыФишекСцены = [];

var текстуры = мир.текстуры[ТЕМА_ОТЛАДОЧНАЯ];
var текстуры = мир.текстуры[ТЕМА];
for (var имя in текстуры)
{
var текстура = текстуры[имя];
var материал = new THREE.MeshLambertMaterial({
map: текстура,
color: new THREE.Color(0xAAAAAA),
color: new THREE.Color(0xCCCCCC),
});
мир.материалыФишекСцены.push(материал);
var выбранныйМатериал = new THREE.MeshLambertMaterial({
@@ -121,20 +127,20 @@ const РАСКЛАДКИ = "https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/r
ПодготовитьсяКЗагрузкеРесурсов = мир =>
{
мир.полигональныеСетки = {
[РЕСУРСЫ]: {
[ФИШКИ]: {
[ФИШКА]: null,
},
};

мир.текстуры = {
[ТЕМА_ОТЛАДОЧНАЯ]: { },
[ТЕМА]: { },
};
var м = мир.модули.модульПоУказателю(ТЕМА_ОТЛАДОЧНАЯ);
var м = мир.модули.модульПоУказателю(ТЕМА);
var файлы = Object.keys(м.структура).sort();
for (var номер in файлы)
{
var файл = файлы[номер];
мир.текстуры[ТЕМА_ОТЛАДОЧНАЯ][файл] = null;
мир.текстуры[ТЕМА][файл] = null;
}
};



+ 2
- 0
📦 View File

@@ -8,6 +8,8 @@ https://git.opengamestudio.org/mahjong/mahjong-raskladka-layout/raw/branch/maste
https://git.opengamestudio.org/mahjong/povtorniy-repeating-ui/raw/branch/master/0000
https://git.opengamestudio.org/PuCOBATEJlb/PuCOBATEJlb/raw/branch/master/0000
https://git.opengamestudio.org/PuCOBATEJlb/PECYPCbl/raw/branch/master/0000
https://git.opengamestudio.org/MAOH/MAOH_KA_M1/raw/branch/master/0000
https://git.opengamestudio.org/MAOH/MAOH_TEMA_M1_KACC/raw/branch/master/0000
https://git.opengamestudio.org/MAOH/MAOH_TEMA_OTAK/raw/branch/master/0000
https://git.opengamestudio.org/MAOH/MAOH_PACK_OTAK/raw/branch/master/0000
https://git.opengamestudio.org/MAOH/MEXMA/raw/branch/master/0000

Loading…
Cancel
Save