{"size": 2721, "ext": "js", "max_stars_repo_path": "src/levels/castle_grounds/areas/1/movtext.inc.js", "max_stars_repo_name": "Cooliokid956/sm64js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/levels/castle_grounds/areas/1/movtext.inc.js", "max_issues_repo_name": "Cooliokid956/sm64js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/levels/castle_grounds/areas/1/movtext.inc.js", "max_forks_repo_name": "Cooliokid956/sm64js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.323943662, "max_line_length": 279, "alphanum_fraction": 0.6361631753}
import * as Gbi from "../../../../include/gbi"
import { MOV_TEX_INIT_LOAD, MOV_TEX_ROT_SPEED, MOV_TEX_ROT_SCALE, MOV_TEX_4_BOX_TRIS, MOV_TEX_ROT, ROTATE_COUNTER_CLOCKWISE, MOV_TEX_ALPHA, MOV_TEX_DEFINE, TEXTURE_WATER, ROTATE_CLOCKWISE, MOV_TEX_END, MOV_TEX_SPD, MOV_TEX_TRIS } from "../../../../include/moving_texture_macros";

const castle_grounds_movtex_moat_water_data = [
    ...MOV_TEX_INIT_LOAD(1),
    ...MOV_TEX_ROT_SPEED(20),
    ...MOV_TEX_ROT_SCALE(15),
    ...MOV_TEX_4_BOX_TRIS(-7129, -7222),
    ...MOV_TEX_4_BOX_TRIS(-7129, -58),
    ...MOV_TEX_4_BOX_TRIS(8253, -58),
    ...MOV_TEX_4_BOX_TRIS(8253, -7222),
    ...MOV_TEX_ROT(ROTATE_COUNTER_CLOCKWISE),
    ...MOV_TEX_ALPHA(0x96),
    ...MOV_TEX_DEFINE(TEXTURE_WATER),
    ...MOV_TEX_END()
]

const castle_grounds_movtex_lake_water_data = [
    ...MOV_TEX_INIT_LOAD(1),
    ...MOV_TEX_ROT_SPEED(15),
    ...MOV_TEX_ROT_SCALE(10),
    ...MOV_TEX_4_BOX_TRIS(1024, -58),
    ...MOV_TEX_4_BOX_TRIS(1024, 8137),
    ...MOV_TEX_4_BOX_TRIS(8230, 8137),
    ...MOV_TEX_4_BOX_TRIS(8230, -58),
    ...MOV_TEX_ROT(ROTATE_CLOCKWISE),
    ...MOV_TEX_ALPHA(0x96),
    ...MOV_TEX_DEFINE(TEXTURE_WATER),
    ...MOV_TEX_END(),
]



export const castle_grounds_movtex_water = [
    { id: 0, movtex: castle_grounds_movtex_moat_water_data },
    { id: 1, movtex: castle_grounds_movtex_lake_water_data },
    { id: -1 }
]

export const castle_grounds_movtex_tris_waterfall = [
    ...MOV_TEX_SPD(70),
    ...MOV_TEX_TRIS(-4469, -800, -6413, 0, 0),
    ...MOV_TEX_TRIS(-5525, 1171, -7026, 2, 0),
    ...MOV_TEX_TRIS(-6292, 2028, -7463, 4, 0),
    ...MOV_TEX_TRIS(-7302, 2955, -7461, 6, 0),
    ...MOV_TEX_TRIS(-4883, -800, -5690, 0, 3),
    ...MOV_TEX_TRIS(-5547, 1110, -6097, 2, 3),
    ...MOV_TEX_TRIS(-6732, 2587, -6770, 4, 3),
    ...MOV_TEX_TRIS(-7603, 3004, -7160, 6, 3),
    ...MOV_TEX_TRIS(-5580, -800, -4740, 0, 6),
    ...MOV_TEX_TRIS(-6205, 1068, -5347, 2, 6),
    ...MOV_TEX_TRIS(-7249, 2566, -6192, 4, 6),
    ...MOV_TEX_TRIS(-6895, -800, -4714, 0, 9),
    ...MOV_TEX_TRIS(-7201, 1083, -5071, 2, 9),
    ...MOV_TEX_TRIS(-7578, 2042, -5766, 4, 9),
    ...MOV_TEX_TRIS(-8132, 2961, -6761, 6, 9)
]

export const castle_grounds_dl_waterfall = [
    ...Gbi.gsSP2Triangles(0, 1, 5, 0x0, 0, 5, 4, 0x0),
    ...Gbi.gsSP2Triangles(1, 2, 6, 0x0, 1, 6, 5, 0x0),
    ...Gbi.gsSP2Triangles(2, 3, 6, 0x0, 3, 7, 6, 0x0),
    ...Gbi.gsSP2Triangles(4, 5, 9, 0x0, 4, 9, 8, 0x0),
    ...Gbi.gsSP2Triangles(5, 6, 9, 0x0, 6, 10, 9, 0x0),
    ...Gbi.gsSP2Triangles(6, 7, 10, 0x0, 8, 9, 12, 0x0),
    ...Gbi.gsSP2Triangles(8, 12, 11, 0x0, 9, 10, 13, 0x0),
    ...Gbi.gsSP2Triangles(9, 13, 12, 0x0, 10, 7, 14, 0x0),
    Gbi.gsSP1Triangle(10, 14, 13, 0x0),
    Gbi.gsSPEndDisplayList(),
]
