Skip to content

Commit

Permalink
added paste in ip join
Browse files Browse the repository at this point in the history
  • Loading branch information
LDinos committed Oct 14, 2020
1 parent 912de28 commit c7081e8
Show file tree
Hide file tree
Showing 21 changed files with 399 additions and 8 deletions.
4 changes: 4 additions & 0 deletions NESTRIS.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added fonts/fnt_default/fnt_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
209 changes: 209 additions & 0 deletions fonts/fnt_default/fnt_default.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion objects/obj_joinip/Draw_0.gml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
draw_set_font(fnt_numbers)
draw_set_halign(fa_center)
draw_set_valign(fa_middle)
draw_text(room_width/2,room_height/2,"IP\n"+str)
draw_text(room_width/2,room_height/2,"IP\n"+str + "\n\nRMB to paste")
6 changes: 5 additions & 1 deletion objects/obj_joinip/Step_0.gml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
if keyboard_check_pressed(vk_anykey)
if mouse_check_button_pressed(mb_right)
{
str = clipboard_get_text()
}
else if keyboard_check_pressed(vk_anykey)
{
if (keyboard_lastkey == vk_backspace)
{
Expand Down
2 changes: 1 addition & 1 deletion objects/obj_line_clear/Alarm_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ else
instance_destroy(instance_position(x+GRID*loops-16,y,obj_block))
instance_destroy(instance_position(x-GRID*loops+16,y,obj_block))
loops++
alarm[0] = 4
alarm[0] = 5
}
2 changes: 1 addition & 1 deletion objects/obj_line_clear/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ xoffset = GRID
//show_message(x)
//show_message(y)
loops = 1;
alarm[0] = 4
alarm[0] = 5
var piece_list = ds_list_create()
collision_rectangle_list(obj_board.x+8,y,obj_board.x+8 + GRID*9, obj_board.y-GRID*4,obj_block,false,true,piece_list,false)
for(var i = 0; i < ds_list_size(piece_list); i++) {with(piece_list[| i]) {move_down++}}
Expand Down
1 change: 0 additions & 1 deletion objects/obj_piece/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ y += sprite_yoffset //center me on the grid


if (sprite_index == spr_piece_i) x-=32 //if I am I piece, put me in the real center (other pieces arent really in center)
ghost_x = x
ghost_y = y
make_ghost_piece()
das_cooldown = 0 //cooldown before the held button makes the piece move again
Expand Down
5 changes: 5 additions & 0 deletions objects/obj_ver/Draw_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// @description Insert description here
// You can write your code in this editor
draw_set_halign(fa_right)
draw_set_font(fnt_default)
draw_text(room_width,8,global.version)
33 changes: 33 additions & 0 deletions objects/obj_ver/obj_ver.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions objects/obj_white/Alarm_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
///@description Unflash
image_alpha = 0
if (flash != max_flashes) alarm[1] = frames_per_flash
else instance_destroy()
4 changes: 4 additions & 0 deletions objects/obj_white/Alarm_1.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
///description Flash
flash++
image_alpha = 0
alarm[0] = frames_per_flash
6 changes: 6 additions & 0 deletions objects/obj_white/Create_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
image_xscale = room_width
image_yscale = room_height
flash = 1
max_flashes = 4
frames_per_flash = 2
alarm[0] = frames_per_flash
38 changes: 38 additions & 0 deletions objects/obj_white/obj_white.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion rooms/rm_menu/RoomCreationCode.gml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
score = 0
global.version = "0.8"
global.score2 = 0
global.line_clears = 0
global.line_clears2 = 0
Expand All @@ -12,7 +13,7 @@ global.tetrises = 0
global.tetrises2 = 0
global.line_drought = 0; //number of turns a line piece hasn't appeared
global.line_drought2 = 0; //number of turns a line piece hasn't appeared

if !instance_exists(obj_ver) instance_create_depth(0,0,-10,obj_ver)

ini_open("controls.ini")
global.KEY_ROT_LEFT = ini_read_real("Controls","KEY_ROT_LEFT",90)
Expand Down
Loading

0 comments on commit c7081e8

Please sign in to comment.