这次是that game jam,开发前日志1,打算做一个多窗口游戏

所以这几天一直在研究多窗口相关的逻辑,也是做出了一点小成绩,可喜可贺,

Image

https://www.bilibili.com/video/BV17RqZBpEHc/#reply285913644528

搞出来了自己觉得还行的第一个教程

然后来分享几个常见的游戏素材网站吧,经典Kenneyhttps://www.kenney.nl/assets/

这个适合做免费同人游戏,有很多知名角色的素材https://www.spriters-resource.com/

免费图标,或许可以做一个图标游戏?https://game-icons.net/

(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()})();