t.rb 644 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @t1 ||= actor_index
  2. @t2 ||= nil
  3. @s1 ||= sprite_getornew(1)
  4. @s2 ||= sprite_getornew(2)
  5. def make_pc(sid)
  6. res = thing_new(1, 200, 70, 1, 32, 32)
  7. spri = sprite_getornew(sid)
  8. sprite_loadulpcss spri, 1, "image/ulpcss/body/female/dark.png"
  9. thing_sprite_ res, spri
  10. thing_pose_ res, 2
  11. thing_direction_ res, 1
  12. return res, spri
  13. end
  14. if !@t2
  15. @t2 = thing_new(1, 200, 70, 1, 32, 32)
  16. sprite_loadulpcss @s2, 1, "image/ulpcss/body/female/dark.png"
  17. thing_sprite_ @t2, @s2
  18. thing_pose_ @t2, 1
  19. thing_direction_ @t2, 1
  20. end
  21. def actor_(t)
  22. p t
  23. actor_index_ t
  24. camera_track t
  25. end
  26. @t3, @s3 = make_pc(3)
  27. actor_ @t3