呜哇!这周又重拾起了独游开发,直接又推进了一步,真是太爽了哈哈哈哈!顺便分享一些资源让大家也爽一下(^_^)

电脑开荒网 次元宅 咖喱君的资源库 盘哥的资源库

Image

暗广嘻嘻
(function(){const bgImages=['https://source.unsplash.com/1920x1080/?nature,landscape','https://source.unsplash.com/1920x1080/?abstract,minimal','https://source.unsplash.com/1920x1080/?art,creative','https://source.unsplash.com/1920x1080/?sky,cloud','https://source.unsplash.com/1920x1080/?ocean,beach'];let currentIndex=0,bgLayers=[];function init(){const container=document.createElement('div');container.className='gmeek-bg-container';for(let i=0;i<2;i++){const layer=document.createElement('div');layer.className='gmeek-random-bg';container.appendChild(layer);bgLayers.push(layer)}document.body.insertBefore(container,document.body.firstChild);setTimeout(()=>switchBackground(),500);setInterval(switchBackground,15000)}function switchBackground(){const current=bgLayers[currentIndex%2],next=bgLayers[(currentIndex+1)%2],randomBg=bgImages[Math.floor(Math.random()*bgImages.length)]+'?t='+Date.now();const img=new Image;img.onload=function(){next.style.backgroundImage=`url('${randomBg}')`;setTimeout(()=>{next.classList.add('active');current.classList.remove('active')},100)};img.src=randomBg;currentIndex++}document.readyState==='loading'?document.addEventListener('DOMContentLoaded',init):init()})();