Я хочу сделать так чтобы картинка которую я загрузил могла двигаться влево на стелку влево , вправо на стрелку ->, верх настрелку вверх и вниз на стрелку вниз . Помогите пожалуйста. Дам ЖИРНЫЙ ,ОГРОМНЫЙ +
zombie = pge.texture.load("zombie.png") human = pge.texture.load("human.png") bg = pge.texture.load("bg2.png") pge.mp3.play("game_music.mp3") pge.mp3.loop(true) x=0 y=0 r=0 while pge.running() do pge.controls.update() pge.gfx.startdrawing() pge.gfx.clearscreen() bg:activate() bg:draweasy(0,0) zombie:activate() zombie:draweasy(0,0) human:activate() human:draweasy(x,y,r,255) pge.gfx.enddrawing() pge.gfx.swapbuffers() if pge.controls.held(PGE_CTRL_UP) then y=y-2 elseif pge.controls.held(PGE_CTRL_DOWN) then y=y+2 elseif pge.controls.held(PGE_CTRL_LEFT) then x=x-2 elseif pge.controls.held(PGE_CTRL_RIGHT) then x=x+2 end if pge.controls.held(PGE_CTRL_LTRIGGER) then r=r-0.05 elseif pge.controls.held(PGE_CTRL_RTRIGGER) then r=r+0.05 end end
Возраст: 29 | | Сообщений: 1400 Благодарности: 22 / 150 Репутация: 190 Предупреждений: 0
Друзья Тут: 15 лет 1 месяц
kikiyay, иш, захотел чего. Я конечно подумаю, так как делал что-то подобное, но не обещаю, что смогу . Да и тем более, завтра доступ к компьютеру будет только после 18:00 . Такие вот дела. А пока - ...
"" and "PlayStation" are registered trademarks of Sony Computer Entertainment Inc. "", PSP and "UMD" are trademarks of Sony Computer Entertainment Inc. "", "XMB", "Memory Stick Duo" and the "Memory Stick Duo" logotype are trademarks of Sony Corp. All product titles, publisher names, trademarks, artwork and associated imagery are trademarks, registered trademarks and/or copyright material of the respective owners. All rights reserved.