main.tscn (28230B)
1 [gd_scene format=3 uid="uid://ct47fh1ow17f"] 2 3 [ext_resource type="Texture2D" uid="uid://bqdsxdbpsw1vy" path="res://sprites/computer.png" id="1_h2yge"] 4 [ext_resource type="Script" uid="uid://b3mumd6nxk8ra" path="res://scripts/computer_interface.cs" id="2_lquwl"] 5 [ext_resource type="Texture2D" uid="uid://dsa8s3u28tygc" path="res://sprites/paper.png" id="3_1bvp3"] 6 [ext_resource type="Texture2D" uid="uid://cwvaat5d6g38c" path="res://sprites/lamp.png" id="3_272bh"] 7 [ext_resource type="Script" uid="uid://cy0elk1grlarl" path="res://scripts/book_target.cs" id="4_7mycd"] 8 [ext_resource type="Script" uid="uid://dlmelys4j7t4d" path="res://scripts/book_page.cs" id="5_5vw27"] 9 [ext_resource type="Texture2D" uid="uid://dpmottv7bqprd" path="res://sprites/book.png" id="5_272bh"] 10 [ext_resource type="FontFile" uid="uid://ce3nyd6xn2div" path="res://font/SpecialElite-Regular.ttf" id="6_7mycd"] 11 [ext_resource type="FontFile" uid="uid://uwtk2bw1k3y" path="res://font/times.ttf" id="9_kek77"] 12 13 [sub_resource type="LabelSettings" id="LabelSettings_a5vro"] 14 line_spacing = 0.0 15 font = ExtResource("9_kek77") 16 font_size = 64 17 18 [sub_resource type="LabelSettings" id="LabelSettings_uxn5m"] 19 line_spacing = 0.0 20 font = ExtResource("9_kek77") 21 font_size = 24 22 23 [sub_resource type="LabelSettings" id="LabelSettings_kek77"] 24 line_spacing = 0.0 25 font = ExtResource("6_7mycd") 26 font_size = 8 27 font_color = Color(0, 0, 0, 1) 28 29 [sub_resource type="LabelSettings" id="LabelSettings_4c57u"] 30 line_spacing = 0.0 31 font = ExtResource("9_kek77") 32 font_size = 32 33 font_color = Color(0, 0, 0, 1) 34 shadow_size = 0 35 36 [sub_resource type="RectangleShape2D" id="RectangleShape2D_a5vro"] 37 size = Vector2(618, 487.33334) 38 39 [node name="main" type="Node2D" unique_id=1804574269] 40 41 [node name="cam" type="Camera2D" parent="." unique_id=1611617563] 42 43 [node name="computer" type="Sprite2D" parent="." unique_id=1267147980 node_paths=PackedStringArray("buttons", "lamp_current_instruction", "lamp_addr", "button_off_on", "button_stop", "button_run", "button_single_step", "button_examine", "button_examine_next", "button_deposit", "button_deposit_next", "button_reset", "button_clear")] 44 position = Vector2(-710, -282) 45 scale = Vector2(2, 2) 46 texture = ExtResource("1_h2yge") 47 centered = false 48 script = ExtResource("2_lquwl") 49 buttons = [NodePath("buttons/0"), NodePath("buttons/1"), NodePath("buttons/2"), NodePath("buttons/3"), NodePath("buttons/4"), NodePath("buttons/5"), NodePath("buttons/6"), NodePath("buttons/7"), NodePath("buttons/8"), NodePath("buttons/9"), NodePath("buttons/10"), NodePath("buttons/11"), NodePath("buttons/12"), NodePath("buttons/13"), NodePath("buttons/14"), NodePath("buttons/15")] 50 lamp_current_instruction = [NodePath("lamps_data/0"), NodePath("lamps_data/1"), NodePath("lamps_data/2"), NodePath("lamps_data/3"), NodePath("lamps_data/4"), NodePath("lamps_data/5"), NodePath("lamps_data/6"), NodePath("lamps_data/7")] 51 lamp_addr = [NodePath("lamps_addr/0"), NodePath("lamps_addr/1"), NodePath("lamps_addr/2"), NodePath("lamps_addr/3"), NodePath("lamps_addr/4"), NodePath("lamps_addr/5"), NodePath("lamps_addr/6"), NodePath("lamps_addr/7"), NodePath("lamps_addr/8"), NodePath("lamps_addr/9"), NodePath("lamps_addr/10"), NodePath("lamps_addr/11"), NodePath("lamps_addr/12"), NodePath("lamps_addr/13"), NodePath("lamps_addr/14"), NodePath("lamps_addr/15")] 52 lamp_on = Color(1, 1, 1, 1) 53 lamp_off = Color(0, 0, 0, 1) 54 button_off_on = NodePath("control/on_off") 55 button_stop = NodePath("control/stop") 56 button_run = NodePath("control/run") 57 button_single_step = NodePath("control/s_step") 58 button_examine = NodePath("control/examine") 59 button_examine_next = NodePath("control/examine_n") 60 button_deposit = NodePath("control/deposit") 61 button_deposit_next = NodePath("control/deposit_n") 62 button_reset = NodePath("control/reset") 63 button_clear = NodePath("control/clr") 64 65 [node name="lamps_data" type="Node2D" parent="computer" unique_id=2113274042] 66 position = Vector2(274, 51) 67 68 [node name="0" type="Sprite2D" parent="computer/lamps_data" unique_id=208655575] 69 position = Vector2(261, 8) 70 scale = Vector2(0.25, 0.25) 71 texture = ExtResource("3_272bh") 72 73 [node name="Label" type="Label" parent="computer/lamps_data/0" unique_id=1726631500] 74 offset_left = -38.0 75 offset_top = -86.0 76 offset_right = 40.0 77 offset_bottom = 58.0 78 text = "D0 79 " 80 label_settings = SubResource("LabelSettings_a5vro") 81 82 [node name="1" type="Sprite2D" parent="computer/lamps_data" unique_id=1215730673] 83 position = Vector2(237, 8) 84 scale = Vector2(0.25, 0.25) 85 texture = ExtResource("3_272bh") 86 87 [node name="Label" type="Label" parent="computer/lamps_data/1" unique_id=1675454148] 88 offset_left = -38.0 89 offset_top = -86.0 90 offset_right = 40.0 91 offset_bottom = 58.0 92 text = "D1 93 " 94 label_settings = SubResource("LabelSettings_a5vro") 95 96 [node name="2" type="Sprite2D" parent="computer/lamps_data" unique_id=930259770] 97 position = Vector2(213, 8) 98 scale = Vector2(0.25, 0.25) 99 texture = ExtResource("3_272bh") 100 101 [node name="Label" type="Label" parent="computer/lamps_data/2" unique_id=32603783] 102 offset_left = -38.0 103 offset_top = -86.0 104 offset_right = 40.0 105 offset_bottom = 58.0 106 text = "D2" 107 label_settings = SubResource("LabelSettings_a5vro") 108 109 [node name="3" type="Sprite2D" parent="computer/lamps_data" unique_id=519104149] 110 position = Vector2(189, 8) 111 scale = Vector2(0.25, 0.25) 112 texture = ExtResource("3_272bh") 113 114 [node name="Label" type="Label" parent="computer/lamps_data/3" unique_id=314246776] 115 offset_left = -38.0 116 offset_top = -86.0 117 offset_right = 40.0 118 offset_bottom = 58.0 119 text = "D3 120 " 121 label_settings = SubResource("LabelSettings_a5vro") 122 123 [node name="4" type="Sprite2D" parent="computer/lamps_data" unique_id=243385059] 124 position = Vector2(165, 8) 125 scale = Vector2(0.25, 0.25) 126 texture = ExtResource("3_272bh") 127 128 [node name="Label" type="Label" parent="computer/lamps_data/4" unique_id=2032037997] 129 offset_left = -38.0 130 offset_top = -86.0 131 offset_right = 40.0 132 offset_bottom = 58.0 133 text = "D4 134 " 135 label_settings = SubResource("LabelSettings_a5vro") 136 137 [node name="5" type="Sprite2D" parent="computer/lamps_data" unique_id=981124598] 138 position = Vector2(141, 8) 139 scale = Vector2(0.25, 0.25) 140 texture = ExtResource("3_272bh") 141 142 [node name="Label" type="Label" parent="computer/lamps_data/5" unique_id=1258545799] 143 offset_left = -38.0 144 offset_top = -86.0 145 offset_right = 40.0 146 offset_bottom = 58.0 147 text = "D5 148 " 149 label_settings = SubResource("LabelSettings_a5vro") 150 151 [node name="6" type="Sprite2D" parent="computer/lamps_data" unique_id=221933103] 152 position = Vector2(117, 8) 153 scale = Vector2(0.25, 0.25) 154 texture = ExtResource("3_272bh") 155 156 [node name="Label" type="Label" parent="computer/lamps_data/6" unique_id=167357648] 157 offset_left = -38.0 158 offset_top = -86.0 159 offset_right = 40.0 160 offset_bottom = 58.0 161 text = "D6 162 " 163 label_settings = SubResource("LabelSettings_a5vro") 164 165 [node name="7" type="Sprite2D" parent="computer/lamps_data" unique_id=1641223163] 166 position = Vector2(93, 8) 167 scale = Vector2(0.25, 0.25) 168 texture = ExtResource("3_272bh") 169 170 [node name="Label" type="Label" parent="computer/lamps_data/7" unique_id=722737593] 171 offset_left = -38.0 172 offset_top = -86.0 173 offset_right = 40.0 174 offset_bottom = 58.0 175 text = "D7 176 " 177 label_settings = SubResource("LabelSettings_a5vro") 178 179 [node name="lamps_addr" type="Node2D" parent="computer" unique_id=1734725300] 180 position = Vector2(274, 76) 181 182 [node name="0" type="Sprite2D" parent="computer/lamps_addr" unique_id=1911411271] 183 position = Vector2(261, 8) 184 scale = Vector2(0.25, 0.25) 185 texture = ExtResource("3_272bh") 186 187 [node name="Label" type="Label" parent="computer/lamps_addr/0" unique_id=1579766318] 188 offset_left = -38.0 189 offset_top = -86.0 190 offset_right = 40.0 191 offset_bottom = 58.0 192 text = "A0 193 " 194 label_settings = SubResource("LabelSettings_a5vro") 195 196 [node name="1" type="Sprite2D" parent="computer/lamps_addr" unique_id=2009264748] 197 position = Vector2(237, 8) 198 scale = Vector2(0.25, 0.25) 199 texture = ExtResource("3_272bh") 200 201 [node name="Label" type="Label" parent="computer/lamps_addr/1" unique_id=1106498738] 202 offset_left = -38.0 203 offset_top = -86.0 204 offset_right = 40.0 205 offset_bottom = 58.0 206 text = "A1 207 " 208 label_settings = SubResource("LabelSettings_a5vro") 209 210 [node name="2" type="Sprite2D" parent="computer/lamps_addr" unique_id=307082814] 211 position = Vector2(213, 8) 212 scale = Vector2(0.25, 0.25) 213 texture = ExtResource("3_272bh") 214 215 [node name="Label" type="Label" parent="computer/lamps_addr/2" unique_id=1388525364] 216 offset_left = -38.0 217 offset_top = -86.0 218 offset_right = 40.0 219 offset_bottom = 58.0 220 text = "A2 221 " 222 label_settings = SubResource("LabelSettings_a5vro") 223 224 [node name="3" type="Sprite2D" parent="computer/lamps_addr" unique_id=339122357] 225 position = Vector2(189, 8) 226 scale = Vector2(0.25, 0.25) 227 texture = ExtResource("3_272bh") 228 229 [node name="Label" type="Label" parent="computer/lamps_addr/3" unique_id=604551364] 230 offset_left = -38.0 231 offset_top = -86.0 232 offset_right = 40.0 233 offset_bottom = 58.0 234 text = "A3 235 " 236 label_settings = SubResource("LabelSettings_a5vro") 237 238 [node name="4" type="Sprite2D" parent="computer/lamps_addr" unique_id=1864714391] 239 position = Vector2(165, 8) 240 scale = Vector2(0.25, 0.25) 241 texture = ExtResource("3_272bh") 242 243 [node name="Label" type="Label" parent="computer/lamps_addr/4" unique_id=633336564] 244 offset_left = -38.0 245 offset_top = -86.0 246 offset_right = 40.0 247 offset_bottom = 58.0 248 text = "A4 249 " 250 label_settings = SubResource("LabelSettings_a5vro") 251 252 [node name="5" type="Sprite2D" parent="computer/lamps_addr" unique_id=140769146] 253 position = Vector2(141, 8) 254 scale = Vector2(0.25, 0.25) 255 texture = ExtResource("3_272bh") 256 257 [node name="Label" type="Label" parent="computer/lamps_addr/5" unique_id=843605357] 258 offset_left = -38.0 259 offset_top = -86.0 260 offset_right = 40.0 261 offset_bottom = 58.0 262 text = "A5 263 " 264 label_settings = SubResource("LabelSettings_a5vro") 265 266 [node name="6" type="Sprite2D" parent="computer/lamps_addr" unique_id=1138734365] 267 position = Vector2(117, 8) 268 scale = Vector2(0.25, 0.25) 269 texture = ExtResource("3_272bh") 270 271 [node name="Label" type="Label" parent="computer/lamps_addr/6" unique_id=604413795] 272 offset_left = -38.0 273 offset_top = -86.0 274 offset_right = 40.0 275 offset_bottom = 58.0 276 text = "A6 277 " 278 label_settings = SubResource("LabelSettings_a5vro") 279 280 [node name="7" type="Sprite2D" parent="computer/lamps_addr" unique_id=1284145815] 281 position = Vector2(93, 8) 282 scale = Vector2(0.25, 0.25) 283 texture = ExtResource("3_272bh") 284 285 [node name="Label" type="Label" parent="computer/lamps_addr/7" unique_id=228856863] 286 offset_left = -38.0 287 offset_top = -86.0 288 offset_right = 40.0 289 offset_bottom = 58.0 290 text = "A7 291 " 292 label_settings = SubResource("LabelSettings_a5vro") 293 294 [node name="8" type="Sprite2D" parent="computer/lamps_addr" unique_id=1370430321] 295 position = Vector2(69, 8) 296 scale = Vector2(0.25, 0.25) 297 texture = ExtResource("3_272bh") 298 299 [node name="Label" type="Label" parent="computer/lamps_addr/8" unique_id=349899222] 300 offset_left = -38.0 301 offset_top = -86.0 302 offset_right = 40.0 303 offset_bottom = 58.0 304 text = "A8 305 " 306 label_settings = SubResource("LabelSettings_a5vro") 307 308 [node name="9" type="Sprite2D" parent="computer/lamps_addr" unique_id=1368353718] 309 position = Vector2(45, 8) 310 scale = Vector2(0.25, 0.25) 311 texture = ExtResource("3_272bh") 312 313 [node name="Label" type="Label" parent="computer/lamps_addr/9" unique_id=1365998183] 314 offset_left = -38.0 315 offset_top = -86.0 316 offset_right = 40.0 317 offset_bottom = 58.0 318 text = "A9 319 " 320 label_settings = SubResource("LabelSettings_a5vro") 321 322 [node name="10" type="Sprite2D" parent="computer/lamps_addr" unique_id=95336119] 323 position = Vector2(21, 8) 324 scale = Vector2(0.25, 0.25) 325 texture = ExtResource("3_272bh") 326 327 [node name="Label" type="Label" parent="computer/lamps_addr/10" unique_id=702407577] 328 offset_left = -42.0 329 offset_top = -84.0 330 offset_right = 50.0 331 offset_bottom = 60.0 332 text = "AA 333 " 334 label_settings = SubResource("LabelSettings_a5vro") 335 336 [node name="11" type="Sprite2D" parent="computer/lamps_addr" unique_id=1761830216] 337 position = Vector2(-3, 8) 338 scale = Vector2(0.25, 0.25) 339 texture = ExtResource("3_272bh") 340 341 [node name="Label" type="Label" parent="computer/lamps_addr/11" unique_id=1929700766] 342 offset_left = -38.0 343 offset_top = -86.0 344 offset_right = 40.0 345 offset_bottom = 58.0 346 text = "AB 347 " 348 label_settings = SubResource("LabelSettings_a5vro") 349 350 [node name="12" type="Sprite2D" parent="computer/lamps_addr" unique_id=446232673] 351 position = Vector2(-27, 8) 352 scale = Vector2(0.25, 0.25) 353 texture = ExtResource("3_272bh") 354 355 [node name="Label" type="Label" parent="computer/lamps_addr/12" unique_id=572153376] 356 offset_left = -38.0 357 offset_top = -86.0 358 offset_right = 40.0 359 offset_bottom = 58.0 360 text = "AC" 361 label_settings = SubResource("LabelSettings_a5vro") 362 363 [node name="13" type="Sprite2D" parent="computer/lamps_addr" unique_id=1509287834] 364 position = Vector2(-51, 8) 365 scale = Vector2(0.25, 0.25) 366 texture = ExtResource("3_272bh") 367 368 [node name="Label" type="Label" parent="computer/lamps_addr/13" unique_id=1483775890] 369 offset_left = -38.0 370 offset_top = -86.0 371 offset_right = 40.0 372 offset_bottom = 58.0 373 text = "AD 374 " 375 label_settings = SubResource("LabelSettings_a5vro") 376 377 [node name="14" type="Sprite2D" parent="computer/lamps_addr" unique_id=2063842413] 378 position = Vector2(-75, 8) 379 scale = Vector2(0.25, 0.25) 380 texture = ExtResource("3_272bh") 381 382 [node name="Label" type="Label" parent="computer/lamps_addr/14" unique_id=955073979] 383 offset_left = -38.0 384 offset_top = -86.0 385 offset_right = 40.0 386 offset_bottom = 58.0 387 text = "AE" 388 label_settings = SubResource("LabelSettings_a5vro") 389 390 [node name="15" type="Sprite2D" parent="computer/lamps_addr" unique_id=301037469] 391 position = Vector2(-99, 8) 392 scale = Vector2(0.25, 0.25) 393 texture = ExtResource("3_272bh") 394 395 [node name="Label" type="Label" parent="computer/lamps_addr/15" unique_id=1690630858] 396 offset_left = -38.0 397 offset_top = -86.0 398 offset_right = 40.0 399 offset_bottom = 58.0 400 text = "AF 401 " 402 label_settings = SubResource("LabelSettings_a5vro") 403 404 [node name="buttons" type="Node2D" parent="computer" unique_id=733435300] 405 position = Vector2(163, 137) 406 407 [node name="0" type="CheckButton" parent="computer/buttons" unique_id=2129421308] 408 offset_left = 360.0 409 offset_right = 404.0 410 offset_bottom = 24.0 411 rotation = 4.712389 412 mouse_filter = 1 413 metadata/_edit_use_anchors_ = true 414 415 [node name="1" type="CheckButton" parent="computer/buttons" unique_id=862879246] 416 offset_left = 336.0 417 offset_right = 380.0 418 offset_bottom = 24.0 419 rotation = 4.712389 420 mouse_filter = 1 421 metadata/_edit_use_anchors_ = true 422 423 [node name="2" type="CheckButton" parent="computer/buttons" unique_id=70508066] 424 offset_left = 312.0 425 offset_right = 356.0 426 offset_bottom = 24.0 427 rotation = 4.712389 428 mouse_filter = 1 429 metadata/_edit_use_anchors_ = true 430 431 [node name="3" type="CheckButton" parent="computer/buttons" unique_id=2099906965] 432 offset_left = 288.0 433 offset_right = 332.0 434 offset_bottom = 24.0 435 rotation = 4.712389 436 mouse_filter = 1 437 metadata/_edit_use_anchors_ = true 438 439 [node name="4" type="CheckButton" parent="computer/buttons" unique_id=1943659506] 440 offset_left = 264.0 441 offset_right = 308.0 442 offset_bottom = 24.0 443 rotation = 4.712389 444 mouse_filter = 1 445 metadata/_edit_use_anchors_ = true 446 447 [node name="5" type="CheckButton" parent="computer/buttons" unique_id=2076865949] 448 offset_left = 240.0 449 offset_right = 284.0 450 offset_bottom = 24.0 451 rotation = 4.712389 452 mouse_filter = 1 453 metadata/_edit_use_anchors_ = true 454 455 [node name="6" type="CheckButton" parent="computer/buttons" unique_id=1421105136] 456 offset_left = 216.0 457 offset_right = 260.0 458 offset_bottom = 24.0 459 rotation = 4.712389 460 mouse_filter = 1 461 metadata/_edit_use_anchors_ = true 462 463 [node name="7" type="CheckButton" parent="computer/buttons" unique_id=1283918352] 464 offset_left = 192.0 465 offset_right = 236.0 466 offset_bottom = 24.0 467 rotation = 4.712389 468 mouse_filter = 1 469 metadata/_edit_use_anchors_ = true 470 471 [node name="8" type="CheckButton" parent="computer/buttons" unique_id=210349797] 472 offset_left = 168.0 473 offset_right = 212.0 474 offset_bottom = 24.0 475 rotation = 4.712389 476 mouse_filter = 1 477 metadata/_edit_use_anchors_ = true 478 479 [node name="9" type="CheckButton" parent="computer/buttons" unique_id=313744853] 480 offset_left = 144.0 481 offset_right = 188.0 482 offset_bottom = 24.0 483 rotation = 4.712389 484 mouse_filter = 1 485 metadata/_edit_use_anchors_ = true 486 487 [node name="10" type="CheckButton" parent="computer/buttons" unique_id=1404060575] 488 offset_left = 120.0 489 offset_right = 164.0 490 offset_bottom = 24.0 491 rotation = 4.712389 492 mouse_filter = 1 493 metadata/_edit_use_anchors_ = true 494 495 [node name="11" type="CheckButton" parent="computer/buttons" unique_id=760018466] 496 offset_left = 96.0 497 offset_right = 140.0 498 offset_bottom = 24.0 499 rotation = 4.712389 500 mouse_filter = 1 501 metadata/_edit_use_anchors_ = true 502 503 [node name="12" type="CheckButton" parent="computer/buttons" unique_id=1690503583] 504 offset_left = 72.0 505 offset_right = 116.0 506 offset_bottom = 24.0 507 rotation = 4.712389 508 mouse_filter = 1 509 metadata/_edit_use_anchors_ = true 510 511 [node name="13" type="CheckButton" parent="computer/buttons" unique_id=695745454] 512 offset_left = 48.0 513 offset_right = 92.0 514 offset_bottom = 24.0 515 rotation = 4.712389 516 mouse_filter = 1 517 metadata/_edit_use_anchors_ = true 518 519 [node name="14" type="CheckButton" parent="computer/buttons" unique_id=1336488479] 520 offset_left = 24.0 521 offset_right = 68.0 522 offset_bottom = 24.0 523 rotation = 4.712389 524 mouse_filter = 1 525 metadata/_edit_use_anchors_ = true 526 527 [node name="15" type="CheckButton" parent="computer/buttons" unique_id=325488317] 528 offset_right = 44.0 529 offset_bottom = 24.0 530 rotation = 4.712389 531 mouse_filter = 1 532 metadata/_edit_use_anchors_ = true 533 534 [node name="control" type="Node2D" parent="computer" unique_id=1094110876] 535 position = Vector2(355, 163) 536 537 [node name="on_off" type="CheckButton" parent="computer/control" unique_id=1276014139] 538 offset_left = -305.0 539 offset_top = -12.999999 540 offset_right = -261.0 541 offset_bottom = 11.000001 542 rotation = 1.5707964 543 mouse_filter = 1 544 metadata/_edit_use_anchors_ = true 545 546 [node name="off" type="Label" parent="computer/control/on_off" unique_id=887485295] 547 layout_mode = 1 548 anchors_preset = -1 549 anchor_left = -0.09090909 550 anchor_top = 0.125 551 anchor_right = 0.22727273 552 anchor_bottom = 0.33333316 553 offset_left = -3.0 554 offset_top = 19.000004 555 offset_right = 27.0 556 offset_bottom = 42.000008 557 rotation = -1.5707964 558 scale = Vector2(0.5, 0.5) 559 text = "OFF" 560 label_settings = SubResource("LabelSettings_uxn5m") 561 metadata/_edit_use_anchors_ = true 562 563 [node name="on" type="Label" parent="computer/control/on_off" unique_id=965272764] 564 layout_mode = 1 565 anchors_preset = -1 566 anchor_top = 0.083333336 567 anchor_right = 0.3409091 568 anchor_bottom = 0.29166666 569 offset_left = 36.0 570 offset_top = 18.0 571 offset_right = 56.0 572 offset_bottom = 41.0 573 rotation = -1.5707964 574 scale = Vector2(0.5, 0.5) 575 text = "ON" 576 label_settings = SubResource("LabelSettings_uxn5m") 577 metadata/_edit_use_anchors_ = true 578 579 [node name="stop" type="Button" parent="computer/control" unique_id=886115773] 580 offset_left = -188.0 581 offset_top = -5.999999 582 offset_right = -172.0 583 offset_bottom = 10.000001 584 mouse_filter = 1 585 metadata/_edit_use_anchors_ = true 586 587 [node name="text" type="Label" parent="computer/control/stop" unique_id=1984568674] 588 layout_mode = 1 589 anchors_preset = -1 590 anchor_left = 0.21875 591 anchor_right = 1.28125 592 anchor_bottom = 0.3125 593 offset_left = -11.0 594 offset_top = -12.0 595 offset_right = 30.0 596 offset_bottom = 11.0 597 scale = Vector2(0.5, 0.5) 598 text = "STOP" 599 label_settings = SubResource("LabelSettings_uxn5m") 600 horizontal_alignment = 1 601 metadata/_edit_use_anchors_ = true 602 603 [node name="run" type="Button" parent="computer/control" unique_id=214883096] 604 offset_left = -188.0 605 offset_top = 11.000001 606 offset_right = -172.0 607 offset_bottom = 27.0 608 mouse_filter = 1 609 metadata/_edit_use_anchors_ = true 610 611 [node name="text" type="Label" parent="computer/control/run" unique_id=1347445060] 612 layout_mode = 1 613 anchors_preset = -1 614 anchor_left = 0.34375 615 anchor_top = 0.15625001 616 anchor_right = 0.96875 617 anchor_bottom = 0.46875003 618 offset_left = -11.0 619 offset_top = 13.0 620 offset_right = 30.0 621 offset_bottom = 36.0 622 scale = Vector2(0.5, 0.5) 623 text = "RUN" 624 label_settings = SubResource("LabelSettings_uxn5m") 625 horizontal_alignment = 1 626 metadata/_edit_use_anchors_ = true 627 628 [node name="s_step" type="Button" parent="computer/control" unique_id=1023167207] 629 offset_left = -135.0 630 offset_top = 10.000001 631 offset_right = -119.0 632 offset_bottom = 26.0 633 mouse_filter = 1 634 metadata/_edit_use_anchors_ = true 635 636 [node name="text" type="Label" parent="computer/control/s_step" unique_id=822028633] 637 layout_mode = 1 638 anchors_preset = -1 639 anchor_left = -0.0625 640 anchor_top = -0.56250006 641 anchor_right = 2.625 642 anchor_bottom = 1.3125001 643 offset_left = -12.0 644 offset_top = -19.0 645 offset_right = 30.0 646 offset_bottom = 7.0 647 scale = Vector2(0.5, 0.5) 648 text = "SINGLE 649 STEP" 650 label_settings = SubResource("LabelSettings_uxn5m") 651 horizontal_alignment = 1 652 metadata/_edit_use_anchors_ = true 653 654 [node name="examine" type="Button" parent="computer/control" unique_id=296196073] 655 offset_left = -76.0 656 offset_top = -5.999999 657 offset_right = -60.0 658 offset_bottom = 10.000001 659 mouse_filter = 1 660 metadata/_edit_use_anchors_ = true 661 662 [node name="text" type="Label" parent="computer/control/examine" unique_id=1867917591] 663 layout_mode = 0 664 offset_left = -17.0 665 offset_top = -14.0 666 offset_right = 36.0 667 offset_bottom = 9.0 668 scale = Vector2(0.5, 0.5) 669 text = "EXAMINE" 670 label_settings = SubResource("LabelSettings_uxn5m") 671 horizontal_alignment = 1 672 metadata/_edit_use_anchors_ = true 673 674 [node name="examine_n" type="Button" parent="computer/control" unique_id=107187658] 675 offset_left = -76.0 676 offset_top = 11.000001 677 offset_right = -60.0 678 offset_bottom = 27.0 679 mouse_filter = 1 680 metadata/_edit_use_anchors_ = true 681 682 [node name="text" type="Label" parent="computer/control/examine_n" unique_id=551910634] 683 layout_mode = 0 684 offset_left = -17.0 685 offset_top = 12.0 686 offset_right = 36.0 687 offset_bottom = 46.0 688 scale = Vector2(0.5, 0.5) 689 text = "EXAMINE 690 NEXT" 691 label_settings = SubResource("LabelSettings_uxn5m") 692 horizontal_alignment = 1 693 metadata/_edit_use_anchors_ = true 694 695 [node name="deposit" type="Button" parent="computer/control" unique_id=1692201661] 696 offset_left = -11.0 697 offset_top = -5.999999 698 offset_right = 5.0 699 offset_bottom = 10.000001 700 mouse_filter = 1 701 metadata/_edit_use_anchors_ = true 702 703 [node name="text" type="Label" parent="computer/control/deposit" unique_id=1183008914] 704 layout_mode = 1 705 anchors_preset = -1 706 anchor_left = 0.15625 707 anchor_right = 3.03125 708 anchor_bottom = 0.3125 709 offset_left = -20.0 710 offset_top = -13.0 711 offset_right = 33.0 712 offset_bottom = 10.0 713 scale = Vector2(0.5, 0.5) 714 text = "DEPOSIT" 715 label_settings = SubResource("LabelSettings_uxn5m") 716 horizontal_alignment = 1 717 metadata/_edit_use_anchors_ = true 718 719 [node name="deposit_n" type="Button" parent="computer/control" unique_id=845138324] 720 offset_left = -11.0 721 offset_top = 11.000001 722 offset_right = 5.0 723 offset_bottom = 27.0 724 mouse_filter = 1 725 metadata/_edit_use_anchors_ = true 726 727 [node name="text" type="Label" parent="computer/control/deposit_n" unique_id=926335548] 728 layout_mode = 1 729 anchors_preset = -1 730 anchor_left = 0.15625 731 anchor_right = 3.03125 732 anchor_bottom = 1.3750001 733 offset_left = -17.0 734 offset_top = 12.0 735 offset_right = 36.0 736 offset_bottom = 46.0 737 scale = Vector2(0.5, 0.5) 738 text = "DEPOSIT 739 NEXT" 740 label_settings = SubResource("LabelSettings_uxn5m") 741 horizontal_alignment = 1 742 metadata/_edit_use_anchors_ = true 743 744 [node name="reset" type="Button" parent="computer/control" unique_id=1280760691] 745 offset_left = 52.0 746 offset_top = -5.999999 747 offset_right = 68.0 748 offset_bottom = 10.000001 749 mouse_filter = 1 750 metadata/_edit_use_anchors_ = true 751 752 [node name="text" type="Label" parent="computer/control/reset" unique_id=1297615840] 753 layout_mode = 1 754 anchors_preset = -1 755 anchor_left = 0.34375 756 anchor_right = 1.59375 757 anchor_bottom = 0.3125 758 offset_left = -16.0 759 offset_top = -12.0 760 offset_right = 37.0 761 offset_bottom = 11.0 762 scale = Vector2(0.5, 0.5) 763 text = "RESET" 764 label_settings = SubResource("LabelSettings_uxn5m") 765 horizontal_alignment = 1 766 metadata/_edit_use_anchors_ = true 767 768 [node name="clr" type="Button" parent="computer/control" unique_id=1324293289] 769 offset_left = 52.0 770 offset_top = 11.000001 771 offset_right = 68.0 772 offset_bottom = 27.0 773 mouse_filter = 1 774 metadata/_edit_use_anchors_ = true 775 776 [node name="text" type="Label" parent="computer/control/clr" unique_id=2030335195] 777 layout_mode = 1 778 anchors_preset = -1 779 anchor_left = 0.8125 780 anchor_top = 0.06250001 781 anchor_right = 0.8125 782 anchor_bottom = 1.4375001 783 offset_left = -19.0 784 offset_top = 14.0 785 offset_right = 34.0 786 offset_bottom = 48.0 787 scale = Vector2(0.5, 0.5) 788 text = "CLR 789 " 790 label_settings = SubResource("LabelSettings_uxn5m") 791 horizontal_alignment = 1 792 metadata/_edit_use_anchors_ = true 793 794 [node name="book" type="Area2D" parent="." unique_id=1717261404] 795 z_index = 1 796 position = Vector2(0, 800) 797 scale = Vector2(1.5, 1.5) 798 script = ExtResource("4_7mycd") 799 offset = -600.0 800 801 [node name="script" type="Node" parent="book" unique_id=1593142132 node_paths=PackedStringArray("button_next_page", "button_prev_page", "left_page_label", "right_page_label")] 802 script = ExtResource("5_5vw27") 803 button_next_page = NodePath("../button_next_page") 804 button_prev_page = NodePath("../button_prev_page") 805 left_page_label = NodePath("../left") 806 right_page_label = NodePath("../right") 807 808 [node name="doc" type="Sprite2D" parent="book" unique_id=1634288699] 809 visible = false 810 texture = ExtResource("3_1bvp3") 811 812 [node name="header" type="Label" parent="book/doc" unique_id=2038232969] 813 offset_left = -99.0 814 offset_top = -141.0 815 offset_right = 101.0 816 offset_bottom = -133.0 817 mouse_filter = 1 818 text = "DOCUMENTATION" 819 label_settings = SubResource("LabelSettings_kek77") 820 horizontal_alignment = 1 821 822 [node name="system" type="Label" parent="book/doc" unique_id=1094384802] 823 offset_left = -100.0 824 offset_top = -133.0 825 offset_right = 100.0 826 offset_bottom = -109.0 827 mouse_filter = 1 828 text = "A0-15 - Address switchers 829 D0-7 - Data switchers 830 EXAMINE/NEXT - Change current address and show 831 data from memory by address 832 DEPOSIT/NEXT - Load data in memory by address 833 RESET - Set address to 0x0000" 834 label_settings = SubResource("LabelSettings_kek77") 835 836 [node name="registers" type="Label" parent="book/doc" unique_id=1958491991] 837 offset_left = -100.0 838 offset_top = -80.0 839 offset_right = 100.0 840 offset_bottom = -56.0 841 mouse_filter = 1 842 text = "NAME OPCODE 843 A 111 844 B 000 845 C 001 846 D 010 847 E 011 848 H 100 849 L 101 850 M 110" 851 label_settings = SubResource("LabelSettings_kek77") 852 853 [node name="opcode" type="Label" parent="book/doc" unique_id=720962544] 854 offset_left = -100.0 855 offset_top = -8.0 856 offset_right = 100.0 857 offset_bottom = 16.0 858 mouse_filter = 1 859 text = "NAME OPCODE DESCRIPTION 860 MVI 00<dst>110 move immediate 861 MOV 01<dst><src> move register 862 STA 00110010 move to memory 863 HLT 01110110 halt machine 864 " 865 label_settings = SubResource("LabelSettings_kek77") 866 867 [node name="example program" type="Label" parent="book/doc" unique_id=702865304] 868 offset_left = -100.0 869 offset_top = 32.0 870 offset_right = 100.0 871 offset_bottom = 80.0 872 mouse_filter = 1 873 text = "Example program: 874 ADDR OPCODE ASM 875 0000 00111110 MOV A 876 0001 00001000 8 877 0002 00110010 STA 878 0003 00000000 00 879 0004 00010000 10 880 0005 00111110 MOV A 881 0006 00001001 9 882 0007 00110010 STA 883 0008 00000000 01 884 0009 00010000 10 885 000A 01110110 HLT" 886 label_settings = SubResource("LabelSettings_kek77") 887 888 [node name="book" type="Sprite2D" parent="book" unique_id=75626602] 889 scale = Vector2(0.75, 0.75) 890 texture = ExtResource("5_272bh") 891 892 [node name="left" type="Label" parent="book" unique_id=1159612953] 893 offset_left = -292.6667 894 offset_top = -209.33334 895 offset_right = 272.6667 896 offset_bottom = 628.0 897 scale = Vector2(0.5, 0.5) 898 label_settings = SubResource("LabelSettings_4c57u") 899 900 [node name="right" type="Label" parent="book" unique_id=686626562] 901 offset_left = 7.3333435 902 offset_top = -209.33334 903 offset_right = 582.0 904 offset_bottom = 626.6666 905 scale = Vector2(0.5, 0.5) 906 label_settings = SubResource("LabelSettings_4c57u") 907 908 [node name="block" type="Button" parent="book" unique_id=1351809403] 909 offset_left = -154.0 910 offset_top = -108.0 911 offset_right = 154.66669 912 offset_bottom = 108.66667 913 mouse_filter = 1 914 flat = true 915 916 [node name="button_next_page" type="Button" parent="book" unique_id=1735437504] 917 offset_left = 4.666668 918 offset_top = -207.33333 919 offset_right = 293.33334 920 offset_bottom = 191.33336 921 mouse_filter = 1 922 action_mode = 0 923 flat = true 924 925 [node name="button_prev_page" type="Button" parent="book" unique_id=1151481640] 926 offset_left = -298.6667 927 offset_top = -208.66667 928 offset_right = -2.666687 929 offset_bottom = 208.66664 930 mouse_filter = 1 931 action_mode = 0 932 flat = true 933 934 [node name="collision" type="CollisionShape2D" parent="book" unique_id=1149371540] 935 position = Vector2(-1, 27.000015) 936 shape = SubResource("RectangleShape2D_a5vro") 937 debug_color = Color(0, 0.6, 0.69803923, 0)