diff --git a/minecraft-in-24h-jam.yyp b/minecraft-in-24h-jam.yyp new file mode 100644 index 0000000..3faa2f5 --- /dev/null +++ b/minecraft-in-24h-jam.yyp @@ -0,0 +1,55 @@ +{ + "resources": [ + {"id":{"name":"spr_testtex_bottom","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",},"order":9,}, + {"id":{"name":"obj_player","path":"objects/obj_player/obj_player.yy",},"order":0,}, + {"id":{"name":"scr_vertex_add_point","path":"scripts/scr_vertex_add_point/scr_vertex_add_point.yy",},"order":3,}, + {"id":{"name":"Script3","path":"scripts/Script3/Script3.yy",},"order":7,}, + {"id":{"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"order":8,}, + {"id":{"name":"scr_initialize","path":"scripts/scr_initialize/scr_initialize.yy",},"order":4,}, + {"id":{"name":"obj_block","path":"objects/obj_block/obj_block.yy",},"order":0,}, + {"id":{"name":"obj_skybox","path":"objects/obj_skybox/obj_skybox.yy",},"order":2,}, + {"id":{"name":"spr_skybox_bottom","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",},"order":5,}, + {"id":{"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"order":3,}, + {"id":{"name":"obj_world","path":"objects/obj_world/obj_world.yy",},"order":7,}, + {"id":{"name":"obj_chunk","path":"objects/obj_chunk/obj_chunk.yy",},"order":6,}, + {"id":{"name":"obj_camera","path":"objects/obj_camera/obj_camera.yy",},"order":0,}, + {"id":{"name":"spr_testtex_side","path":"sprites/spr_testtex_side/spr_testtex_side.yy",},"order":1,}, + {"id":{"name":"spr_skybox_side","path":"sprites/spr_skybox_side/spr_skybox_side.yy",},"order":4,}, + {"id":{"name":"rm_main","path":"rooms/rm_main/rm_main.yy",},"order":0,}, + ], + "Options": [ + {"name":"Linux","path":"options/linux/options_linux.yy",}, + {"name":"macOS","path":"options/mac/options_mac.yy",}, + {"name":"Main","path":"options/main/options_main.yy",}, + {"name":"Windows","path":"options/windows/options_windows.yy",}, + ], + "isDnDProject": false, + "isEcma": false, + "tutorialPath": "", + "configs": { + "name": "Default", + "children": [], + }, + "RoomOrderNodes": [ + {"roomId":{"name":"rm_main","path":"rooms/rm_main/rm_main.yy",},}, + ], + "Folders": [ + {"folderPath":"folders/Camera.yy","order":1,"resourceVersion":"1.0","name":"Camera","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Terrain.yy","order":2,"resourceVersion":"1.0","name":"Terrain","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Actors.yy","order":6,"resourceVersion":"1.0","name":"Actors","tags":[],"resourceType":"GMFolder",}, + ], + "AudioGroups": [ + {"targets":-1,"resourceVersion":"1.3","name":"audiogroup_default","resourceType":"GMAudioGroup",}, + ], + "TextureGroups": [ + {"isScaled":true,"autocrop":true,"border":2,"mipsToGenerate":0,"groupParent":null,"targets":-1,"resourceVersion":"1.3","name":"Default","resourceType":"GMTextureGroup",}, + ], + "IncludedFiles": [], + "MetaData": { + "IDEVersion": "2.3.2.560", + }, + "resourceVersion": "1.4", + "name": "minecraft-in-24h-jam", + "tags": [], + "resourceType": "GMProject", +} \ No newline at end of file diff --git a/objects/obj_block/Create_0.gml b/objects/obj_block/Create_0.gml new file mode 100644 index 0000000..0c921fd --- /dev/null +++ b/objects/obj_block/Create_0.gml @@ -0,0 +1,93 @@ +z = 0; +var s = 64; +var color = c_white; + +b_tex = spr_testtex_bottom; +b_face = global.model_cube[BOTTOM_FACE]; + + + +#region bottom face +b_tex = spr_testtex_bottom; +b_face = vertex_create_buffer(); +vertex_begin( b_face, global.vertex_format ); + +vertex_add_point( b_face, 0, 0, 0, 0, 0, -1, 0, 0, color, 1); +vertex_add_point( b_face, s, 0, 0, 0, 0, -1, 1, 0, color, 1); +vertex_add_point( b_face, s, s, 0, 0, 0, -1, 1, 1, color, 1); +vertex_add_point( b_face, s, s, 0, 0, 0, -1, 1, 1, color, 1); +vertex_add_point( b_face, 0, s, 0, 0, 0, -1, 0, 1, color, 1); +vertex_add_point( b_face, 0, 0, 0, 0, 0, -1, 0, 0, color, 1); + +vertex_end( b_face ); +#endregion +#region top face +t_tex = spr_testtex_top; +t_face = vertex_create_buffer(); +vertex_begin( t_face, global.vertex_format ); + +vertex_add_point( t_face, 0, 0, s, 0, 0, 1, 0, 0, color, 1); +vertex_add_point( t_face, s, 0, s, 0, 0, 1, 1, 0, color, 1); +vertex_add_point( t_face, s, s, s, 0, 0, 1, 1, 1, color, 1); +vertex_add_point( t_face, s, s, s, 0, 0, 1, 1, 1, color, 1); +vertex_add_point( t_face, 0, s, s, 0, 0, 1, 0, 1, color, 1); +vertex_add_point( t_face, 0, 0, s, 0, 0, 1, 0, 0, color, 1); + +vertex_end( t_face ); +#endregion +#region north face +n_tex = spr_testtex_side; +n_face = vertex_create_buffer(); +vertex_begin( n_face, global.vertex_format ); + +vertex_add_point( n_face, 0, 0, 0, 0, -1, 0, 1, 1, color, 1); +vertex_add_point( n_face, s, 0, 0, 0, -1, 0, 0, 1, color, 1); +vertex_add_point( n_face, s, 0, s, 0, -1, 0, 0, 0, color, 1); +vertex_add_point( n_face, s, 0, s, 0, -1, 0, 0, 0, color, 1); +vertex_add_point( n_face, 0, 0, s, 0, -1, 0, 1, 0, color, 1); +vertex_add_point( n_face, 0, 0, 0, 0, -1, 0, 1, 1, color, 1); + +vertex_end( n_face ); +#endregion +#region south face +s_tex = spr_testtex_side; +s_face = vertex_create_buffer(); +vertex_begin( s_face, global.vertex_format ); + +vertex_add_point( s_face, 0, s, 0, 0, 1, 0, 1, 1, color, 1); +vertex_add_point( s_face, s, s, 0, 0, 1, 0, 0, 1, color, 1); +vertex_add_point( s_face, s, s, s, 0, 1, 0, 0, 0, color, 1); +vertex_add_point( s_face, s, s, s, 0, 1, 0, 0, 0, color, 1); +vertex_add_point( s_face, 0, s, s, 0, 1, 0, 1, 0, color, 1); +vertex_add_point( s_face, 0, s, 0, 0, 1, 0, 1, 1, color, 1); + +vertex_end( s_face ); +#endregion +#region west face +w_tex = spr_testtex_side; +w_face = vertex_create_buffer(); +vertex_begin( w_face, global.vertex_format ); + +vertex_add_point( w_face, 0, 0, 0, -1, 0, 0, 1, 1, color, 1); +vertex_add_point( w_face, 0, s, 0, -1, 0, 0, 0, 1, color, 1); +vertex_add_point( w_face, 0, s, s, -1, 0, 0, 0, 0, color, 1); +vertex_add_point( w_face, 0, s, s, -1, 0, 0, 0, 0, color, 1); +vertex_add_point( w_face, 0, 0, s, -1, 0, 0, 1, 0, color, 1); +vertex_add_point( w_face, 0, 0, 0, -1, 0, 0, 1, 1, color, 1); + +vertex_end( w_face ); +#endregion +#region east face +e_tex = spr_testtex_side; +e_face = vertex_create_buffer(); +vertex_begin( e_face, global.vertex_format ); + +vertex_add_point( e_face, s, 0, 0, 1, 0, 0, 1, 1, color, 1); +vertex_add_point( e_face, s, s, 0, 1, 0, 0, 0, 1, color, 1); +vertex_add_point( e_face, s, s, s, 1, 0, 0, 0, 0, color, 1); +vertex_add_point( e_face, s, s, s, 1, 0, 0, 0, 0, color, 1); +vertex_add_point( e_face, s, 0, s, 1, 0, 0, 1, 0, color, 1); +vertex_add_point( e_face, s, 0, 0, 1, 0, 0, 1, 1, color, 1); + +vertex_end( e_face ); +#endregion diff --git a/objects/obj_block/Draw_0.gml b/objects/obj_block/Draw_0.gml new file mode 100644 index 0000000..b4dc204 --- /dev/null +++ b/objects/obj_block/Draw_0.gml @@ -0,0 +1,12 @@ + +var matrix = matrix_build( x, y, z, 0, 0, 0, 1, 1, 1 ); +matrix_set( matrix_world, matrix ); + +vertex_submit( b_face, pr_trianglelist, sprite_get_texture(b_tex, 0) ); +vertex_submit( t_face, pr_trianglelist, sprite_get_texture(t_tex, 0) ); +vertex_submit( n_face, pr_trianglelist, sprite_get_texture(n_tex, 0) ); +vertex_submit( s_face, pr_trianglelist, sprite_get_texture(s_tex, 0) ); +vertex_submit( w_face, pr_trianglelist, sprite_get_texture(w_tex, 0) ); +vertex_submit( e_face, pr_trianglelist, sprite_get_texture(e_tex, 0) ); + +matrix_set( matrix_world, matrix_build_identity() ); \ No newline at end of file diff --git a/objects/obj_block/obj_block.yy b/objects/obj_block/obj_block.yy new file mode 100644 index 0000000..6be79d0 --- /dev/null +++ b/objects/obj_block/obj_block.yy @@ -0,0 +1,34 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "obj_block", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_camera/Create_0.gml b/objects/obj_camera/Create_0.gml new file mode 100644 index 0000000..63eb111 --- /dev/null +++ b/objects/obj_camera/Create_0.gml @@ -0,0 +1,9 @@ +x = 100; +y = 100; +z = 100; + +global.fog[0] = true; +global.fog[1] = c_ltgrey; +global.fog[2] = FOG_NEAR; +global.fog[3] = FOG_FAR; +gpu_set_fog(global.fog); \ No newline at end of file diff --git a/objects/obj_camera/Draw_0.gml b/objects/obj_camera/Draw_0.gml new file mode 100644 index 0000000..6e310e2 --- /dev/null +++ b/objects/obj_camera/Draw_0.gml @@ -0,0 +1,17 @@ +draw_clear(c_black); + +var camera = camera_get_active(); + +var xfrom = obj_player.x; +var yfrom = obj_player.y; +var zfrom = obj_player.z; +var xto = xfrom + dcos( obj_player.look_dir ); +var yto = yfrom + dsin( obj_player.look_dir ); +var zto = zfrom + dsin( obj_player.look_pitch ); + +var viewmat = matrix_build_lookat(xfrom, yfrom, zfrom, xto, yto, zto, 0, 0, -1 ); +var projmat = matrix_build_projection_perspective_fov( CAMERA_FOV, WINDOW_ASPECT, CAMERA_ZNEAR, CAMERA_ZFAR ); + +camera_set_view_mat( camera, viewmat ); +camera_set_proj_mat( camera, projmat ); +camera_apply( camera ); diff --git a/objects/obj_camera/obj_camera.yy b/objects/obj_camera/obj_camera.yy new file mode 100644 index 0000000..02d32ae --- /dev/null +++ b/objects/obj_camera/obj_camera.yy @@ -0,0 +1,34 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Camera", + "path": "folders/Camera.yy", + }, + "resourceVersion": "1.0", + "name": "obj_camera", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_chunk/Create_0.gml b/objects/obj_chunk/Create_0.gml new file mode 100644 index 0000000..5664d63 --- /dev/null +++ b/objects/obj_chunk/Create_0.gml @@ -0,0 +1,32 @@ +var a = CHUNK_SIZE - 1; + +z = 0; + +//generate terrain +for (var k = a; k >= 0; k--) { + for (var j = a; j >= 0; j--) { + for (var i = a; i >= 0; i--) { + chunk[i][j][k] = BLOCKS_TEST; + } + } +} + +//populate +for (var k = a; k >= 0; k--) { + for (var j = a; j >= 0; j--) { + for (var i = a; i >= 0; i--) { + switch ( chunk[i][j][k] ) { + case BLOCKS_TEST: + var block_id = obj_block; + break; + default: + break; + } + var block = instance_create_layer(x + BLOCK_SIZE * i, y + BLOCK_SIZE * j, "Terrain", block_id); + with (block) { + z = other.z + BLOCK_SIZE * k; + chunk_id = other.id; + } + } + } +} \ No newline at end of file diff --git a/objects/obj_chunk/obj_chunk.yy b/objects/obj_chunk/obj_chunk.yy new file mode 100644 index 0000000..451ea27 --- /dev/null +++ b/objects/obj_chunk/obj_chunk.yy @@ -0,0 +1,33 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "obj_chunk", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_player/Create_0.gml b/objects/obj_player/Create_0.gml new file mode 100644 index 0000000..2668480 --- /dev/null +++ b/objects/obj_player/Create_0.gml @@ -0,0 +1,4 @@ +look_dir = 0; +look_pitch = 0; + +z = 70; \ No newline at end of file diff --git a/objects/obj_player/Step_0.gml b/objects/obj_player/Step_0.gml new file mode 100644 index 0000000..45270c1 --- /dev/null +++ b/objects/obj_player/Step_0.gml @@ -0,0 +1,48 @@ +look_dir -= ( window_mouse_get_x() - WINDOW_WIDTH / 2 ) / CAMERA_SENSITIVITY; +look_pitch -= ( window_mouse_get_y() - WINDOW_HEIGHT / 2 ) / CAMERA_SENSITIVITY; +look_pitch = clamp( look_pitch, -CAMERA_PITCH_MAX, CAMERA_PITCH_MAX ); + +window_mouse_set( WINDOW_WIDTH / 2, WINDOW_HEIGHT / 2 ); + +var move_speed = 5; +var dir_mod = 0; +var up = 0; +var down = 0; +var left = 0; +var right = 0; +var ascend = 0; +var descend = 0; + +if ( keyboard_check( ord("W") ) ) { + up = 1; +} +if ( keyboard_check( ord("S") ) ) { + down = 1; +} +if ( keyboard_check( ord("A") ) ) { + left = 1; +} +if ( keyboard_check( ord("D") ) ) { + right = 1; +} +if ( keyboard_check( vk_space ) ) { + ascend = 1; +} +if ( keyboard_check( vk_control ) ) { + descend = 1; +} +if ( keyboard_check( vk_escape ) ) { + game_end(); +} + +dir_mod = point_direction( 0, 0, (up - down), (right - left) ); + +if ( up || down || left || right ) { + direction = look_dir + dir_mod; + x += dcos( direction ) * move_speed; + y += dsin( direction ) * move_speed; +} + +if ( ascend ^^ descend ) { + z = z + ascend - descend; +} \ No newline at end of file diff --git a/objects/obj_player/obj_player.yy b/objects/obj_player/obj_player.yy new file mode 100644 index 0000000..4e81282 --- /dev/null +++ b/objects/obj_player/obj_player.yy @@ -0,0 +1,34 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Actors", + "path": "folders/Actors.yy", + }, + "resourceVersion": "1.0", + "name": "obj_player", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_skybox/Create_0.gml b/objects/obj_skybox/Create_0.gml new file mode 100644 index 0000000..696b507 --- /dev/null +++ b/objects/obj_skybox/Create_0.gml @@ -0,0 +1,89 @@ +var s = 1200; +var color = c_white; + +//note: inverted normals so light shines on inside + +#region bottom face +b_tex = spr_skybox_bottom; +b_face = vertex_create_buffer(); +vertex_begin( b_face, global.vertex_format ); + +vertex_add_point( b_face, -s, -s, -s, 0, 0, 1, 0, 0, color, 1); +vertex_add_point( b_face, s, -s, -s, 0, 0, 1, 1, 0, color, 1); +vertex_add_point( b_face, s, s, -s, 0, 0, 1, 1, 1, color, 1); +vertex_add_point( b_face, s, s, -s, 0, 0, 1, 1, 1, color, 1); +vertex_add_point( b_face, -s, s, -s, 0, 0, 1, 0, 1, color, 1); +vertex_add_point( b_face, -s, -s, -s, 0, 0, 1, 0, 0, color, 1); + +vertex_end( b_face ); +#endregion +#region top face +t_tex = spr_skybox_top; +t_face = vertex_create_buffer(); +vertex_begin( t_face, global.vertex_format ); + +vertex_add_point( t_face, -s, -s, s, 0, 0, -1, 0, 0, color, 1); +vertex_add_point( t_face, s, -s, s, 0, 0, -1, 1, 0, color, 1); +vertex_add_point( t_face, s, s, s, 0, 0, -1, 1, 1, color, 1); +vertex_add_point( t_face, s, s, s, 0, 0, -1, 1, 1, color, 1); +vertex_add_point( t_face, -s, s, s, 0, 0, -1, 0, 1, color, 1); +vertex_add_point( t_face, -s, -s, s, 0, 0, -1, 0, 0, color, 1); + +vertex_end( t_face ); +#endregion +#region north face +n_tex = spr_skybox_side; +n_face = vertex_create_buffer(); +vertex_begin( n_face, global.vertex_format ); + +vertex_add_point( n_face, -s, -s, -s, 0, 1, 0, 1, 1, color, 1); +vertex_add_point( n_face, s, -s, -s, 0, 1, 0, 0, 1, color, 1); +vertex_add_point( n_face, s, -s, s, 0, 1, 0, 0, 0, color, 1); +vertex_add_point( n_face, s, -s, s, 0, 1, 0, 0, 0, color, 1); +vertex_add_point( n_face, -s, -s, s, 0, 1, 0, 1, 0, color, 1); +vertex_add_point( n_face, -s, -s, -s, 0, 1, 0, 1, 1, color, 1); + +vertex_end( n_face ); +#endregion +#region south face +s_tex = spr_skybox_side; +s_face = vertex_create_buffer(); +vertex_begin( s_face, global.vertex_format ); + +vertex_add_point( s_face, -s, s, -s, 0, -1, 0, 1, 1, color, 1); +vertex_add_point( s_face, s, s, -s, 0, -1, 0, 0, 1, color, 1); +vertex_add_point( s_face, s, s, s, 0, -1, 0, 0, 0, color, 1); +vertex_add_point( s_face, s, s, s, 0, -1, 0, 0, 0, color, 1); +vertex_add_point( s_face, -s, s, s, 0, -1, 0, 1, 0, color, 1); +vertex_add_point( s_face, -s, s, -s, 0, -1, 0, 1, 1, color, 1); + +vertex_end( s_face ); +#endregion +#region west face +w_tex = spr_skybox_side; +w_face = vertex_create_buffer(); +vertex_begin( w_face, global.vertex_format ); + +vertex_add_point( w_face, -s, -s, -s, 1, 0, 0, 1, 1, color, 1); +vertex_add_point( w_face, -s, s, -s, 1, 0, 0, 0, 1, color, 1); +vertex_add_point( w_face, -s, s, s, 1, 0, 0, 0, 0, color, 1); +vertex_add_point( w_face, -s, s, s, 1, 0, 0, 0, 0, color, 1); +vertex_add_point( w_face, -s, -s, s, 1, 0, 0, 1, 0, color, 1); +vertex_add_point( w_face, -s, -s, -s, 1, 0, 0, 1, 1, color, 1); + +vertex_end( w_face ); +#endregion +#region east face +e_tex = spr_skybox_side; +e_face = vertex_create_buffer(); +vertex_begin( e_face, global.vertex_format ); + +vertex_add_point( e_face, s, -s, -s, -1, 0, 0, 1, 1, color, 1); +vertex_add_point( e_face, s, s, -s, -1, 0, 0, 0, 1, color, 1); +vertex_add_point( e_face, s, s, s, -1, 0, 0, 0, 0, color, 1); +vertex_add_point( e_face, s, s, s, -1, 0, 0, 0, 0, color, 1); +vertex_add_point( e_face, s, -s, s, -1, 0, 0, 1, 0, color, 1); +vertex_add_point( e_face, s, -s, -s, -1, 0, 0, 1, 1, color, 1); + +vertex_end( e_face ); +#endregion diff --git a/objects/obj_skybox/Draw_0.gml b/objects/obj_skybox/Draw_0.gml new file mode 100644 index 0000000..71c9e92 --- /dev/null +++ b/objects/obj_skybox/Draw_0.gml @@ -0,0 +1,17 @@ +global.fog[0] = false; +gpu_set_fog(global.fog); + +var skybox_matrix = matrix_build( x, y, z, 0, 0, 0, 1, 1, 1 ); +matrix_set( matrix_world, skybox_matrix ); + +vertex_submit( b_face, pr_trianglelist, sprite_get_texture(b_tex, 0) ); +vertex_submit( t_face, pr_trianglelist, sprite_get_texture(t_tex, 0) ); +vertex_submit( n_face, pr_trianglelist, sprite_get_texture(n_tex, 0) ); +vertex_submit( s_face, pr_trianglelist, sprite_get_texture(s_tex, 0) ); +vertex_submit( w_face, pr_trianglelist, sprite_get_texture(w_tex, 0) ); +vertex_submit( e_face, pr_trianglelist, sprite_get_texture(e_tex, 0) ); + +matrix_set( matrix_world, matrix_build_identity() ); + +global.fog[0] = true; +gpu_set_fog(global.fog); \ No newline at end of file diff --git a/objects/obj_skybox/Step_0.gml b/objects/obj_skybox/Step_0.gml new file mode 100644 index 0000000..348a229 --- /dev/null +++ b/objects/obj_skybox/Step_0.gml @@ -0,0 +1,5 @@ +if (instance_exists( obj_player ) ) { + x = obj_player.x; + y = obj_player.y; + z = obj_player.z; +} \ No newline at end of file diff --git a/objects/obj_skybox/obj_block.yy b/objects/obj_skybox/obj_block.yy new file mode 100644 index 0000000..bcd5bdf --- /dev/null +++ b/objects/obj_skybox/obj_block.yy @@ -0,0 +1,34 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Blocks", + "path": "folders/Blocks.yy", + }, + "resourceVersion": "1.0", + "name": "obj_block", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_skybox/obj_skybox.yy b/objects/obj_skybox/obj_skybox.yy new file mode 100644 index 0000000..1a6b25b --- /dev/null +++ b/objects/obj_skybox/obj_skybox.yy @@ -0,0 +1,35 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "obj_skybox", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_world/Create_0.gml b/objects/obj_world/Create_0.gml new file mode 100644 index 0000000..17d138c --- /dev/null +++ b/objects/obj_world/Create_0.gml @@ -0,0 +1,32 @@ +var a = WORLD_SIZE - 1; + +z = 0; + +//generate terrain +for (var k = a; k >= 0; k--) { + for (var j = a; j >= 0; j--) { + for (var i = a; i >= 0; i--) { + global.world_chunk[i][j][k] = CHUNKS_TEST; + } + } +} + +//populate +for (var k = 1; k >= 0; k--) { + for (var j = a; j >= 0; j--) { + for (var i = a; i >= 0; i--) { + switch ( global.world_chunk[i][j][k] ) { + case CHUNKS_TEST: + var chunk_id = obj_chunk; + break; + default: + break; + } + var block = instance_create_layer(x + CHUNK_SIZE * BLOCK_SIZE * i, y + CHUNK_SIZE * BLOCK_SIZE * j, "Terrain", chunk_id); + with (block) { + z = other.z + CHUNK_SIZE * BLOCK_SIZE * k; + world_id = other.id; + } + } + } +} \ No newline at end of file diff --git a/objects/obj_world/obj_chunk.yy b/objects/obj_world/obj_chunk.yy new file mode 100644 index 0000000..451ea27 --- /dev/null +++ b/objects/obj_world/obj_chunk.yy @@ -0,0 +1,33 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "obj_chunk", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/objects/obj_world/obj_world.yy b/objects/obj_world/obj_world.yy new file mode 100644 index 0000000..b6b41e1 --- /dev/null +++ b/objects/obj_world/obj_world.yy @@ -0,0 +1,33 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "obj_world", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/options/linux/options_linux.yy b/options/linux/options_linux.yy new file mode 100644 index 0000000..25d6fc6 --- /dev/null +++ b/options/linux/options_linux.yy @@ -0,0 +1,25 @@ +{ + "option_linux_display_name": "Created with GameMaker Studio 2", + "option_linux_version": "1.0.0.0", + "option_linux_maintainer_email": "", + "option_linux_homepage": "http://www.yoyogames.com", + "option_linux_short_desc": "", + "option_linux_long_desc": "", + "option_linux_splash_screen": "${base_options_dir}/linux/splash/splash.png", + "option_linux_display_splash": false, + "option_linux_icon": "${base_options_dir}/linux/icons/64.png", + "option_linux_start_fullscreen": false, + "option_linux_allow_fullscreen": false, + "option_linux_interpolate_pixels": true, + "option_linux_display_cursor": true, + "option_linux_sync": false, + "option_linux_resize_window": false, + "option_linux_scale": 0, + "option_linux_texture_page": "2048x2048", + "option_linux_enable_steam": false, + "option_linux_disable_sandbox": false, + "resourceVersion": "1.0", + "name": "Linux", + "tags": [], + "resourceType": "GMLinuxOptions", +} \ No newline at end of file diff --git a/options/mac/options_mac.yy b/options/mac/options_mac.yy new file mode 100644 index 0000000..da474ad --- /dev/null +++ b/options/mac/options_mac.yy @@ -0,0 +1,33 @@ +{ + "option_mac_display_name": "Created with GameMaker Studio 2", + "option_mac_app_id": "com.company.game", + "option_mac_version": "1.0.0.0", + "option_mac_output_dir": "~/gamemakerstudio2", + "option_mac_team_id": "", + "option_mac_signing_identity": "Developer ID Application:", + "option_mac_copyright": "", + "option_mac_splash_png": "${base_options_dir}/mac/splash/splash.png", + "option_mac_icon_png": "${base_options_dir}/mac/icons/1024.png", + "option_mac_installer_background_png": "${base_options_dir}/mac/splash/installer_background.png", + "option_mac_menu_dock": false, + "option_mac_display_cursor": true, + "option_mac_start_fullscreen": false, + "option_mac_allow_fullscreen": false, + "option_mac_interpolate_pixels": true, + "option_mac_vsync": false, + "option_mac_resize_window": false, + "option_mac_enable_retina": false, + "option_mac_scale": 0, + "option_mac_texture_page": "2048x2048", + "option_mac_build_app_store": false, + "option_mac_allow_incoming_network": false, + "option_mac_allow_outgoing_network": false, + "option_mac_app_category": "Games", + "option_mac_enable_steam": false, + "option_mac_disable_sandbox": false, + "option_mac_apple_sign_in": false, + "resourceVersion": "1.0", + "name": "macOS", + "tags": [], + "resourceType": "GMMacOptions", +} \ No newline at end of file diff --git a/options/main/options_main.yy b/options/main/options_main.yy new file mode 100644 index 0000000..fb6db48 --- /dev/null +++ b/options/main/options_main.yy @@ -0,0 +1,16 @@ +{ + "option_gameguid": "71d3fff5-1128-4790-bd47-97b9c811c2a4", + "option_game_speed": 60, + "option_mips_for_3d_textures": false, + "option_draw_colour": 4294967295, + "option_window_colour": 255, + "option_steam_app_id": "0", + "option_sci_usesci": false, + "option_author": "", + "option_lastchanged": "", + "option_spine_licence": false, + "resourceVersion": "1.2", + "name": "Main", + "tags": [], + "resourceType": "GMMainOptions", +} \ No newline at end of file diff --git a/options/windows/options_windows.yy b/options/windows/options_windows.yy new file mode 100644 index 0000000..1b67fcd --- /dev/null +++ b/options/windows/options_windows.yy @@ -0,0 +1,36 @@ +{ + "option_windows_display_name": "Created with GameMaker Studio 2", + "option_windows_executable_name": "${project_name}.exe", + "option_windows_version": "1.0.0.0", + "option_windows_company_info": "YoYo Games Ltd", + "option_windows_product_info": "Created with GameMaker Studio 2", + "option_windows_copyright_info": "", + "option_windows_description_info": "A GameMaker Studio 2 Game", + "option_windows_display_cursor": true, + "option_windows_icon": "${base_options_dir}/windows/icons/icon.ico", + "option_windows_save_location": 0, + "option_windows_splash_screen": "${base_options_dir}/windows/splash/splash.png", + "option_windows_use_splash": false, + "option_windows_start_fullscreen": false, + "option_windows_allow_fullscreen_switching": false, + "option_windows_interpolate_pixels": false, + "option_windows_vsync": false, + "option_windows_resize_window": false, + "option_windows_borderless": false, + "option_windows_scale": 0, + "option_windows_copy_exe_to_dest": false, + "option_windows_sleep_margin": 10, + "option_windows_texture_page": "2048x2048", + "option_windows_installer_finished": "${base_options_dir}/windows/installer/finished.bmp", + "option_windows_installer_header": "${base_options_dir}/windows/installer/header.bmp", + "option_windows_license": "${base_options_dir}/windows/installer/license.txt", + "option_windows_nsis_file": "${base_options_dir}/windows/installer/nsis_script.nsi", + "option_windows_enable_steam": false, + "option_windows_disable_sandbox": false, + "option_windows_steam_use_alternative_launcher": false, + "option_windows_use_x64": false, + "resourceVersion": "1.1", + "name": "Windows", + "tags": [], + "resourceType": "GMWindowsOptions", +} \ No newline at end of file diff --git a/rooms/rm_main/rm_main.yy b/rooms/rm_main/rm_main.yy new file mode 100644 index 0000000..4e7cd04 --- /dev/null +++ b/rooms/rm_main/rm_main.yy @@ -0,0 +1,63 @@ +{ + "isDnd": false, + "volume": 1.0, + "parentRoom": null, + "views": [ + {"inherit":false,"visible":true,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1280,"hview":720,"xport":0,"yport":0,"wport":1280,"hport":720,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + ], + "layers": [ + {"instances":[ + {"properties":[],"isDnd":false,"objectId":{"name":"obj_world","path":"objects/obj_world/obj_world.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":0.0,"y":0.0,"resourceVersion":"1.0","name":"inst_5DBB2C44","tags":[],"resourceType":"GMRInstance",}, + ],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Terrain","tags":[],"resourceType":"GMRInstanceLayer",}, + {"instances":[ + {"properties":[],"isDnd":false,"objectId":{"name":"obj_camera","path":"objects/obj_camera/obj_camera.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":0.0,"y":0.0,"resourceVersion":"1.0","name":"inst_78CCA660","tags":[],"resourceType":"GMRInstance",}, + {"properties":[],"isDnd":false,"objectId":{"name":"obj_player","path":"objects/obj_player/obj_player.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":96.0,"y":32.0,"resourceVersion":"1.0","name":"inst_338EC4FC","tags":[],"resourceType":"GMRInstance",}, + {"properties":[],"isDnd":false,"objectId":{"name":"obj_skybox","path":"objects/obj_skybox/obj_skybox.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":32.0,"y":96.0,"resourceVersion":"1.0","name":"inst_157F34E1","tags":[],"resourceType":"GMRInstance",}, + ],"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Camera","tags":[],"resourceType":"GMRInstanceLayer",}, + ], + "inheritLayers": false, + "creationCodeFile": "${project_dir}/rooms/rm_main/RoomCreationCode.gml", + "inheritCode": false, + "instanceCreationOrder": [ + {"name":"inst_78CCA660","path":"rooms/rm_main/rm_main.yy",}, + {"name":"inst_338EC4FC","path":"rooms/rm_main/rm_main.yy",}, + {"name":"inst_157F34E1","path":"rooms/rm_main/rm_main.yy",}, + {"name":"inst_5DBB2C44","path":"rooms/rm_main/rm_main.yy",}, + ], + "inheritCreationOrder": false, + "sequenceId": null, + "roomSettings": { + "inheritRoomSettings": false, + "Width": 1600, + "Height": 1600, + "persistent": false, + }, + "viewSettings": { + "inheritViewSettings": false, + "enableViews": true, + "clearViewBackground": true, + "clearDisplayBuffer": true, + }, + "physicsSettings": { + "inheritPhysicsSettings": false, + "PhysicsWorld": false, + "PhysicsWorldGravityX": 0.0, + "PhysicsWorldGravityY": 10.0, + "PhysicsWorldPixToMetres": 0.1, + }, + "parent": { + "name": "minecraft-in-24h-jam", + "path": "minecraft-in-24h-jam.yyp", + }, + "resourceVersion": "1.0", + "name": "rm_main", + "tags": [], + "resourceType": "GMRoom", +} \ No newline at end of file diff --git a/scripts/Script3/Script3.gml b/scripts/Script3/Script3.gml new file mode 100644 index 0000000..0df65ea --- /dev/null +++ b/scripts/Script3/Script3.gml @@ -0,0 +1,91 @@ +/// @function +/// @param +function Script3(){ + +//TODO: Create a DS list for the model and return it + + #region bottom face + b_face = vertex_create_buffer(); + vertex_begin( b_face, global.vertex_format ); + + vertex_add_point( b_face, 0, 0, 0, 0, 0, -1, 0, 0, color, 1); + vertex_add_point( b_face, s, 0, 0, 0, 0, -1, 1, 0, color, 1); + vertex_add_point( b_face, s, s, 0, 0, 0, -1, 1, 1, color, 1); + vertex_add_point( b_face, s, s, 0, 0, 0, -1, 1, 1, color, 1); + vertex_add_point( b_face, 0, s, 0, 0, 0, -1, 0, 1, color, 1); + vertex_add_point( b_face, 0, 0, 0, 0, 0, -1, 0, 0, color, 1); + + vertex_end( b_face ); + #endregion +#region top face +t_tex = spr_testtex_top; +t_face = vertex_create_buffer(); +vertex_begin( t_face, global.vertex_format ); + +vertex_add_point( t_face, 0, 0, s, 0, 0, 1, 0, 0, color, 1); +vertex_add_point( t_face, s, 0, s, 0, 0, 1, 1, 0, color, 1); +vertex_add_point( t_face, s, s, s, 0, 0, 1, 1, 1, color, 1); +vertex_add_point( t_face, s, s, s, 0, 0, 1, 1, 1, color, 1); +vertex_add_point( t_face, 0, s, s, 0, 0, 1, 0, 1, color, 1); +vertex_add_point( t_face, 0, 0, s, 0, 0, 1, 0, 0, color, 1); + +vertex_end( t_face ); +#endregion +#region north face +n_tex = spr_testtex_side; +n_face = vertex_create_buffer(); +vertex_begin( n_face, global.vertex_format ); + +vertex_add_point( n_face, 0, 0, 0, 0, -1, 0, 1, 1, color, 1); +vertex_add_point( n_face, s, 0, 0, 0, -1, 0, 0, 1, color, 1); +vertex_add_point( n_face, s, 0, s, 0, -1, 0, 0, 0, color, 1); +vertex_add_point( n_face, s, 0, s, 0, -1, 0, 0, 0, color, 1); +vertex_add_point( n_face, 0, 0, s, 0, -1, 0, 1, 0, color, 1); +vertex_add_point( n_face, 0, 0, 0, 0, -1, 0, 1, 1, color, 1); + +vertex_end( n_face ); +#endregion +#region south face +s_tex = spr_testtex_side; +s_face = vertex_create_buffer(); +vertex_begin( s_face, global.vertex_format ); + +vertex_add_point( s_face, 0, s, 0, 0, 1, 0, 1, 1, color, 1); +vertex_add_point( s_face, s, s, 0, 0, 1, 0, 0, 1, color, 1); +vertex_add_point( s_face, s, s, s, 0, 1, 0, 0, 0, color, 1); +vertex_add_point( s_face, s, s, s, 0, 1, 0, 0, 0, color, 1); +vertex_add_point( s_face, 0, s, s, 0, 1, 0, 1, 0, color, 1); +vertex_add_point( s_face, 0, s, 0, 0, 1, 0, 1, 1, color, 1); + +vertex_end( s_face ); +#endregion +#region west face +w_tex = spr_testtex_side; +w_face = vertex_create_buffer(); +vertex_begin( w_face, global.vertex_format ); + +vertex_add_point( w_face, 0, 0, 0, -1, 0, 0, 1, 1, color, 1); +vertex_add_point( w_face, 0, s, 0, -1, 0, 0, 0, 1, color, 1); +vertex_add_point( w_face, 0, s, s, -1, 0, 0, 0, 0, color, 1); +vertex_add_point( w_face, 0, s, s, -1, 0, 0, 0, 0, color, 1); +vertex_add_point( w_face, 0, 0, s, -1, 0, 0, 1, 0, color, 1); +vertex_add_point( w_face, 0, 0, 0, -1, 0, 0, 1, 1, color, 1); + +vertex_end( w_face ); +#endregion +#region east face +e_tex = spr_testtex_side; +e_face = vertex_create_buffer(); +vertex_begin( e_face, global.vertex_format ); + +vertex_add_point( e_face, s, 0, 0, 1, 0, 0, 1, 1, color, 1); +vertex_add_point( e_face, s, s, 0, 1, 0, 0, 0, 1, color, 1); +vertex_add_point( e_face, s, s, s, 1, 0, 0, 0, 0, color, 1); +vertex_add_point( e_face, s, s, s, 1, 0, 0, 0, 0, color, 1); +vertex_add_point( e_face, s, 0, s, 1, 0, 0, 1, 0, color, 1); +vertex_add_point( e_face, s, 0, 0, 1, 0, 0, 1, 1, color, 1); + +vertex_end( e_face ); +#endregion + +} \ No newline at end of file diff --git a/scripts/Script3/Script3.yy b/scripts/Script3/Script3.yy new file mode 100644 index 0000000..e7570b9 --- /dev/null +++ b/scripts/Script3/Script3.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "minecraft-in-24h-jam", + "path": "minecraft-in-24h-jam.yyp", + }, + "resourceVersion": "1.0", + "name": "Script3", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/scripts/scr_initialize/scr_initialize.gml b/scripts/scr_initialize/scr_initialize.gml new file mode 100644 index 0000000..5ab2dcb --- /dev/null +++ b/scripts/scr_initialize/scr_initialize.gml @@ -0,0 +1,45 @@ +/// @function scr_initialize(); +/// @desc Preprocessor commands + +#region macro definitions + +#macro WINDOW_WIDTH 1280 +#macro WINDOW_HEIGHT 720 +#macro WINDOW_ASPECT 16 / 9 + +#macro CAMERA_ZNEAR 1 +#macro CAMERA_ZFAR 2500 +#macro CAMERA_FOV 60 +#macro CAMERA_SENSITIVITY 10 +#macro CAMERA_PITCH_MAX 85 + +#macro FOG_NEAR 800 +#macro FOG_FAR 2000 + +#macro BLOCK_SIZE 64 +#macro CHUNK_SIZE 16 +#macro WORLD_SIZE 16 +#macro BLOCKS_TEST 1 +#macro CHUNKS_TEST 1 + +#endregion + +gml_pragma( "global", "scr_initialize()" ); + +function scr_initialize() { + + vertex_format_begin(); + vertex_format_add_position_3d(); + vertex_format_add_normal(); + vertex_format_add_texcoord(); + vertex_format_add_color(); + global.vertex_format = vertex_format_end(); + + gpu_set_ztestenable( true ); + gpu_set_zwriteenable( true ); + global.fog = gpu_get_fog(); + + + + return 0; +} \ No newline at end of file diff --git a/scripts/scr_initialize/scr_initialize.yy b/scripts/scr_initialize/scr_initialize.yy new file mode 100644 index 0000000..ba8d1f4 --- /dev/null +++ b/scripts/scr_initialize/scr_initialize.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "minecraft-in-24h-jam", + "path": "minecraft-in-24h-jam.yyp", + }, + "resourceVersion": "1.0", + "name": "scr_initialize", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/scripts/scr_vertex_add_point/scr_vertex_add_point.gml b/scripts/scr_vertex_add_point/scr_vertex_add_point.gml new file mode 100644 index 0000000..29671ed --- /dev/null +++ b/scripts/scr_vertex_add_point/scr_vertex_add_point.gml @@ -0,0 +1,19 @@ +/// @function vertex_add_point( _vbuff, _xx, _yy, _zz, _nx, _ny, _nz, _utex, _vtex, _color, _alpha ); +/// @param {index} _vbuff +/// @param {real} _xy +/// @param {real} _yy +/// @param {real} _zz +/// @param {real} _nx +/// @param {real} _ny +/// @param {real} _nz +/// @param {real} _utex +/// @param {real} _vtex +/// @param {const} _color +/// @param {real} _alpha + +function vertex_add_point( _vbuff, _xx, _yy, _zz, _nx, _ny, _nz, _utex, _vtex, _color, _alpha) { + vertex_position_3d( _vbuff, _xx, _yy, _zz ); + vertex_normal( _vbuff, _nx, _ny, _nz ); + vertex_texcoord( _vbuff, _utex, _vtex ); + vertex_color( _vbuff, _color, _alpha ); +} \ No newline at end of file diff --git a/scripts/scr_vertex_add_point/scr_vertex_add_point.yy b/scripts/scr_vertex_add_point/scr_vertex_add_point.yy new file mode 100644 index 0000000..6ab61c2 --- /dev/null +++ b/scripts/scr_vertex_add_point/scr_vertex_add_point.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "minecraft-in-24h-jam", + "path": "minecraft-in-24h-jam.yyp", + }, + "resourceVersion": "1.0", + "name": "scr_vertex_add_point", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/sprites/spr_skybox_bottom/367b9a22-904a-48d8-8397-77f9b1722b51.png b/sprites/spr_skybox_bottom/367b9a22-904a-48d8-8397-77f9b1722b51.png new file mode 100644 index 0000000..536ea10 Binary files /dev/null and b/sprites/spr_skybox_bottom/367b9a22-904a-48d8-8397-77f9b1722b51.png differ diff --git a/sprites/spr_skybox_bottom/layers/367b9a22-904a-48d8-8397-77f9b1722b51/afc802a7-c930-47cf-afb6-a6d8957bb5b6.png b/sprites/spr_skybox_bottom/layers/367b9a22-904a-48d8-8397-77f9b1722b51/afc802a7-c930-47cf-afb6-a6d8957bb5b6.png new file mode 100644 index 0000000..536ea10 Binary files /dev/null and b/sprites/spr_skybox_bottom/layers/367b9a22-904a-48d8-8397-77f9b1722b51/afc802a7-c930-47cf-afb6-a6d8957bb5b6.png differ diff --git a/sprites/spr_skybox_bottom/spr_skybox_bottom.yy b/sprites/spr_skybox_bottom/spr_skybox_bottom.yy new file mode 100644 index 0000000..fcfa12e --- /dev/null +++ b/sprites/spr_skybox_bottom/spr_skybox_bottom.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 63, + "bbox_top": 0, + "bbox_bottom": 63, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 64, + "height": 64, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",},"LayerId":{"name":"afc802a7-c930-47cf-afb6-a6d8957bb5b6","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_skybox_bottom","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",},"resourceVersion":"1.0","name":"367b9a22-904a-48d8-8397-77f9b1722b51","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_skybox_bottom","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"756e61c6-75a7-4467-837c-dfc8e25bb080","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 32, + "yorigin": 32, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_skybox_bottom","path":"sprites/spr_skybox_bottom/spr_skybox_bottom.yy",}, + "resourceVersion": "1.3", + "name": "spr_skybox_bottom", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"afc802a7-c930-47cf-afb6-a6d8957bb5b6","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_skybox_bottom", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_skybox_bottom/spr_skybox_top.yy b/sprites/spr_skybox_bottom/spr_skybox_top.yy new file mode 100644 index 0000000..5e71ade --- /dev/null +++ b/sprites/spr_skybox_bottom/spr_skybox_top.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 63, + "bbox_top": 0, + "bbox_bottom": 63, + "HTile": false, + "VTile": false, + "For3D": false, + "width": 64, + "height": 64, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"LayerId":{"name":"afc802a7-c930-47cf-afb6-a6d8957bb5b6","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"resourceVersion":"1.0","name":"367b9a22-904a-48d8-8397-77f9b1722b51","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"f2b633ad-5b67-48b5-a69d-8e8163fd2a17","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 32, + "yorigin": 32, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",}, + "resourceVersion": "1.3", + "name": "spr_skybox_top", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"afc802a7-c930-47cf-afb6-a6d8957bb5b6","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_skybox_top", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_skybox_side/6527ae19-9096-4676-bbc9-eff9191118cc.png b/sprites/spr_skybox_side/6527ae19-9096-4676-bbc9-eff9191118cc.png new file mode 100644 index 0000000..b91d387 Binary files /dev/null and b/sprites/spr_skybox_side/6527ae19-9096-4676-bbc9-eff9191118cc.png differ diff --git a/sprites/spr_skybox_side/layers/6527ae19-9096-4676-bbc9-eff9191118cc/b15cc2c3-bdfa-4d27-82f3-3d7c2543c67d.png b/sprites/spr_skybox_side/layers/6527ae19-9096-4676-bbc9-eff9191118cc/b15cc2c3-bdfa-4d27-82f3-3d7c2543c67d.png new file mode 100644 index 0000000..b91d387 Binary files /dev/null and b/sprites/spr_skybox_side/layers/6527ae19-9096-4676-bbc9-eff9191118cc/b15cc2c3-bdfa-4d27-82f3-3d7c2543c67d.png differ diff --git a/sprites/spr_skybox_side/spr_skybox_side.yy b/sprites/spr_skybox_side/spr_skybox_side.yy new file mode 100644 index 0000000..980ccac --- /dev/null +++ b/sprites/spr_skybox_side/spr_skybox_side.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 63, + "bbox_top": 0, + "bbox_bottom": 63, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 64, + "height": 64, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"6527ae19-9096-4676-bbc9-eff9191118cc","path":"sprites/spr_skybox_side/spr_skybox_side.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"6527ae19-9096-4676-bbc9-eff9191118cc","path":"sprites/spr_skybox_side/spr_skybox_side.yy",},"LayerId":{"name":"b15cc2c3-bdfa-4d27-82f3-3d7c2543c67d","path":"sprites/spr_skybox_side/spr_skybox_side.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_skybox_side","path":"sprites/spr_skybox_side/spr_skybox_side.yy",},"resourceVersion":"1.0","name":"6527ae19-9096-4676-bbc9-eff9191118cc","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_skybox_side","path":"sprites/spr_skybox_side/spr_skybox_side.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"7393ae50-543f-42bc-87b6-1374adf7b8a2","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"6527ae19-9096-4676-bbc9-eff9191118cc","path":"sprites/spr_skybox_side/spr_skybox_side.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 32, + "yorigin": 32, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_skybox_side","path":"sprites/spr_skybox_side/spr_skybox_side.yy",}, + "resourceVersion": "1.3", + "name": "spr_skybox_side", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"b15cc2c3-bdfa-4d27-82f3-3d7c2543c67d","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_skybox_side", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_skybox_top/367b9a22-904a-48d8-8397-77f9b1722b51.png b/sprites/spr_skybox_top/367b9a22-904a-48d8-8397-77f9b1722b51.png new file mode 100644 index 0000000..d4a20c9 Binary files /dev/null and b/sprites/spr_skybox_top/367b9a22-904a-48d8-8397-77f9b1722b51.png differ diff --git a/sprites/spr_skybox_top/layers/367b9a22-904a-48d8-8397-77f9b1722b51/afc802a7-c930-47cf-afb6-a6d8957bb5b6.png b/sprites/spr_skybox_top/layers/367b9a22-904a-48d8-8397-77f9b1722b51/afc802a7-c930-47cf-afb6-a6d8957bb5b6.png new file mode 100644 index 0000000..d4a20c9 Binary files /dev/null and b/sprites/spr_skybox_top/layers/367b9a22-904a-48d8-8397-77f9b1722b51/afc802a7-c930-47cf-afb6-a6d8957bb5b6.png differ diff --git a/sprites/spr_skybox_top/spr_skybox_top.yy b/sprites/spr_skybox_top/spr_skybox_top.yy new file mode 100644 index 0000000..8a8dcd3 --- /dev/null +++ b/sprites/spr_skybox_top/spr_skybox_top.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 63, + "bbox_top": 0, + "bbox_bottom": 63, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 64, + "height": 64, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"LayerId":{"name":"afc802a7-c930-47cf-afb6-a6d8957bb5b6","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"resourceVersion":"1.0","name":"367b9a22-904a-48d8-8397-77f9b1722b51","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"f2b633ad-5b67-48b5-a69d-8e8163fd2a17","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"367b9a22-904a-48d8-8397-77f9b1722b51","path":"sprites/spr_skybox_top/spr_skybox_top.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 32, + "yorigin": 32, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_skybox_top","path":"sprites/spr_skybox_top/spr_skybox_top.yy",}, + "resourceVersion": "1.3", + "name": "spr_skybox_top", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"afc802a7-c930-47cf-afb6-a6d8957bb5b6","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_skybox_top", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_testtex_bottom/56fe0c91-f3c6-4c76-9403-28550520297d.png b/sprites/spr_testtex_bottom/56fe0c91-f3c6-4c76-9403-28550520297d.png new file mode 100644 index 0000000..4d9367a Binary files /dev/null and b/sprites/spr_testtex_bottom/56fe0c91-f3c6-4c76-9403-28550520297d.png differ diff --git a/sprites/spr_testtex_bottom/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png b/sprites/spr_testtex_bottom/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png new file mode 100644 index 0000000..4d9367a Binary files /dev/null and b/sprites/spr_testtex_bottom/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png differ diff --git a/sprites/spr_testtex_bottom/spr_testtex.yy b/sprites/spr_testtex_bottom/spr_testtex.yy new file mode 100644 index 0000000..6ce639e --- /dev/null +++ b/sprites/spr_testtex_bottom/spr_testtex.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 15, + "bbox_top": 0, + "bbox_bottom": 15, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 16, + "height": 16, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex/spr_testtex.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex/spr_testtex.yy",},"LayerId":{"name":"70895f94-9ab1-4125-ae9e-db73092b15ad","path":"sprites/spr_testtex/spr_testtex.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_testtex","path":"sprites/spr_testtex/spr_testtex.yy",},"resourceVersion":"1.0","name":"56fe0c91-f3c6-4c76-9403-28550520297d","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_testtex","path":"sprites/spr_testtex/spr_testtex.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"eea249b6-e1c5-4cee-b04f-fe20dcc8d25e","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex/spr_testtex.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 8, + "yorigin": 8, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_testtex","path":"sprites/spr_testtex/spr_testtex.yy",}, + "resourceVersion": "1.3", + "name": "spr_testtex", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"70895f94-9ab1-4125-ae9e-db73092b15ad","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_testtex", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_testtex_bottom/spr_testtex_bottom.yy b/sprites/spr_testtex_bottom/spr_testtex_bottom.yy new file mode 100644 index 0000000..7870291 --- /dev/null +++ b/sprites/spr_testtex_bottom/spr_testtex_bottom.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 15, + "bbox_top": 0, + "bbox_bottom": 15, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 16, + "height": 16, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",},"LayerId":{"name":"70895f94-9ab1-4125-ae9e-db73092b15ad","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_testtex_bottom","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",},"resourceVersion":"1.0","name":"56fe0c91-f3c6-4c76-9403-28550520297d","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_testtex_bottom","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"f7f7ed99-a5f1-4804-8079-80c58767fb76","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 8, + "yorigin": 8, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_testtex_bottom","path":"sprites/spr_testtex_bottom/spr_testtex_bottom.yy",}, + "resourceVersion": "1.3", + "name": "spr_testtex_bottom", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"70895f94-9ab1-4125-ae9e-db73092b15ad","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_testtex_bottom", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_testtex_bottom/spr_testtex_top.yy b/sprites/spr_testtex_bottom/spr_testtex_top.yy new file mode 100644 index 0000000..5be86f0 --- /dev/null +++ b/sprites/spr_testtex_bottom/spr_testtex_top.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 15, + "bbox_top": 0, + "bbox_bottom": 15, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 16, + "height": 16, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"LayerId":{"name":"70895f94-9ab1-4125-ae9e-db73092b15ad","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"resourceVersion":"1.0","name":"56fe0c91-f3c6-4c76-9403-28550520297d","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"13c491aa-a6c0-46ce-b4b1-d1378ac11193","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 8, + "yorigin": 8, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",}, + "resourceVersion": "1.3", + "name": "spr_testtex_top", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"70895f94-9ab1-4125-ae9e-db73092b15ad","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_testtex_top", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_testtex_side/56fe0c91-f3c6-4c76-9403-28550520297d.png b/sprites/spr_testtex_side/56fe0c91-f3c6-4c76-9403-28550520297d.png new file mode 100644 index 0000000..7d118b3 Binary files /dev/null and b/sprites/spr_testtex_side/56fe0c91-f3c6-4c76-9403-28550520297d.png differ diff --git a/sprites/spr_testtex_side/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png b/sprites/spr_testtex_side/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png new file mode 100644 index 0000000..7d118b3 Binary files /dev/null and b/sprites/spr_testtex_side/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png differ diff --git a/sprites/spr_testtex_side/spr_testtex_side.yy b/sprites/spr_testtex_side/spr_testtex_side.yy new file mode 100644 index 0000000..abd220d --- /dev/null +++ b/sprites/spr_testtex_side/spr_testtex_side.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 15, + "bbox_top": 0, + "bbox_bottom": 15, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 16, + "height": 16, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_side/spr_testtex_side.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_side/spr_testtex_side.yy",},"LayerId":{"name":"70895f94-9ab1-4125-ae9e-db73092b15ad","path":"sprites/spr_testtex_side/spr_testtex_side.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_testtex_side","path":"sprites/spr_testtex_side/spr_testtex_side.yy",},"resourceVersion":"1.0","name":"56fe0c91-f3c6-4c76-9403-28550520297d","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_testtex_side","path":"sprites/spr_testtex_side/spr_testtex_side.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"eea249b6-e1c5-4cee-b04f-fe20dcc8d25e","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_side/spr_testtex_side.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 8, + "yorigin": 8, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_testtex_side","path":"sprites/spr_testtex_side/spr_testtex_side.yy",}, + "resourceVersion": "1.3", + "name": "spr_testtex_side", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"70895f94-9ab1-4125-ae9e-db73092b15ad","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_testtex_side", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_testtex_top/56fe0c91-f3c6-4c76-9403-28550520297d.png b/sprites/spr_testtex_top/56fe0c91-f3c6-4c76-9403-28550520297d.png new file mode 100644 index 0000000..eb1a42d Binary files /dev/null and b/sprites/spr_testtex_top/56fe0c91-f3c6-4c76-9403-28550520297d.png differ diff --git a/sprites/spr_testtex_top/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png b/sprites/spr_testtex_top/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png new file mode 100644 index 0000000..eb1a42d Binary files /dev/null and b/sprites/spr_testtex_top/layers/56fe0c91-f3c6-4c76-9403-28550520297d/70895f94-9ab1-4125-ae9e-db73092b15ad.png differ diff --git a/sprites/spr_testtex_top/spr_testtex.yy b/sprites/spr_testtex_top/spr_testtex.yy new file mode 100644 index 0000000..6ce639e --- /dev/null +++ b/sprites/spr_testtex_top/spr_testtex.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 15, + "bbox_top": 0, + "bbox_bottom": 15, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 16, + "height": 16, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex/spr_testtex.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex/spr_testtex.yy",},"LayerId":{"name":"70895f94-9ab1-4125-ae9e-db73092b15ad","path":"sprites/spr_testtex/spr_testtex.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_testtex","path":"sprites/spr_testtex/spr_testtex.yy",},"resourceVersion":"1.0","name":"56fe0c91-f3c6-4c76-9403-28550520297d","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_testtex","path":"sprites/spr_testtex/spr_testtex.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"eea249b6-e1c5-4cee-b04f-fe20dcc8d25e","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex/spr_testtex.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 8, + "yorigin": 8, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_testtex","path":"sprites/spr_testtex/spr_testtex.yy",}, + "resourceVersion": "1.3", + "name": "spr_testtex", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"70895f94-9ab1-4125-ae9e-db73092b15ad","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_testtex", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file diff --git a/sprites/spr_testtex_top/spr_testtex_top.yy b/sprites/spr_testtex_top/spr_testtex_top.yy new file mode 100644 index 0000000..5be86f0 --- /dev/null +++ b/sprites/spr_testtex_top/spr_testtex_top.yy @@ -0,0 +1,79 @@ +{ + "bboxMode": 0, + "collisionKind": 1, + "type": 0, + "origin": 4, + "preMultiplyAlpha": false, + "edgeFiltering": false, + "collisionTolerance": 0, + "swfPrecision": 2.525, + "bbox_left": 0, + "bbox_right": 15, + "bbox_top": 0, + "bbox_bottom": 15, + "HTile": false, + "VTile": false, + "For3D": true, + "width": 16, + "height": 16, + "textureGroupId": { + "name": "Default", + "path": "texturegroups/Default", + }, + "swatchColours": null, + "gridX": 0, + "gridY": 0, + "frames": [ + {"compositeImage":{"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[ + {"FrameId":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"LayerId":{"name":"70895f94-9ab1-4125-ae9e-db73092b15ad","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",}, + ],"parent":{"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"resourceVersion":"1.0","name":"56fe0c91-f3c6-4c76-9403-28550520297d","tags":[],"resourceType":"GMSpriteFrame",}, + ], + "sequence": { + "spriteId": {"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",}, + "timeUnits": 1, + "playback": 1, + "playbackSpeed": 30.0, + "playbackSpeedType": 0, + "autoRecord": true, + "volume": 1.0, + "length": 1.0, + "events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore",}, + "tracks": [ + {"name":"frames","spriteId":null,"keyframes":{"Keyframes":[ + {"id":"13c491aa-a6c0-46ce-b4b1-d1378ac11193","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"56fe0c91-f3c6-4c76-9403-28550520297d","path":"sprites/spr_testtex_top/spr_testtex_top.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe",}, + ],"resourceVersion":"1.0","resourceType":"KeyframeStore",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",}, + ], + "visibleRange": null, + "lockOrigin": false, + "showBackdrop": true, + "showBackdropImage": false, + "backdropImagePath": "", + "backdropImageOpacity": 0.5, + "backdropWidth": 1366, + "backdropHeight": 768, + "backdropXOffset": 0.0, + "backdropYOffset": 0.0, + "xorigin": 8, + "yorigin": 8, + "eventToFunction": {}, + "eventStubScript": null, + "parent": {"name":"spr_testtex_top","path":"sprites/spr_testtex_top/spr_testtex_top.yy",}, + "resourceVersion": "1.3", + "name": "spr_testtex_top", + "tags": [], + "resourceType": "GMSequence", + }, + "layers": [ + {"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"70895f94-9ab1-4125-ae9e-db73092b15ad","tags":[],"resourceType":"GMImageLayer",}, + ], + "nineSlice": null, + "parent": { + "name": "Terrain", + "path": "folders/Terrain.yy", + }, + "resourceVersion": "1.0", + "name": "spr_testtex_top", + "tags": [], + "resourceType": "GMSprite", +} \ No newline at end of file