Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
4.5 KiB

6 years ago
  1. script_func_local_1:
  2. object /*model*/ MODEL_NONE, /*pos*/ -1080, -840, 1573, /*angle*/ 0, 0, 0, /*behParam*/ 0x00560000, /*beh*/ bhvPoleGrabbing
  3. object /*model*/ MODEL_THWOMP, /*pos*/ 1919, 6191, 1919, /*angle*/ 0, 225, 0, /*behParam*/ 0x00000000, /*beh*/ bhvThwomp2
  4. return
  5. script_func_local_2:
  6. object /*model*/ MODEL_STAR, /*pos*/ -1450, -1130, -1050, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  7. object /*model*/ MODEL_STAR, /*pos*/ -1850, 300, -950, /*angle*/ 0, 0, 0, /*behParam*/ 0x01000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  8. object /*model*/ MODEL_STAR, /*pos*/ -1300, -2250, -1300, /*angle*/ 0, 0, 0, /*behParam*/ 0x02000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  9. object /*model*/ MODEL_STAR, /*pos*/ 2200, 7300, 2210, /*angle*/ 0, 0, 0, /*behParam*/ 0x03000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  10. object /*model*/ MODEL_STAR, /*pos*/ -1050, 2400, -790, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvStar, /*acts*/ ALL_ACTS
  11. object /*model*/ MODEL_NONE, /*pos*/ 1815, -3200, 800, /*angle*/ 0, 0, 0, /*behParam*/ 0x05000000, /*beh*/ bhvHiddenRedCoinStar, /*acts*/ ALL_ACTS
  12. return
  13. glabel level_ttc_entry
  14. init_level
  15. load_mio0 /*seg*/ 0x07, /*romStart*/ _ttc_segment_7SegmentRomStart, /*romEnd*/ _ttc_segment_7SegmentRomEnd
  16. load_mio0_texture /*seg*/ 0x09, /*romStart*/ _machine_mio0SegmentRomStart, /*romEnd*/ _machine_mio0SegmentRomEnd
  17. load_mio0 /*seg*/ 0x05, /*romStart*/ _group1_mio0SegmentRomStart, /*romEnd*/ _group1_mio0SegmentRomEnd
  18. load_raw /*seg*/ 0x0C, /*romStart*/ _group1_geoSegmentRomStart, /*romEnd*/ _group1_geoSegmentRomEnd
  19. load_mio0 /*seg*/ 0x08, /*romStart*/ _common0_mio0SegmentRomStart, /*romEnd*/ _common0_mio0SegmentRomEnd
  20. load_raw /*seg*/ 0x0F, /*romStart*/ _common0_geoSegmentRomStart, /*romEnd*/ _common0_geoSegmentRomEnd
  21. alloc_level_pool
  22. mario /*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario
  23. jump_link /*target*/ script_func_global_1
  24. jump_link /*target*/ script_func_global_2
  25. load_model_from_geo /*model*/ MODEL_TTC_ROTATING_CUBE, /*geo*/ ttc_geo_000240
  26. load_model_from_geo /*model*/ MODEL_TTC_ROTATING_PRISM, /*geo*/ ttc_geo_000258
  27. load_model_from_geo /*model*/ MODEL_TTC_PENDULUM, /*geo*/ ttc_geo_000270
  28. load_model_from_geo /*model*/ MODEL_TTC_LARGE_TREADMILL, /*geo*/ ttc_geo_000288
  29. load_model_from_geo /*model*/ MODEL_TTC_SMALL_TREADMILL, /*geo*/ ttc_geo_0002A8
  30. load_model_from_geo /*model*/ MODEL_TTC_PUSH_BLOCK, /*geo*/ ttc_geo_0002C8
  31. load_model_from_geo /*model*/ MODEL_TTC_ROTATING_HEXAGON, /*geo*/ ttc_geo_0002E0
  32. load_model_from_geo /*model*/ MODEL_TTC_ROTATING_TRIANGLE, /*geo*/ ttc_geo_0002F8
  33. load_model_from_geo /*model*/ MODEL_TTC_PIT_BLOCK, /*geo*/ ttc_geo_000310
  34. load_model_from_geo /*model*/ MODEL_TTC_PIT_BLOCK_2, /*geo*/ ttc_geo_000328
  35. load_model_from_geo /*model*/ MODEL_TTC_ELEVATOR_PLATFORM, /*geo*/ ttc_geo_000340
  36. load_model_from_geo /*model*/ MODEL_TTC_CLOCK_HAND, /*geo*/ ttc_geo_000358
  37. load_model_from_geo /*model*/ MODEL_TTC_SPINNER, /*geo*/ ttc_geo_000370
  38. load_model_from_geo /*model*/ MODEL_TTC_SMALL_GEAR, /*geo*/ ttc_geo_000388
  39. load_model_from_geo /*model*/ MODEL_TTC_LARGE_GEAR, /*geo*/ ttc_geo_0003A0
  40. area /*index*/ 1, /*geo*/ ttc_geo_0003B8
  41. object /*model*/ MODEL_NONE, /*pos*/ 1417, -3822, -548, /*angle*/ 0, 316, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps74
  42. warp_node /*id*/ 0x0A, /*destLevel*/ 0x0E, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  43. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x35, /*unk6*/ 0x0000
  44. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x67, /*unk6*/ 0x0000
  45. jump_link /*target*/ script_func_local_1
  46. jump_link /*target*/ script_func_local_2
  47. terrain /*terrainData*/ ttc_seg7_collision_level
  48. macro_objects /*objList*/ ttc_seg7_macro_objs
  49. set_music /*unk2*/ 0x0001, /*seq*/ SEQ_LEVEL_SLIDE
  50. terrain_type /*terrainType*/ 0x0001
  51. end_area
  52. free_level_pool
  53. mario_pos /*area*/ 1, /*yaw*/ 316, /*pos*/ 1417, -4822, -548
  54. call /*arg*/ 0, /*func*/ lvl_init_or_update
  55. call_loop /*arg*/ 1, /*func*/ lvl_init_or_update
  56. clear_level
  57. sleep_before_exit /*frames*/ 1
  58. exit