tonyboss.lua

Shipped with TRX as data/trx/ship/games/tr3/scripts/tonyboss.lua.

trx.events.on_pickup(function(pickup_item)
  local item = trx.items[pickup_item]
  if item.object_id == trx.catalog.objects.quest_item_1 then
    trx.rooms.flip_effect(trx.catalog.flip_effects.finish_level)
  end
end)

trx.events.on_game_start(function()
  local props = trx.objects.quest_item_1.properties
  props.glow_color = "#00F87C"
  props.rotation = trx.math.DEG_90 // 16
  props.show_pickup_aid = false
end)

Back to the shipped scripts