feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39

Merged
min merged 215 commits from feat/lua-50-games-bundle into main 2026-06-09 21:59:25 +00:00
Showing only changes of commit 7384494c8f - Show all commits

View File

@ -1817,10 +1817,11 @@ export function registerRobloxShim(lua, opts) {
}); });
}); });
// Эффекты частиц (confetti, sparks и т.п.) — как game.scene.spawnParticles. // Эффекты частиц (confetti, sparks и т.п.) — как game.scene.spawnParticles.
// BabylonScene._spawnParticleEffect ждёт payload.type и payload.position.
global.set('__rbxl_spawn_particles', (kind, x, y, z, duration, count) => { global.set('__rbxl_spawn_particles', (kind, x, y, z, duration, count) => {
send('scene.particles', { send('scene.particles', {
kind: String(kind || 'confetti'), type: String(kind || 'confetti'),
pos: { x: +x, y: +y, z: +z }, position: { x: +x, y: +y, z: +z },
duration: Number(duration) || 2, duration: Number(duration) || 2,
count: Number(count) || 1, count: Number(count) || 1,
}); });