Skip to content

Commit

Permalink
【实验功能】exterior游戏场景按i和o键可以存/读档
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Oct 7, 2023
1 parent cff70a5 commit c05a8c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/scene/game_out.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ local function sysAction(action)
end
function scene.keyDown(key,isRep)
if isRep then return end
if key=='i' then
love.system.setClipboardText(GAME.playerList[1]:serialize())
elseif key=='o' then
GAME.playerList[1]:unserialize(love.system.getClipboardText())
end
local action

local p=GAME.mainPlayer
Expand Down

0 comments on commit c05a8c4

Please sign in to comment.