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.

51 lines
3.4 KiB

6 years ago
  1. script_func_local_1:
  2. object /*model*/ MODEL_NONE, /*pos*/ 3996, -2739, 5477, /*angle*/ 0, 0, 0, /*behParam*/ 0x00520000, /*beh*/ bhvPoleGrabbing
  3. object /*model*/ MODEL_NONE, /*pos*/ -2911, 3564, -3967, /*angle*/ 0, 0, 0, /*behParam*/ 0x00540000, /*beh*/ bhvPoleGrabbing
  4. object /*model*/ MODEL_NONE, /*pos*/ -3258, 3359, -3946, /*angle*/ 0, 0, 0, /*behParam*/ 0x00690000, /*beh*/ bhvPoleGrabbing
  5. object /*model*/ MODEL_NONE, /*pos*/ -2639, 3154, -4369, /*angle*/ 0, 0, 0, /*behParam*/ 0x007D0000, /*beh*/ bhvPoleGrabbing
  6. object /*model*/ MODEL_NONE, /*pos*/ -2980, 4048, -4248, /*angle*/ 0, 0, 0, /*behParam*/ 0x00240000, /*beh*/ bhvPoleGrabbing
  7. object /*model*/ MODEL_NONE, /*pos*/ -3290, 3636, -4477, /*angle*/ 0, 0, 0, /*behParam*/ 0x004D0000, /*beh*/ bhvPoleGrabbing
  8. return
  9. script_func_local_2:
  10. object /*model*/ MODEL_NONE, /*pos*/ -160, 1950, -470, /*angle*/ 0, 0, 0, /*behParam*/ 0x00000000, /*beh*/ bhvHiddenRedCoinStar
  11. return
  12. glabel level_wmotr_entry
  13. init_level
  14. load_mio0 /*seg*/ 0x07, /*romStart*/ _wmotr_segment_7SegmentRomStart, /*romEnd*/ _wmotr_segment_7SegmentRomEnd
  15. load_mio0 /*seg*/ 0x0A, /*romStart*/ _cloud_floor_skybox_mio0SegmentRomStart, /*romEnd*/ _cloud_floor_skybox_mio0SegmentRomEnd
  16. load_mio0_texture /*seg*/ 0x09, /*romStart*/ _sky_mio0SegmentRomStart, /*romEnd*/ _sky_mio0SegmentRomEnd
  17. load_mio0 /*seg*/ 0x05, /*romStart*/ _group2_mio0SegmentRomStart, /*romEnd*/ _group2_mio0SegmentRomEnd
  18. load_raw /*seg*/ 0x0C, /*romStart*/ _group2_geoSegmentRomStart, /*romEnd*/ _group2_geoSegmentRomEnd
  19. load_mio0 /*seg*/ 0x06, /*romStart*/ _group17_mio0SegmentRomStart, /*romEnd*/ _group17_mio0SegmentRomEnd
  20. load_raw /*seg*/ 0x0D, /*romStart*/ _group17_geoSegmentRomStart, /*romEnd*/ _group17_geoSegmentRomEnd
  21. load_mio0 /*seg*/ 0x08, /*romStart*/ _common0_mio0SegmentRomStart, /*romEnd*/ _common0_mio0SegmentRomEnd
  22. load_raw /*seg*/ 0x0F, /*romStart*/ _common0_geoSegmentRomStart, /*romEnd*/ _common0_geoSegmentRomEnd
  23. alloc_level_pool
  24. mario /*model*/ MODEL_MARIO, /*behParam*/ 0x00000001, /*beh*/ bhvMario
  25. jump_link /*target*/ script_func_global_1
  26. jump_link /*target*/ script_func_global_3
  27. jump_link /*target*/ script_func_global_18
  28. area /*index*/ 1, /*geo*/ wmotr_geo_0001F0
  29. object /*model*/ MODEL_NONE, /*pos*/ -67, 2669, -16, /*angle*/ 0, 270, 0, /*behParam*/ 0x000A0000, /*beh*/ bhvWarps64
  30. warp_node /*id*/ 0x0A, /*destLevel*/ 0x1F, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  31. warp_node /*id*/ 0xF0, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x38, /*unk6*/ 0x0000
  32. warp_node /*id*/ 0xF1, /*destLevel*/ 0x06, /*destArea*/ 0x02, /*destNode*/ 0x6D, /*unk6*/ 0x0000
  33. warp_node /*id*/ 0xF3, /*destLevel*/ 0x10, /*destArea*/ 0x01, /*destNode*/ 0x0A, /*unk6*/ 0x0000
  34. jump_link /*target*/ script_func_local_1
  35. jump_link /*target*/ script_func_local_2
  36. terrain /*terrainData*/ wmotr_seg7_collision
  37. macro_objects /*objList*/ wmotr_seg7_macro_objs
  38. set_music /*unk2*/ 0x0000, /*seq*/ SEQ_LEVEL_SLIDE
  39. terrain_type /*terrainType*/ 0x0002
  40. end_area
  41. free_level_pool
  42. mario_pos /*area*/ 1, /*yaw*/ 270, /*pos*/ -67, 1669, -16
  43. call /*arg*/ 0, /*func*/ lvl_init_or_update
  44. call_loop /*arg*/ 1, /*func*/ lvl_init_or_update
  45. clear_level
  46. sleep_before_exit /*frames*/ 1
  47. exit