Joined: 8/2/2022
Posts: 1
Location: Fortaleza-CE
Hi guys. I'm new here. I study some things about TAS, but I never make a movie. I want to make a TAS of Human Cannonball (Atari 2600) and I'm looking for some trips. I already have a source code in lua with a test version. The last input occur in frame 1946 and I don't know to improve this. I don't know how to use TAStudio. I always use Lua Console.
--Functions Section
function endGame()
  while true do
    emu.frameadvance()
  end
end

function startGame()
  client.reboot_core()
end

function frameAdvance(num)
  for v0 = 1, num do
    emu.frameadvance()
  end
end

function pressLeftAndReset()
  joypad.set({["P1 Left"] = true, ["Reset"] = true})
end

function pressP1Button()
  joypad.set({["P1 Button"] = true})
end

function pressP1Left()
  joypad.set({["P1 Left"] = true})
end
---------------------------------------------------------------------
--Main Function Section
function main()
  startGame()
  frameAdvance(1)
  pressLeftAndReset()
  frameAdvance(2)
  pressP1Button()

  frameAdvance(200)
  pressP1Left()
  frameAdvance(123)
  pressP1Button()

  frameAdvance(324)
  pressP1Button()

  frameAdvance(80)
  pressP1Left()
  frameAdvance(244)
  pressP1Button()

  frameAdvance(324)
  pressP1Button()

  frameAdvance(324)
  pressP1Button()

  frameAdvance(324)
  pressP1Button()
end
---------------------------------------------------------------------
--Code Section
main()
client.pause()
---------------------------------------------------------------------
--Do not remove this function!
endGame()
Bigbass
He/Him
Moderator
Joined: 2/2/2021
Posts: 208
Location: Midwest
arrieguaMan wrote:
Hi guys. I'm new here. I study some things about TAS, but I never make a movie. I want to make a TAS of Human Cannonball (Atari 2600) and I'm looking for some trips. I already have a source code in lua with a test version. The last input occur in frame 1946 and I don't know to improve this. I don't know how to use TAStudio. I always use Lua Console.
Using Lua in this way is a highly inefficient way of making a TAS and isn't something I'd recommend. It'll be a whole lot harder to make changes and step backwards/forwards through a game, than it would be if you were using TAStudio. For learning how to TAS and how to use TAStudio check out our Wiki: TasingGuide page and this playlist by The8bitbeast.
TAS Verifications | Mastodon | Github | Discord: @bigbass

1740161219