Best Python code snippet using responses
floors.py
Source:floors.py
1from geometry import Floor, Build, Column2import math3from settings import *4from resourses import *5from enemy import *6level_names = {7 # 5: 'пеÑвÑй ноÑмалÑнÑй ÑÑовенÑ',8 # 6: 'ÑеÑковÑ',9 # 7: 'леÑÑниÑа в небо',10 # 8: 'лол',11 # 9: 'леÑÑниÑа в небо 2',12 # 10: 'коÑидоÑ',13 # 11: 'паÑÐ¾Ð¾Ð´Ð¸Ñ Ð½Ð° дÑм',14 # 12: 'dust 2',15 # 13: 'YOBA RACE',16 # 14: 'ÑеÑÑ ÑекÑÑÑÑ 1',17 # 15: 'kill him 1',18 # 16: 'kill him 2',19 # 17: 'оÑкÑÑÑое поле 1',20 # 18: 'оÑкÑÑÑое поле 2',21 # 19: 'замок 1',22 # 20: 'замок 2 (более пÑоÑÑоÑнÑй)',23 # 21: 'колбаÑа',24 # 22: 'вÑÑ',25 100: 'наÑало',26 101: 'поÑÑал',27 102: 'замок',28 103: 'апаÑÑаменÑÑ',29 104: 'ад',30 105: 'Ñай',31 106: 'маÑÑонÑкое ложе',32 107: 'конеÑ',33}34level_nums = {}35for k, v in level_names.items():36 level_nums[v] = k37def load_floor(num_floor):38 floor = None39 if num_floor == 5:40 floor = Floor(build_list=[41 Build(column_list=[42 Column(-1, 3),43 Column(-4, 3),44 Column(-4, -3.158609382000001),45 Column(4.871746100000002, -3),46 Column(5, 3),47 Column(1, 3),48 Column(1, 6),49 Column(4.554145636501002, 8.180376635282004),50 Column(4.683832759506002, 10),51 Column(6.266015660167003, 10),52 ], is_closed=False),53 Build(column_list=[54 Column(6.381598826237731, 13.152590148725595),55 Column(4.759031355472972, 13.152590148725595),56 Column(4.275713385457938, 14.809680331634285),57 Column(0.3056014889058689, 18.33099697031525),58 Column(-5.252555166267028, 15.569179998800767),59 Column(-4.803759908395924, 13),60 Column(-7.116781622039304, 13),61 ], is_closed=False),62 Build(column_list=[63 Column(-7, 10),64 Column(-4.631146347676269, 10.149114192203594),65 Column(-4.424010074812683, 7.594433493552698),66 Column(-1, 6),67 Column(-1, 3),68 ], is_closed=False),69 Build(column_list=[70 Column(-7, 10),71 Column(-9.119098926387304, 9.251523676461387),72 Column(-11, 7.352774508545181),73 Column(-11.777347761469994, 5.454025340628974),74 Column(-12.157097595053235, 3.4862307484249047),75 Column(-12.32971115577289, 1.65652700479656),76 Column(-12.536847428636477, 0.10300495831966333),77 ], is_closed=False),78 Build(column_list=[79 Column(-7.254872470615028, 13),80 Column(-9.153621638531234, 12.876408451574147),81 Column(-11.501166064318545, 12.32404505727125),82 Column(-13, 11),83 Column(-14.124892187257304, 9),84 Column(-15.229618975863097, 5.730207037780422),85 Column(-15.471277960870614, 4),86 Column(-15.712936945878132, 1.4839134440769048),87 Column(-15.747459658022063, 0),88 Column(-18, 0),89 Column(-21.581798010346407, -7.1812873040497855),90 Column(-14.159414899401234, -13.36085277781344),91 Column(-6.806077212743925, -7.215810016193716),92 Column(-10.154780290705235, 0),93 Column(-12.571370140780408, 0.10300495831966333),94 ], is_closed=False),95 Build(column_list=[96 Column(-17, -3.5909252410809573),97 Column(-14.193937611545167, -10.737126654874682),98 Column(-11.777347761469994, -3.3147435439295094),99 Column(-18, -7.595559849776958),100 Column(-10.6726209728642, -8),101 ], is_closed=True),102 Build(column_list=[103 Column(6.312553401949869, 13.187112860869526),104 Column(6.485166962669524, 19),105 Column(4.862599491904765, 19.159542061769596),106 ], is_closed=False),107 Build(column_list=[108 Column(6.2435079776620075, 10),109 Column(6.6232578112452485, -3),110 Column(16.117003650826284, -2.4861984524751644),111 Column(15.461072120091593, 21.852313608996216),112 Column(4.586417794753317, 21.852313608996216),113 Column(2.7567140511249724, 22.473722427586974),114 Column(3, 23.751062776912423),115 Column(4.862599491904765, 24),116 Column(6.105417129086283, 23.854630913344216),117 ], is_closed=False),118 Build(column_list=[119 Column(4.862599491904765, 19.228587486057457),120 Column(0.4782150496255241, 20.64401868395863),121 Column(-0.3158073296848897, 23.57844921619277),122 Column(0, 26),123 Column(3.4816910061475244, 26.65097059700263),124 Column(7.279189341979938, 26.65097059700263),125 Column(7.451802902699593, 28.169969931335597),126 Column(15.633685680811249, 28.239015355623458),127 Column(15.115844998652284, 22.818949549026286),128 Column(6.347076114093801, 23),129 Column(6.105417129086283, 23.854630913344216),130 ], is_closed=False),131 Build(column_list=[132 Column(8.107734433434283, 24.372471595503182),133 Column(8.832711388456834, 27),134 Column(9.108893085608283, 24.510562444078907),135 ], is_closed=False),136 Build(column_list=[137 Column(10, 26.443834324139043),138 Column(10, 24.786744141230354),139 Column(10.69693784422911, 24.6141305805107),140 Column(11.421914799251663, 25.166493974813594),141 Column(11.249301238532007, 27.34142483988125),142 Column(10.524324283509456, 27.30690212773732),143 ], is_closed=True),144 Build(column_list=[145 Column(12.595687012145317, 24.510562444078907),146 Column(13.389709391455732, 27.410470264169113),147 Column(14, 24.545085156222836),148 ], is_closed=False),149 Build(column_list=[150 Column(15.392026695803732, 21.817790896852284),151 Column(11.66357378425918, 19.711905456072493),152 Column(15.599162968667319, 19),153 Column(12.69925514857711, 16.70842949955049),154 Column(15.737253817243042, 16.225111529535457),155 Column(12.733777860721041, 13.566862694452768),156 Column(15.875344665818766, 12.738317602998423),157 Column(12.492118875713524, 10.35625046506718),158 Column(15.771776529386972, 9.35509181289318),159 Column(12.630209724289248, 7.421819932833043),160 Column(16, 6.2135250077954565),161 Column(13, 4.521912112742836),162 Column(16.220571787258077, 3.31361718770525),163 Column(13, 1.760095141228353),164 Column(16.427708060121663, 0.5518002161907668),165 Column(13, 0.20657309475145644),166 Column(16.25509449940201, -2.3826303160433713),167 Column(13.320663967167869, -1),168 Column(13.389709391455732, -2.6242893010508883),169 Column(12.250459890706008, -1.139812678861854),170 Column(11.69809649640311, -2.5207211646190952),171 Column(11, -1.208858103149716),172 Column(9.626733767767249, -2.6933347253387505),173 Column(9.177938509896146, -0.8291082695664747),174 Column(7.1065757812602826, -2.865948286058406),175 Column(8.314870706297869, 0.7934592011982841),176 Column(6.519689674813455, 1.65652700479656),177 Column(8.3493934184418, 4.418343976311043),178 Column(6.554212386957387, 5.557593477060767),179 Column(8, 7.387297220689112),180 Column(6.347076114093801, 7.7670470542723535),181 ], is_closed=False),182 ])183 if num_floor == 6:184 floor = Floor(build_list=[185 Build(column_list=[186 Column(-1, 3),187 Column(-1, 5),188 Column(-2, 5),189 Column(-2, 6),190 Column(-4, 6),191 Column(-4, 4),192 Column(-5, 4),193 Column(-5, 3),194 Column(-1, 3),195 ], is_closed=False),196 Build(column_list=[197 Column(-4, 2),198 Column(-5, 2),199 Column(-5, -1),200 Column(-8, -1),201 Column(-8, 0),202 Column(-9, 0),203 Column(-9, -2),204 Column(-4, -2),205 Column(-4, 2),206 ], is_closed=False),207 Build(column_list=[208 Column(-9, 2),209 Column(-8, 2),210 Column(-8, 6),211 Column(-9, 6),212 Column(-9, 2),213 ], is_closed=False),214 Build(column_list=[215 Column(-4, 8),216 Column(-2, 8),217 Column(-2, 9),218 Column(-1, 9),219 Column(-1, 11),220 Column(-4, 11),221 ], is_closed=True),222 Build(column_list=[223 Column(-9, 8),224 Column(-8, 8),225 Column(-8, 11),226 Column(-9, 11),227 ], is_closed=True),228 Build(column_list=[229 Column(-9, 13),230 Column(-8, 13),231 Column(-8, 14),232 Column(-9, 14),233 ], is_closed=True),234 Build(column_list=[235 Column(-9, 16),236 Column(-8, 16),237 Column(-8, 17),238 Column(-9, 17),239 Column(-9, 16),240 ], is_closed=False),241 Build(column_list=[242 Column(-9, 19),243 Column(-8, 19),244 Column(-8, 23),245 Column(-9, 23),246 ], is_closed=True),247 Build(column_list=[248 Column(-9, 25),249 Column(-8, 25),250 Column(-8, 27),251 Column(-5, 27),252 Column(-5, 29),253 ], is_closed=False),254 Build(column_list=[255 Column(-9, 25),256 Column(-9, 27),257 Column(-12, 27),258 Column(-12, 28),259 Column(-9, 28),260 Column(-9, 31),261 Column(-7, 31),262 Column(-5, 29),263 ], is_closed=False),264 Build(column_list=[265 Column(-14, 28),266 Column(-14, 27),267 Column(-17, 27),268 Column(-17, 31),269 Column(-16, 31),270 Column(-16, 28),271 ], is_closed=True),272 Build(column_list=[273 Column(-17, 33),274 Column(-16, 33),275 Column(-16, 34),276 Column(-17, 34),277 ], is_closed=True),278 Build(column_list=[279 Column(-17, 36),280 Column(-16, 36),281 Column(-16, 37),282 Column(-17, 37),283 ], is_closed=True),284 Build(column_list=[285 Column(-17, 39),286 Column(-16, 39),287 Column(-16, 42),288 Column(-14, 42),289 Column(-14, 43),290 Column(-17, 43),291 ], is_closed=True),292 Build(column_list=[293 Column(-12, 43),294 Column(-12, 42),295 Column(-9, 42),296 Column(-9, 39),297 Column(-7, 39),298 Column(-5, 41),299 Column(-5, 43),300 Column(-8, 43),301 Column(-8, 45),302 Column(-9, 45),303 Column(-9, 43),304 ], is_closed=True),305 Build(column_list=[306 Column(-8, 47),307 Column(-8, 50),308 Column(-9, 50),309 Column(-9, 47),310 Column(-8, 47),311 ], is_closed=False),312 Build(column_list=[313 Column(5, 43),314 Column(5, 41),315 Column(7, 39),316 Column(9, 39),317 Column(9, 42),318 Column(12, 42),319 Column(12, 43),320 Column(9, 43),321 Column(9, 45),322 Column(8, 45),323 Column(8, 43),324 Column(5, 43),325 ], is_closed=False),326 Build(column_list=[327 Column(8, 47),328 Column(9, 47),329 Column(9, 50),330 Column(8, 50),331 Column(8, 47),332 ], is_closed=False),333 Build(column_list=[334 Column(-6, 50),335 Column(-6, 49),336 Column(-3, 49),337 Column(-3, 50),338 Column(-6, 50),339 ], is_closed=False),340 Build(column_list=[341 Column(-2, 50),342 Column(-2, 49),343 Column(6, 49),344 Column(6, 50),345 Column(-2, 50),346 ], is_closed=False),347 Build(column_list=[348 Column(-5, 50),349 Column(-4, 53),350 Column(-3, 54),351 Column(0, 55),352 Column(3, 54),353 Column(4, 53),354 Column(5, 50),355 ], is_closed=False),356 Build(column_list=[357 Column(-4, 50),358 Column(-3, 53),359 Column(0, 54),360 Column(3, 53),361 Column(4, 50),362 ], is_closed=False),363 Build(column_list=[364 Column(14, 43),365 Column(17, 43),366 Column(17, 39),367 Column(16, 39),368 Column(16, 42),369 Column(14, 42),370 Column(14, 43),371 ], is_closed=False),372 Build(column_list=[373 Column(16, 37),374 Column(17, 37),375 Column(17, 36),376 Column(16, 36),377 ], is_closed=True),378 Build(column_list=[379 Column(16, 34),380 Column(17, 34),381 Column(17, 33),382 Column(16, 33),383 ], is_closed=True),384 Build(column_list=[385 Column(16, 31),386 Column(17, 31),387 Column(17, 27),388 Column(14, 27),389 Column(14, 28),390 Column(16, 28),391 ], is_closed=True),392 Build(column_list=[393 Column(12, 28),394 Column(9, 28),395 Column(9, 31),396 Column(7, 31),397 Column(5, 29),398 Column(5, 27),399 Column(8, 27),400 Column(8, 25),401 Column(9, 25),402 Column(9, 27),403 Column(12, 27),404 Column(12, 28),405 ], is_closed=False),406 Build(column_list=[407 Column(8, 23),408 Column(9, 23),409 Column(9, 19),410 Column(8, 19),411 Column(8, 23),412 ], is_closed=False),413 Build(column_list=[414 Column(8, 17),415 Column(9, 17),416 Column(9, 16),417 Column(8, 16),418 Column(8, 17),419 ], is_closed=False),420 Build(column_list=[421 Column(8, 14),422 Column(9, 14),423 Column(9, 13),424 Column(8, 13),425 Column(8, 14),426 ], is_closed=False),427 Build(column_list=[428 Column(8, 11),429 Column(9, 11),430 Column(9, 8),431 Column(8, 8),432 Column(8, 11),433 ], is_closed=False),434 Build(column_list=[435 Column(8, 6),436 Column(9, 6),437 Column(9, 2),438 Column(8, 2),439 Column(8, 6),440 ], is_closed=False),441 Build(column_list=[442 Column(8, 0),443 Column(9, 0),444 Column(9, -2),445 Column(4, -2),446 Column(4, 3),447 Column(1, 3),448 Column(1, 5),449 Column(2, 5),450 Column(2, 6),451 Column(4, 6),452 Column(4, 4),453 Column(5, 4),454 Column(5, -1),455 Column(8, -1),456 Column(8, 0),457 ], is_closed=False),458 Build(column_list=[459 Column(2, 8),460 Column(4, 8),461 Column(4, 11),462 Column(1, 11),463 Column(1, 9),464 Column(2, 9),465 Column(2, 8),466 ], is_closed=False),467 ])468 if num_floor == 7:469 floor = Floor(build_list=[470 Build(column_list=[471 Column(i, 0, i, 0),472 Column(i + 1, 0, i, 0),473 ], is_closed=False)474 for i in range(2, 100)475 ])476 if num_floor == 8:477 floor = Floor(build_list=[478 Build(column_list=[479 Column(x=0, y=0, h=2, h_down=0),480 Column(x=1, y=0, h=2, h_down=3),481 Column(x=2, y=0, h=2, h_down=0),482 ], is_closed=False),483 Build(column_list=[484 Column(x=3, y=0, h=5, h_down=0),485 Column(x=4, y=0, h=5, h_down=0),486 ], is_closed=False),487 Build(column_list=[488 Column(x=5, y=0, h=5, h_down=0),489 Column(x=6, y=0, h=5, h_down=0),490 ], is_closed=False),491 Build(column_list=[492 Column(x=4, y=0, h=1, h_down=4),493 Column(x=5, y=0, h=1, h_down=4),494 ], is_closed=False),495 Build(column_list=[496 Column(x=4, y=0, h=1, h_down=0),497 Column(x=5, y=0, h=1, h_down=0),498 ], is_closed=False),499 Build(column_list=[500 Column(x=7, y=0, h=2, h_down=0),501 Column(x=8, y=0, h=2, h_down=3),502 Column(x=9, y=0, h=2, h_down=0),503 ], is_closed=False),504 Build(column_list=[505 Column(x=-1, y=2, h=2, h_down=0),506 Column(x=10, y=2, h=2, h_down=3),507 ], is_closed=False),508 Build(column_list=[509 Column(x=-1, y=5, h=2, h_down=3),510 Column(x=10, y=5, h=2, h_down=0),511 ], is_closed=False),512 ])513 if num_floor == 9:514 floor = Floor(build_list=[])515 for i in range(100):516 for j in range(i - 2, i):517 b = Build(column_list=[518 Column(1, i * 2, 1, j * 2),519 Column(2, i * 2, 1, j * 2),520 # Column(2, i * 2 + 1, 1, j * 2),521 # Column(1, i * 2 + 1, 1, j * 2),522 ], is_closed=False523 )524 floor.build_list.append(b)525 b = Build(column_list=[526 Column(1, 1, 100, 0),527 Column(2, 1, 100, 0),528 ], is_closed=False)529 floor.build_list.append(b)530 b = Build(column_list=[531 Column(1, 100, 100, 0),532 Column(2, 100, 100, 0),533 ], is_closed=False)534 floor.build_list.append(b)535 if num_floor == 10:536 n = 20537 floor = Floor(build_list=[538 Build(column_list=[539 Column(-3, i * 4 + 0, 2, 5),540 Column(-3, i * 4 + 1, 1, 6),541 Column(-3, i * 4 + 2, 2, 5),542 Column(-3, i * 4 + 2, 7, 0),543 Column(-3, i * 4 + 4, 7, 0),544 ], is_closed=False) for i in range(-n, n)545 ])546 for i in range(-n, n):547 floor.build_list.append(548 Build(column_list=[549 Column(3, i * 4 + 0, 2, 5),550 Column(3, i * 4 + 1, 1, 6),551 Column(3, i * 4 + 2, 2, 5),552 Column(3, i * 4 + 2, 7, 0),553 Column(3, i * 4 + 4, 7, 0),554 ], is_closed=False)555 )556 floor.build_list.append(557 Build(column_list=[558 Column(3, -n * 4, 1, 0),559 Column(3, n * 4, 1, 0),560 ], is_closed=False)561 )562 floor.build_list.append(563 Build(column_list=[564 Column(-3, -n * 4, 1, 0),565 Column(-3, n * 4, 1, 0),566 ], is_closed=False)567 )568 if num_floor == 11:569 floor = Floor(build_list=[570 Build(column_list=[571 Column(-5, 0.5196453329084997, 3, 0),572 Column(-4.674522239345714, 2.345640024818901, 3, 0),573 Column(-2.477622375641013, 4.228697050851503, 3, 0),574 Column(-1, 4.685195723829103, 3, 0),575 Column(0, 4.599602222645805, 3, 0),576 Column(4.4839823872673925, 10.70527197372121, 3, 0),577 Column(1.5912358901095212, 15.47859328537737, 3, 0),578 Column(3.679859974817349, 24, 3, 0),579 Column(6, 16, 3, 0),580 Column(7.667233227441384, 14, 3, 0),581 Column(9, 15.592518235452342, 3, 0),582 Column(9, 18.630516904118274, 3, 0),583 Column(12, 20.263441188526212, 3, 0),584 Column(15, 17.75709228687682, 3, 0),585 Column(14.464755248581406, 15, 3, 0),586 Column(11.38878159655715, 14.37731876798597, 3, 0),587 Column(9.528007411999267, 12.326669666636466, 3, 0),588 Column(12.679931030740171, 11, 3, 0),589 Column(23, 13.54186913410284, 3, 0),590 Column(13, 7.389921830054328, 3, 0),591 Column(7.667233227441384, 9.32664598132886, 3, 0),592 Column(3, 3.2886236273553204, 3, 0),593 Column(4.439359641983834, 1, 3, 0),594 Column(4, -1.4582492924351975, 3, 0),595 Column(3, -2.7873737099765425, 3, 0),596 Column(5, -5.369672578342584, 3, 0),597 Column(5, -2, 3, 0),598 Column(9, -2, 3, 0),599 Column(9, -13, 3, 0),600 Column(8, -13, 3, 0),601 Column(8, -19, 3, 0),602 Column(10, -19, 3, 0),603 Column(5, -28, 3, 0),604 Column(5, -10, 3, 0),605 Column(6, -9, 3, 0),606 Column(2, -9, 3, 0),607 Column(4, -11, 3, 0),608 Column(4, -16, 3, 0),609 Column(0, -16, 3, 0),610 ], is_closed=False),611 Build(column_list=[612 Column(4, -16, 3, 0),613 Column(4, -23, 3, 0),614 Column(1, -23, 3, 0),615 Column(1, -18, 3, 0),616 Column(-2, -18, 3, 0),617 Column(-2, -14, 3, 0),618 Column(2, -14, 3, 0),619 ], is_closed=False),620 Build(column_list=[621 Column(0, -13.786354778988468, 3, 0),622 Column(0, -7, 3, 0),623 Column(3.7226738874766094, -7, 3, 0),624 Column(1, -3.649231122179627, 3, 0),625 Column(-1, -4.653528202730349, 3, 0),626 Column(-4.248934189394737, -4, 3, 0),627 Column(-5, -2, 3, 0),628 Column(-12, -2, 3, 0),629 Column(-12, -3, 3, 0),630 Column(-27, -3, 3, 0),631 Column(-27, -2, 3, 0),632 Column(-36, -2, 3, 0),633 Column(-40.453591440061786, -6.425505918341967, 3, 0),634 Column(-47.38666503590909, -3.4582645439875646, 3, 0),635 Column(-47.38666503590909, 3, 3, 0),636 Column(-39.569125261167684, 5.329334910831243, 3, 0),637 Column(-36, 2, 3, 0),638 Column(-27, 2, 3, 0),639 Column(-27, 1, 3, 0),640 Column(-12, 1, 3, 0),641 Column(-12, 2, 3, 0),642 Column(-5, 0.5931611786886387, 3, 0),643 ], is_closed=False),644 ])645 if num_floor == 12:646 floor = Floor(build_list=[647 Build(column_list=[648 Column(-1.25, 2.5, 3.6, 0.0),649 Column(-7.5, 2.5, 3.6, 0.0),650 Column(-7.5, -1.25, 3.6, 0.0),651 Column(-5.0, -3.75, 3.6, 0.0),652 Column(3.75, -3.75, 3.6, 0.0),653 Column(3.75, -2.5, 3.6, 0.0),654 Column(5.0, -2.5, 3.6, 0.0),655 Column(6.25, -3.75, 3.6, 0.0),656 Column(6.25, -6.25, 3.6, 0.0),657 Column(-7.5, -6.25, 3.6, 0.0),658 Column(-10.0, -3.75, 3.6, 0.0),659 Column(-10.0, -1.25, 3.6, 0.0),660 Column(-11.25, -1.25, 3.6, 0.0),661 ], is_closed=False),662 Build(column_list=[663 Column(-11.25, -1.25, 1.2, 0.0),664 Column(-15.0, -1.25, 1.2, 0.0),665 ], is_closed=False),666 Build(column_list=[667 Column(-11.25, -1.25, 1.2, 2.4),668 Column(-15.0, -1.25, 1.2, 2.4),669 ], is_closed=False),670 Build(column_list=[671 Column(-15.0, -1.25, 3.6, 0.0),672 Column(-17.5, -1.25, 3.6, 0.0),673 Column(-26.25, 2.75, 3.6, 0.0),674 Column(-26.25, 10.0, 3.6, 0.0),675 Column(-23.75, 10.0, 3.6, 0.0),676 Column(-23.75, 7.5, 3.6, 0.0),677 Column(-15.0, 7.5, 3.6, 0.0),678 ], is_closed=False),679 Build(column_list=[680 Column(-15.0, 7.5, 1.2, 2.4),681 Column(-11.25, 7.5, 1.2, 2.4),682 ], is_closed=False),683 Build(column_list=[684 Column(-15.0, 7.5, 1.2, 0.0),685 Column(-11.25, 7.5, 1.2, 0.0),686 ], is_closed=False),687 Build(column_list=[688 Column(-11.25, 7.5, 3.6, 0.0),689 Column(-7.5, 7.5, 3.6, 0.0),690 Column(-5.0, 11.25, 3.6, 0.0),691 Column(-1.25, 11.25, 3.6, 0.0),692 Column(-1.25, 2.5, 3.6, 0.0),693 ], is_closed=False),694 Build(column_list=[695 Column(2.5, 2.5, 3.6, 0.0),696 Column(2.5, 13.75, 3.6, 0.0),697 Column(-6.25, 13.75, 3.6, 0.0),698 Column(-8.75, 10.0, 3.6, 0.0),699 Column(-12.5, 17.5, 3.6, 0.0),700 Column(-37.5, 17.5, 3.6, 0.0),701 ], is_closed=False),702 Build(column_list=[703 Column(-32.5, 15.84, 3.6, 0.0),704 Column(-30.0, 15.89, 3.6, 0.0),705 Column(-30.0, -5.0, 3.6, 0.0),706 Column(-32.5, -5.0, 3.6, 0.0),707 Column(-36.25, -3.75, 3.6, 0.0),708 Column(-38.75, -2.5, 3.6, 0.0),709 Column(-40.0, -1.25, 3.6, 0.0),710 Column(-41.25, 1.25, 3.6, 0.0),711 Column(-42.5, 5.0, 3.6, 0.0),712 Column(-42.5, 7.5, 3.6, 0.0),713 Column(-38.75, 11.25, 3.6, 0.0),714 Column(-32.5, 11.25, 3.6, 0.0),715 Column(-32.5, 15.8, 3.6, 0.0),716 ], is_closed=False),717 Build(column_list=[718 Column(-37.5, 17.5, 3.6, 0.0),719 Column(-46.25, 17.5, 3.6, 0.0),720 Column(-46.25, 7.5, 3.6, 0.0),721 Column(-45.0, 7.5, 3.6, 0.0),722 Column(-45.0, 3.75, 3.6, 0.0),723 Column(-43.75, 0.0, 3.6, 0.0),724 Column(-42.5, -2.5, 3.6, 0.0),725 Column(-40.0, -5.0, 3.6, 0.0),726 Column(-37.5, -6.25, 3.6, 0.0),727 Column(-33.75, -7.5, 3.6, 0.0),728 Column(-26.25, -7.5, 3.6, 0.0),729 Column(-26.25, -5.0, 3.6, 0.0),730 Column(-15.0, -5.0, 3.6, 0.0),731 Column(-12.5, -7.5, 3.6, 0.0),732 Column(-10.0, -8.75, 3.6, 0.0),733 Column(7.5, -8.75, 3.6, 0.0),734 Column(8.75, -7.5, 3.6, 0.0),735 Column(8.75, -2.5, 3.6, 0.0),736 Column(6.25, 0.0, 3.6, 0.0),737 Column(3.75, 0.0, 3.6, 0.0),738 Column(3.75, 2.5, 3.6, 0.0),739 Column(2.5, 2.5, 3.6, 0.0),740 ], is_closed=False),741 ])742 if num_floor == 13:743 floor = Floor(build_list=[744 Build(column_list=[745 Column(-6, 0, 3, 0),746 Column(-6, -5, 3, 0),747 Column(6, -5, 3, 0),748 Column(6, 0, 3, 0),749 Column(4, 3, 3, 0),750 ], is_closed=False),751 Build(column_list=[752 Column(-6, 0, 3, 0),753 Column(-4, 3, 3, 0),754 Column(-5, 8, 3, 0),755 Column(-6, 11, 3, 0),756 Column(-7, 13, 3, 0),757 Column(-8, 14, 3, 0),758 Column(-9, 16, 3, 0),759 Column(-10, 19, 3, 0),760 Column(-11, 23.79, 3, 0),761 Column(-11, 30, 3, 0),762 Column(-10, 35, 3, 0),763 Column(-9, 38, 3, 0),764 Column(-8, 40, 3, 0),765 Column(-7, 41, 3, 0),766 Column(-6, 43, 3, 0),767 Column(-5, 46, 3, 0),768 Column(-4, 51, 3, 0),769 Column(-4, 57, 3, 0),770 ], is_closed=False),771 Build(column_list=[772 Column(4, 3, 3, 0),773 Column(3, 8, 3, 0),774 Column(2, 11, 3, 0),775 Column(1, 13, 3, 0),776 Column(0, 14, 3, 0),777 Column(-1, 16, 3, 0),778 Column(-2, 19, 3, 0),779 Column(-3, 24, 3, 0),780 Column(-3, 30, 3, 0),781 Column(-2, 35, 3, 0),782 Column(-1, 38, 3, 0),783 Column(0, 40, 3, 0),784 Column(1, 41, 3, 0),785 Column(2, 43, 3, 0),786 Column(3, 46, 3, 0),787 Column(4, 51, 3, 0),788 Column(4, 57, 3, 0),789 ], is_closed=False),790 Build(column_list=[791 Column(4, 60, 1, 0),792 Column(4, 61, 1, 0),793 ], is_closed=False),794 Build(column_list=[795 Column(4, 64, 1, 0),796 Column(4, 65, 1, 0),797 ], is_closed=False),798 Build(column_list=[799 Column(4, 68, 1, 0),800 Column(4, 69, 1, 0),801 ], is_closed=False),802 Build(column_list=[803 Column(4, 72, 1, 0),804 Column(4, 73, 1, 0),805 ], is_closed=False),806 Build(column_list=[807 Column(4, 76, 1, 0),808 Column(4, 77, 1, 0),809 ], is_closed=False),810 Build(column_list=[811 Column(4, 80, 1, 0),812 Column(4, 81, 1, 0),813 ], is_closed=False),814 Build(column_list=[815 Column(4, 84, 1, 0),816 Column(4, 85, 1, 0),817 ], is_closed=False),818 Build(column_list=[819 Column(4, 88, 1, 0),820 Column(4, 89, 1, 0),821 ], is_closed=False),822 Build(column_list=[823 Column(-4, 60, 1, 0),824 Column(-4, 61, 1, 0),825 ], is_closed=False),826 Build(column_list=[827 Column(-4, 64, 1, 0),828 Column(-4, 65, 1, 0),829 ], is_closed=False),830 Build(column_list=[831 Column(-4, 68, 1, 0),832 Column(-4, 69, 1, 0),833 ], is_closed=False),834 Build(column_list=[835 Column(-4, 72, 1, 0),836 Column(-4, 73, 1, 0),837 ], is_closed=False),838 Build(column_list=[839 Column(-4, 76, 1, 0),840 Column(-4, 77, 1, 0),841 ], is_closed=False),842 Build(column_list=[843 Column(-4, 80, 1, 0),844 Column(-4, 81, 1, 0),845 ], is_closed=False),846 Build(column_list=[847 Column(-4, 84, 1, 0),848 Column(-4, 85, 1, 0),849 ], is_closed=False),850 Build(column_list=[851 Column(-4, 88, 1, 0),852 Column(-4, 89, 1, 0),853 ], is_closed=False),854 Build(column_list=[855 Column(4, 89, 3, 0),856 Column(7.65, 73.7, 3, 0),857 Column(15.38, 55, 3, 0),858 Column(32, 35, 3, 0),859 Column(59.63, 28.44, 3, 0),860 Column(84.71, 26, 3, 0),861 Column(108.64, 29, 3, 0),862 Column(132.79, 38, 3, 0),863 Column(146.26, 59.33, 3, 0),864 Column(154, 88, 3, 0),865 Column(156, 114.38, 3, 0),866 Column(155.78, 144.57, 3, 0),867 Column(147.42, 164.54, 3, 0),868 Column(127.45, 174.76, 3, 0),869 Column(106, 180.33, 3, 0),870 Column(78.21, 181.26, 3, 0),871 Column(57.77, 178.71, 3, 0),872 Column(28.51, 170, 3, 0),873 Column(12, 159.66, 3, 0),874 Column(2, 138, 3, 0),875 Column(-3, 122, 3, 0),876 Column(-5, 103.69, 3, 0),877 Column(-4.43, 89.33, 3, 0),878 ], is_closed=False),879 Build(column_list=[880 Column(21, 106, 3, 0),881 Column(24, 85.27, 3, 0),882 Column(33.41, 66.22, 3, 0),883 Column(55.7, 53, 3, 0),884 Column(91.24, 49.5, 3, 0),885 Column(105, 53.68, 3, 0),886 Column(123, 68.78, 3, 0),887 Column(130.26, 91.3, 3, 0),888 Column(129.56, 111.28, 3, 0),889 Column(125, 137.52, 3, 0),890 Column(110, 152, 3, 0),891 Column(85, 152, 3, 0),892 Column(61, 147.74, 3, 0),893 Column(33, 133, 3, 0),894 Column(21.79, 113, 3, 0),895 Column(20.4, 106, 3, 0),896 ], is_closed=False),897 Build(column_list=[898 Column(39.57, 97, 3, 0),899 Column(39, 93.31, 3, 0),900 Column(36.3, 90, 3, 0),901 Column(40.33, 95, 3, 0),902 Column(51.47, 93.7, 3, 0),903 Column(65, 91.78, 3, 0),904 Column(85.63, 91.39, 3, 0),905 Column(98, 91.39, 3, 0),906 Column(107.52, 94, 3, 0),907 Column(113.66, 97, 3, 0),908 Column(114.23, 95.23, 3, 0),909 Column(115.58, 92.55, 3, 0),910 ], is_closed=False),911 Build(column_list=[912 Column(40, 94.27, 3, 0),913 Column(48.78, 85.25, 3, 0),914 Column(71, 72, 3, 0),915 Column(87, 69.51, 3, 0),916 Column(102, 73.35, 3, 0),917 Column(109.24, 82.56, 3, 0),918 Column(111.55, 93.31, 3, 0),919 Column(113, 96, 3, 0),920 ], is_closed=False),921 Build(column_list=[922 Column(45.52, 94.66, 3, 0),923 Column(50.32, 87, 3, 0),924 Column(52, 94, 3, 0),925 Column(55.69, 86, 3, 0),926 Column(57.61, 92.55, 3, 0),927 Column(62.41, 85, 3, 0),928 Column(66, 92, 3, 0),929 Column(73, 85, 3, 0),930 Column(77.76, 91.59, 3, 0),931 Column(81, 84.68, 3, 0),932 Column(86.21, 91, 3, 0),933 Column(89.28, 82.56, 3, 0),934 Column(93, 90.63, 3, 0),935 Column(97.73, 85.64, 3, 0),936 Column(101, 91.2, 3, 0),937 Column(103.29, 86.4, 3, 0),938 Column(106.56, 93.51, 3, 0),939 Column(109.63, 90, 3, 0),940 Column(111.74, 97, 3, 0),941 ], is_closed=False),942 Build(column_list=[943 Column(70, 73.35, 3, 0),944 Column(73.54, 75.27, 3, 0),945 Column(76.42, 71.43, 3, 0),946 Column(81.22, 74, 3, 0),947 Column(84.67, 70, 3, 0),948 Column(92, 75.46, 3, 0),949 Column(93.31, 72, 3, 0),950 Column(97.73, 77, 3, 0),951 Column(101.76, 73.73, 3, 0),952 Column(103, 78.34, 3, 0),953 Column(104.44, 76.42, 3, 0),954 ], is_closed=False),955 Build(column_list=[956 Column(44.75, 117, 3, 0),957 Column(56.27, 123.45, 3, 0),958 Column(66, 122, 3, 0),959 Column(74.5, 118, 3, 0),960 Column(73.54, 116.54, 3, 0),961 Column(64, 117.31, 3, 0),962 Column(57, 117.31, 3, 0),963 Column(44.75, 116, 3, 0),964 ], is_closed=False),965 Build(column_list=[966 Column(62.22, 121.72, 3, 0),967 Column(62.79, 119.61, 3, 0),968 Column(64, 122, 3, 0),969 ], is_closed=False),970 Build(column_list=[971 Column(88, 118, 3, 0),972 Column(98.69, 121.34, 3, 0),973 Column(111.55, 121.53, 3, 0),974 Column(118.46, 119, 3, 0),975 Column(114.62, 116.54, 3, 0),976 Column(93, 116.35, 3, 0),977 Column(87.74, 117.69, 3, 0),978 ], is_closed=False),979 Build(column_list=[980 Column(105.21, 121.34, 3, 0),981 Column(106.75, 118, 3, 0),982 Column(107.52, 120.76, 3, 0),983 ], is_closed=False),984 Build(column_list=[985 Column(40.33, 107.71, 3, 0),986 Column(52, 101, 3, 0),987 Column(71, 102.72, 3, 0),988 Column(73.73, 108.28, 3, 0),989 ], is_closed=False),990 Build(column_list=[991 Column(93, 107, 3, 0),992 Column(106, 102.72, 3, 0),993 Column(117.69, 105.21, 3, 0),994 Column(120.57, 117.69, 3, 0),995 Column(112, 131, 3, 0),996 Column(103, 139, 3, 0),997 Column(90.43, 135.54, 3, 0),998 ], is_closed=False),999 Build(column_list=[1000 Column(53.58, 135.35, 3, 0),1001 Column(65, 138.61, 3, 0),1002 Column(74.31, 133.24, 3, 0),1003 ], is_closed=False),1004 ])1005 if num_floor == 14:1006 floor = Floor(build_list=[1007 Build(column_list=[1008 Column(-1, 5, 3, 0),1009 Column(1, 5, 3, 0),1010 Column(1, 115, 3, 0),1011 ], is_closed=False, texture_name=TEXT_ILLUSION_1),1012 # ], is_closed=False, texture_name=TEXT_2),1013 Build(column_list=[1014 Column(2, 3, 1, 0),1015 Column(5, 3, 1, 0),1016 Column(3, 5, 1, 1),1017 ], is_closed=True, texture_name=TEXT_1),1018 Build(column_list=[1019 Column(-5, 5, 3, 0),1020 Column(-2, 5, 3, 0),1021 ], is_closed=True, texture_name=TEXT_GRADIENT),1022 Build(column_list=[1023 Column(10, 5, 1, 0),1024 Column(10, 4, 1, 0),1025 ], is_closed=False),1026 Build(column_list=[1027 Column(10, 4, 2, 0),1028 Column(10, 2, 2, 0),1029 ], is_closed=False),1030 Build(column_list=[1031 Column(10, 2, 3, 0),1032 Column(10, -1, 3, 0),1033 ], is_closed=False),1034 Build(column_list=[1035 Column(-5, 0, 3, 0),1036 Column(-8, 0, 3, 0),1037 Column(-8, -3, 3, 0),1038 Column(-5, -3, 3, 0),1039 ], is_closed=True, texture_name=TEXT_2),1040 ])1041 if num_floor == 15:1042 floor = Floor(build_list=[1043 Build(column_list=[1044 Column(-3, -4, 3, 0),1045 Column(-3, 5, 3, 0),1046 Column(-8, 10, 3, 0),1047 Column(-8, 15, 3, 0),1048 Column(-3, 20, 3, 0),1049 Column(3, 20, 3, 0),1050 Column(8, 15, 3, 0),1051 Column(8, 10, 3, 0),1052 Column(2, 5, 3, 0),1053 Column(2, -4, 3, 0),1054 ], is_closed=False, texture_name=TEXT_KILL),1055 # Build(column_list=[1056 # Column(0, 10, 2, 0),1057 # Column(1.9, 10, 2, 0),1058 # ], is_closed=False, texture_name=TEXT_GRADIENT),1059 ], object_list=[1060 # Object(0, 18, 1, 0.5),1061 Toflund(x=0, y=13, angle=270),1062 ])1063 if num_floor == 16:1064 floor = Floor(build_list=[1065 Build(column_list=[1066 Column(-3, -3, 3, 0),1067 Column(-3, 5, 3, 0),1068 Column(-10, 5, 3, 0),1069 Column(-13, 8, 3, 0),1070 Column(-13, 17.76, 3, 0),1071 Column(-10, 21, 3, 0),1072 Column(28, 21, 3, 0),1073 Column(31, 18, 3, 0),1074 Column(31, 10, 3, 0),1075 Column(28, 7, 3, 0),1076 Column(6, 7, 3, 0),1077 Column(4, 5, 3, 0),1078 Column(4, -3, 3, 0),1079 ], is_closed=False, texture_name=TEXT_KILL),1080 Build(column_list=[1081 Column(0, 10, 1, 0),1082 Column(2, 10, 1, 0),1083 ], is_closed=False, texture_name=TEXT_ILLUSION_1)1084 ], object_list=[1085 Baggebo(x=0, y=13, angle=0),1086 # Toflund(x=10, y=13, angle=180)1087 ])1088 if num_floor == 17:1089 floor = Floor(build_list=[1090 Build(column_list=[1091 Column(100, 7, 3, 0),1092 Column(100, 5, 3, 0),1093 ], is_closed=False, texture_name=TEXT_MISSING),1094 Build(column_list=[1095 Column(101, 7, 100, 0),1096 Column(101, 5, 100, 0),1097 ], is_closed=False, texture_name=TEXT_MISSING),1098 ], object_list=[1099 Baggebo(x=-1, y=-1.65, angle=33),1100 Baggebo(x=-2, y=0, angle=45),1101 Baggebo(x=-2, y=1.62, angle=5),1102 Baggebo(x=-2, y=3.3804173, angle=327),1103 Baggebo(x=-1, y=4, angle=300),1104 Baggebo(x=1, y=4.5077743, angle=284),1105 Baggebo(x=3.3453167000000006, y=4, angle=257),1106 Baggebo(x=6, y=3, angle=201),1107 Baggebo(x=7, y=1, angle=180),1108 Baggebo(x=7.419907000000002, y=-1, angle=158),1109 Baggebo(x=6.566336700000002, y=-2.6751003000000018, angle=138),1110 Baggebo(x=5, y=-4, angle=117),1111 Baggebo(x=3, y=-4, angle=90),1112 Baggebo(x=1, y=-4, angle=74),1113 Baggebo(x=-0.5843277000000006, y=-3, angle=51),1114 Toflund(x=4, y=-1, angle=135),1115 Baggebo(x=-20.90628036126407, y=-13.023551086947089, angle=74),1116 Baggebo(x=-20.56390635653087, y=-11.311681063281087, angle=79),1117 Baggebo(x=-20.36418818710317, y=-9.942185044348287, angle=82),1118 Baggebo(x=-20.05034534943107, y=-7.973534517132385, angle=81),1119 Baggebo(x=-19.70797134469787, y=-6.033415156977584, angle=81),1120 Baggebo(x=-19.39412850702577, y=-4.578325636861482, angle=82),1121 Baggebo(x=-19.080285669353668, y=-3.2088296179286813, angle=72),1122 Baggebo(x=-18.76644283168157, y=-2.0390517684235805, angle=82),1123 Baggebo(x=-18.509662328131668, y=-0.6410245824296792, angle=78),1124 Baggebo(x=-18.309944158703967, y=0.7570026035642219, angle=292),1125 Baggebo(x=-17.739320817481968, y=-1.0119297542239796, angle=288),1126 Baggebo(x=-17.31135331156547, y=-2.4670192743400805, angle=284),1127 Baggebo(x=-16.854854638587867, y=-4.321545133311582, angle=283),1128 Baggebo(x=-16.483949466793568, y=-6.147539825221983, angle=291),1129 Baggebo(x=-15.970388459693767, y=-7.7452851806435845, angle=278),1130 Baggebo(x=-15.542420953777267, y=-9.856591543164987, angle=284),1131 Baggebo(x=-15.171515781982967, y=-11.397274564464388, angle=284),1132 Baggebo(x=-14.829141777249765, y=-12.852364084580488, angle=288),1133 Baggebo(x=-15.913326125571567, y=-12.76677058339719, angle=148),1134 Baggebo(x=-17.796383151604168, y=-11.568461566830988, angle=152),1135 Baggebo(x=-19.194410337598068, y=-10.741057722059088, angle=149),1136 Baggebo(x=-20.44978168828647, y=-9.942185044348287, angle=146),1137 Baggebo(x=-21.70515303897487, y=-9.000656531331986, angle=137),1138 Baggebo(x=-22.53255688374677, y=-8.372970855987786, angle=139),1139 Baggebo(x=-23.388491895579772, y=-7.631160512399185, angle=138),1140 Baggebo(x=-24.330020408596074, y=-6.803756667627284, angle=150),1141 Baggebo(x=-25.157424253367974, y=-6.261664493466384, angle=135),1142 Baggebo(x=-25.756578761651074, y=-5.748103486366583, angle=141),1143 Baggebo(x=-25.300080088673475, y=-5.234542479266783, angle=4),1144 Baggebo(x=-22.703743886113372, y=-4.949230808655782, angle=3),1145 Baggebo(x=-20.56390635653087, y=-4.8065749733502825, angle=10),1146 Baggebo(x=-18.68084933049827, y=-4.521263302739282, angle=7),1147 Baggebo(x=-17.511071480993166, y=-4.378607467433782, angle=3),1148 Baggebo(x=-15.742139123204966, y=-4.264482799189382, angle=7),1149 Baggebo(x=-13.944675598355666, y=-4.007702295639482, angle=8),1150 Baggebo(x=-12.632241913545064, y=-3.836515293272882, angle=6),1151 Baggebo(x=-11.776306901712063, y=-3.750921792089582, angle=9),1152 Baggebo(x=-10.777716054573562, y=-3.5512036226618817, angle=217),1153 Baggebo(x=-11.890431569956464, y=-4.435669801555982, angle=217),1154 Baggebo(x=-13.516708092439165, y=-5.691041152244384, angle=222),1155 Baggebo(x=-14.629423607822066, y=-6.7181631664439845, angle=222),1156 Baggebo(x=-15.913326125571567, y=-7.973534517132385, angle=236),1157 Baggebo(x=-16.769261137404566, y=-9.171843533698587, angle=229),1158 Baggebo(x=-17.767851984543068, y=-10.256027882020387, angle=243),1159 Baggebo(x=-18.70938049755937, y=-11.368743397403287, angle=231),1160 Baggebo(x=-19.62237784351457, y=-12.367334244541789, angle=227),1161 Baggebo(x=-20.44978168828647, y=-13.365925091680289, angle=223),1162 Baggebo(x=-21.19159203187507, y=-14.07920426820779, angle=65),1163 ])1164 if num_floor == 18:1165 floor = Floor(build_list=[1166 Build(column_list=[1167 Column(0, 100, 1, 0),1168 Column(100, 100, 100, 0),1169 ], is_closed=False, texture_name=TEXT_MISSING),1170 Build(column_list=[1171 Column(16, 5, 3, 0),1172 Column(15, 5, 3, 0),1173 Column(15, -5, 3, 0),1174 Column(16, -5, 3, 0),1175 ], is_closed=False, texture_name=TEXT_MISSING),1176 ], object_list=[1177 Baggebo(x=0.01, y=5.63, angle=13),1178 Baggebo(x=1.41, y=5.66, angle=353),1179 Baggebo(x=3.52, y=5.38, angle=348),1180 Baggebo(x=5.03, y=4.78, angle=327),1181 Baggebo(x=6.29, y=3.61, angle=287),1182 Baggebo(x=6.75, y=1.52, angle=279),1183 Baggebo(x=6.8, y=-0.93, angle=260),1184 Baggebo(x=6.0, y=-3.1, angle=247),1185 Baggebo(x=5.15, y=-4.21, angle=207),1186 Baggebo(x=3.04, y=-5.1, angle=197),1187 Baggebo(x=0.73, y=-5.61, angle=190),1188 Baggebo(x=-1.13, y=-5.81, angle=171),1189 Baggebo(x=-3.07, y=-5.3, angle=138),1190 Baggebo(x=-4.3, y=-3.67, angle=118),1191 Baggebo(x=-4.95, y=-1.99, angle=105),1192 Baggebo(x=-5.32, y=0.24, angle=75),1193 Baggebo(x=-4.55, y=2.52, angle=59),1194 Baggebo(x=-3.24, y=4.23, angle=42),1195 Baggebo(x=-1.96, y=5.46, angle=23),1196 Baggebo(x=0.21, y=6.46, angle=3),1197 Baggebo(x=2.04, y=6.52, angle=354),1198 Baggebo(x=4.61, y=6.0, angle=337),1199 Baggebo(x=5.63, y=5.52, angle=321),1200 Baggebo(x=7.29, y=3.86, angle=291),1201 Baggebo(x=7.83, y=1.78, angle=278),1202 Baggebo(x=7.97, y=-0.39, angle=260),1203 Baggebo(x=7.43, y=-2.76, angle=250),1204 Baggebo(x=6.2, y=-4.95, angle=212),1205 Baggebo(x=3.89, y=-6.15, angle=198),1206 Baggebo(x=1.72, y=-6.66, angle=190),1207 Baggebo(x=-1.1, y=-6.89, angle=180),1208 Baggebo(x=-3.3, y=-6.64, angle=155),1209 Baggebo(x=-4.5, y=-5.72, angle=131),1210 Baggebo(x=-5.64, y=-3.93, angle=110),1211 Baggebo(x=-6.15, y=-2.38, angle=94),1212 Baggebo(x=-6.29, y=-0.19, angle=90),1213 Baggebo(x=-5.98, y=1.89, angle=59),1214 Baggebo(x=-5.07, y=3.55, angle=55),1215 Baggebo(x=-3.61, y=5.23, angle=36),1216 Baggebo(x=-1.79, y=6.63, angle=23),1217 Baggebo(x=0.04, y=7.26, angle=7),1218 Baggebo(x=3.49, y=7.37, angle=349),1219 Baggebo(x=5.38, y=6.97, angle=323),1220 Baggebo(x=7.2, y=5.72, angle=309),1221 Baggebo(x=8.29, y=4.12, angle=288),1222 Baggebo(x=8.94, y=1.44, angle=273),1223 Baggebo(x=9.0, y=-0.33, angle=267),1224 Baggebo(x=8.57, y=-3.04, angle=249),1225 Baggebo(x=7.17, y=-5.15, angle=226),1226 Baggebo(x=4.98, y=-7.01, angle=205),1227 Baggebo(x=1.27, y=-8.12, angle=184),1228 Baggebo(x=-2.67, y=-8.35, angle=164),1229 Baggebo(x=-5.41, y=-7.06, angle=132),1230 Baggebo(x=-6.49, y=-5.44, angle=105),1231 Baggebo(x=-7.09, y=-2.67, angle=98),1232 Baggebo(x=-7.32, y=0.33, angle=75),1233 Baggebo(x=-6.69, y=2.44, angle=65),1234 Baggebo(x=-5.27, y=4.83, angle=40),1235 Baggebo(x=-3.3, y=6.43, angle=35),1236 Baggebo(x=-0.64, y=8.03, angle=12),1237 Baggebo(x=1.44, y=8.37, angle=2),1238 Baggebo(x=5.38, y=8.14, angle=344),1239 Baggebo(x=8.71, y=6.77, angle=306),1240 Baggebo(x=10.08, y=4.41, angle=284),1241 Baggebo(x=10.68, y=1.3, angle=270),1242 Baggebo(x=10.54, y=-0.93, angle=255),1243 Baggebo(x=9.68, y=-3.93, angle=243),1244 Baggebo(x=8.69, y=-5.95, angle=229),1245 Baggebo(x=7.51, y=-7.17, angle=218),1246 Baggebo(x=5.61, y=-7.83, angle=213),1247 Baggebo(x=3.72, y=-8.76, angle=198),1248 Baggebo(x=1.71, y=-9.28, angle=183),1249 Baggebo(x=-0.43, y=-9.42, angle=180),1250 Baggebo(x=-3.22, y=-9.28, angle=169),1251 Baggebo(x=-5.99, y=-8.52, angle=147),1252 Baggebo(x=-7.81, y=-6.59, angle=128),1253 Baggebo(x=-8.47, y=-4.72, angle=92),1254 Baggebo(x=-8.71, y=-2.31, angle=91),1255 Baggebo(x=-8.64, y=0.28, angle=77),1256 Baggebo(x=-7.75, y=3.01, angle=54),1257 Baggebo(x=-5.78, y=5.49, angle=48),1258 Baggebo(x=-3.53, y=7.5, angle=27),1259 Baggebo(x=-0.63, y=8.81, angle=6),1260 Baggebo(x=3.2, y=9.02, angle=354),1261 Baggebo(x=5.96, y=8.53, angle=343),1262 Baggebo(x=9.34, y=7.53, angle=320),1263 Baggebo(x=11.31, y=4.8, angle=282),1264 Baggebo(x=11.76, y=1.56, angle=274),1265 Baggebo(x=11.83, y=-0.93, angle=261),1266 Baggebo(x=10.93, y=-4.31, angle=243),1267 Baggebo(x=9.69, y=-6.48, angle=227),1268 Baggebo(x=7.0, y=-8.94, angle=205),1269 Baggebo(x=4.13, y=-10.01, angle=193),1270 Baggebo(x=-0.01, y=-10.63, angle=181),1271 Baggebo(x=-4.6, y=-10.32, angle=163),1272 Baggebo(x=-7.37, y=-9.25, angle=128),1273 Baggebo(x=-9.37, y=-6.52, angle=116),1274 Baggebo(x=-10.02, y=-4.72, angle=98),1275 Baggebo(x=-10.3, y=-1.69, angle=92),1276 Baggebo(x=-9.85, y=1.39, angle=65),1277 Baggebo(x=-8.82, y=3.6, angle=57),1278 Baggebo(x=-6.99, y=5.7, angle=36),1279 Baggebo(x=-5.43, y=7.22, angle=38),1280 Baggebo(x=-2.91, y=8.91, angle=12),1281 ])1282 if num_floor == 19:1283 floor = Floor(build_list=[1284 Build(column_list=[1285 Column(5.54, 0, 3, 0),1286 Column(0, -6.53, 3, 0),1287 Column(-4.59, 0, 3, 0),1288 Column(-1.49, 0, 3, 0),1289 Column(-1.52, 8.34, 3, 0),1290 Column(-4.69, 8.37, 3, 0),1291 Column(-4.66, 11.42, 3, 0),1292 Column(-1.61, 11.45, 3, 0),1293 Column(-1.36, 28, 3, 0),1294 Column(15, 27.4, 3, 0),1295 Column(14.54, 29.67, 3, 0),1296 Column(2.31, 30, 3, 0),1297 Column(3, 41, 3, 0),1298 Column(25.55, 40.49, 3, 0),1299 Column(21, 26, 3, 0),1300 Column(4.39, 26, 3, 0),1301 Column(5, 21, 3, 0),1302 Column(31.67, 22, 3, 0),1303 Column(32.34, 18.6, 3, 0),1304 Column(41.7, 18, 3, 0),1305 Column(41, 1, 3, 0),1306 Column(32, -6.66, 3, 0),1307 ], is_closed=False, texture_name=TEXT_STONE),1308 Build(column_list=[1309 Column(24.57, -6.66, 3, 0),1310 Column(16.5, 0.49, 3, 0),1311 Column(17, 15, 3, 0),1312 Column(26.47, 18, 3, 0),1313 Column(4, 18, 3, 0),1314 Column(3, 12, 3, 0),1315 Column(6, 12, 3, 0),1316 Column(6, 9, 3, 0),1317 Column(3, 8.54, 3, 0),1318 Column(3, 0, 3, 0),1319 Column(5.5, 0, 3, 0),1320 ], is_closed=False, texture_name=TEXT_STONE),1321 Build(column_list=[1322 Column(24.51, -6.68, 3, 0),1323 Column(24.51, -14, 3, 0),1324 Column(81, -14, 3, 0),1325 Column(79.41, 28, 3, 0),1326 Column(66.44, 51.49, 3, 0),1327 Column(45, 60, 3, 0),1328 Column(4, 62.31, 3, 0),1329 ], is_closed=False, texture_name=TEXT_STONE),1330 Build(column_list=[1331 Column(32, -6, 3, 0),1332 Column(32, -9, 3, 0),1333 Column(63.36, -8.65, 3, 0),1334 Column(61, 29, 3, 0),1335 Column(42.38, 43.53, 3, 0),1336 Column(-7.66, 47.39, 3, 0),1337 Column(-7.45, 27, 3, 0),1338 Column(-26, 26.59, 3, 0),1339 ], is_closed=False, texture_name=TEXT_STONE),1340 Build(column_list=[1341 Column(4, 62.35, 3, 0),1342 Column(-40.38, 61.37, 3, 0),1343 Column(-35, 26.59, 3, 0),1344 Column(-35.4, 19.44, 3, 0),1345 Column(-40, 29.41, 3, 0),1346 ], is_closed=False, texture_name=TEXT_STONE),1347 Build(column_list=[1348 Column(-52.47, 29.64, 3, 0),1349 Column(-51.59, -21, 3, 0),1350 Column(-42.42, -32, 3, 0),1351 ], is_closed=False, texture_name=TEXT_STONE),1352 Build(column_list=[1353 Column(-24, -32, 3, 0),1354 Column(-10.43, -23.54, 3, 0),1355 Column(-9, 23.52, 3, 0),1356 Column(-24.32, 24, 3, 0),1357 Column(-27, 19.33, 3, 0),1358 Column(-26, 27, 3, 0),1359 ], is_closed=False, texture_name=TEXT_STONE),1360 Build(column_list=[1361 Column(-42, -18.43, 3, 0),1362 Column(-33.63, -11.61, 3, 0),1363 ], is_closed=False, texture_name=TEXT_STONE),1364 Build(column_list=[1365 Column(-30, -20, 3, 0),1366 Column(-21, -14, 3, 0),1367 ], is_closed=False, texture_name=TEXT_STONE),1368 Build(column_list=[1369 Column(-42, -32, 3, 0),1370 Column(-42, -52, 3, 0),1371 Column(-76, -51, 3, 0),1372 Column(-71, 36.59, 3, 0),1373 Column(-53, 30, 3, 0),1374 ], is_closed=False, texture_name=TEXT_STONE),1375 Build(column_list=[1376 Column(-24.55, -32, 3, 0),1377 Column(-23.6, -92.38, 3, 0),1378 ], is_closed=False, texture_name=TEXT_STONE),1379 Build(column_list=[1380 Column(-41.53, -93, 3, 0),1381 Column(-42, -66.36, 3, 0),1382 Column(-89, -67.31, 3, 0),1383 Column(-89.43, 46, 3, 0),1384 Column(-48, 49.6, 3, 0),1385 Column(-40, 29.61, 3, 0),1386 ], is_closed=False, texture_name=TEXT_STONE),1387 Build(column_list=[1388 Column(-41, -93, 3, 0),1389 Column(-60, -94, 3, 0),1390 Column(-33, -135, 3, 0),1391 Column(-5, -91, 3, 0),1392 Column(-24, -92, 3, 0),1393 ], is_closed=False, texture_name=TEXT_STONE),1394 ], object_list=[1395 Baggebo(x=-4.04, y=10.77, angle=331),1396 Baggebo(x=5.04, y=11.37, angle=220),1397 Baggebo(x=-0.24, y=26.46, angle=271),1398 Baggebo(x=0.84, y=26.58, angle=267),1399 Baggebo(x=1.98, y=26.69, angle=268),1400 Baggebo(x=3.04, y=26.63, angle=260),1401 Baggebo(x=19.04, y=8.18, angle=29),1402 Baggebo(x=19.84, y=6.06, angle=48),1403 Baggebo(x=21.01, y=4.03, angle=63),1404 Baggebo(x=22.12, y=2.32, angle=71),1405 Baggebo(x=23.74, y=0.7, angle=83),1406 Baggebo(x=25.1, y=-0.21, angle=84),1407 Baggebo(x=27.78, y=-1.07, angle=115),1408 Baggebo(x=30.0, y=-0.21, angle=117),1409 Baggebo(x=32.99, y=1.1, angle=128),1410 Baggebo(x=35.41, y=3.17, angle=125),1411 Baggebo(x=37.74, y=4.99, angle=138),1412 Baggebo(x=37.89, y=7.88, angle=160),1413 Baggebo(x=38.6, y=10.45, angle=163),1414 Baggebo(x=18.73, y=10.71, angle=11),1415 Baggebo(x=-9.54, y=44.65, angle=109),1416 Baggebo(x=-10.16, y=43.37, angle=117),1417 Baggebo(x=-11.82, y=43.65, angle=93),1418 Baggebo(x=-10.38, y=45.81, angle=110),1419 Baggebo(x=-10.32, y=38.7, angle=103),1420 Baggebo(x=-11.55, y=40.03, angle=109),1421 Baggebo(x=-10.71, y=41.76, angle=118),1422 Baggebo(x=-9.1, y=39.64, angle=98),1423 Baggebo(x=-8.32, y=40.53, angle=112),1424 Baggebo(x=-8.82, y=42.48, angle=100),1425 Baggebo(x=-12.77, y=40.81, angle=101),1426 Baggebo(x=-13.99, y=38.42, angle=101),1427 Baggebo(x=-12.6, y=37.64, angle=106),1428 Baggebo(x=-11.05, y=37.14, angle=100),1429 Baggebo(x=-8.77, y=36.53, angle=98),1430 Baggebo(x=-10.38, y=35.08, angle=103),1431 Baggebo(x=-13.38, y=33.86, angle=99),1432 Baggebo(x=-13.38, y=35.97, angle=93),1433 Baggebo(x=-14.83, y=35.58, angle=94),1434 Baggebo(x=-16.1, y=36.42, angle=80),1435 Baggebo(x=-15.44, y=32.86, angle=98),1436 Baggebo(x=-17.72, y=34.14, angle=82),1437 Baggebo(x=-12.88, y=31.3, angle=101),1438 Baggebo(x=-10.32, y=32.08, angle=98),1439 Baggebo(x=-9.15, y=33.3, angle=100),1440 Baggebo(x=-11.93, y=33.36, angle=89),1441 Baggebo(x=-41.9, y=26.13, angle=281),1442 Baggebo(x=-43.96, y=25.74, angle=281),1443 Baggebo(x=-46.68, y=26.3, angle=279),1444 Baggebo(x=-47.02, y=24.52, angle=283),1445 Baggebo(x=-45.29, y=24.52, angle=282),1446 Baggebo(x=-47.02, y=22.41, angle=291),1447 Baggebo(x=-48.13, y=22.52, angle=287),1448 Baggebo(x=-48.63, y=24.74, angle=288),1449 Baggebo(x=-50.02, y=22.8, angle=293),1450 Baggebo(x=-48.8, y=26.41, angle=295),1451 Baggebo(x=-42.85, y=23.57, angle=282),1452 Baggebo(x=-44.91, y=22.24, angle=298),1453 Baggebo(x=-40.46, y=24.8, angle=267),1454 Baggebo(x=-23.89, y=20.46, angle=265),1455 Baggebo(x=-20.83, y=20.74, angle=253),1456 Baggebo(x=-21.94, y=21.41, angle=260),1457 Baggebo(x=-21.55, y=18.79, angle=253),1458 Baggebo(x=-17.38, y=20.02, angle=252),1459 Baggebo(x=-18.72, y=18.74, angle=255),1460 Baggebo(x=-18.5, y=22.41, angle=253),1461 Baggebo(x=-13.83, y=20.63, angle=254),1462 Baggebo(x=-14.77, y=17.57, angle=248),1463 Baggebo(x=-11.88, y=17.51, angle=256),1464 ])1465 if num_floor == 20:1466 floor = Floor(build_list=[1467 Build(column_list=[1468 Column(-4, 6, 3, 0),1469 Column(-10, 6, 3, 0),1470 Column(-8, -8, 3, 0),1471 Column(8, -8, 3, 0),1472 Column(10, 6, 3, 0),1473 Column(4, 6, 3, 0),1474 Column(4, 21.22, 3, 0),1475 Column(10, 22, 3, 0),1476 Column(10, 28, 3, 0),1477 Column(4, 29.22, 3, 0),1478 ], is_closed=False, texture_name=TEXT_STONE),1479 Build(column_list=[1480 Column(-4, 6, 3, 0),1481 Column(-4, 20.94, 3, 0),1482 Column(-10, 23.32, 3, 0),1483 Column(-10, 28, 3, 0),1484 Column(-4, 30, 3, 0),1485 Column(-4, 78.84, 3, 0),1486 Column(26, 78.74, 3, 0),1487 Column(26, 86, 3, 0),1488 Column(37.14, 86, 3, 0),1489 Column(38, 68, 3, 0),1490 Column(26.94, 68, 3, 0),1491 Column(26, 75.34, 3, 0),1492 Column(4, 76, 3, 0),1493 Column(4.62, 44, 3, 0),1494 Column(38.9, 44, 3, 0),1495 Column(40, 32, 3, 0),1496 Column(60, 32, 3, 0),1497 Column(58.66, 0, 3, 0),1498 ], is_closed=False, texture_name=TEXT_STONE),1499 Build(column_list=[1500 Column(59.12, -8, 3, 0),1501 Column(15.1, -7.0, 3, 0),1502 Column(15.28, 32.98, 3, 0),1503 Column(4, 34, 3, 0),1504 Column(4, 29.3, 3, 0),1505 ], is_closed=False, texture_name=TEXT_STONE),1506 Build(column_list=[1507 Column(59.02, -8, 3, 0),1508 Column(85.22, -8, 3, 0),1509 Column(110, 17.0, 3, 0),1510 Column(104, 72, 3, 0),1511 Column(50, 116, 3, 0),1512 Column(-12.98, 116, 3, 0),1513 Column(-48.6, 101.36, 3, 0),1514 Column(-50, 68, 3, 0),1515 Column(-36, 62.84, 3, 0),1516 ], is_closed=False, texture_name=TEXT_STONE),1517 Build(column_list=[1518 Column(-26, 63.38, 3, 0),1519 Column(-9.22, 74.66, 3, 0),1520 Column(-9.04, 94, 3, 0),1521 Column(18, 96.88, 3, 0),1522 Column(56, 78, 3, 0),1523 Column(80, 32.76, 3, 0),1524 Column(72, 10, 3, 0),1525 Column(58, 0, 3, 0),1526 ], is_closed=False, texture_name=TEXT_STONE),1527 Build(column_list=[1528 Column(-36, 62.74, 3, 0),1529 Column(-36, 56, 3, 0),1530 Column(-39.02, 62, 3, 0),1531 Column(-55.32, 62, 3, 0),1532 Column(-53.24, 17.16, 3, 0),1533 Column(-37.22, 11.12, 3, 0),1534 Column(-20, -8, 3, 0),1535 Column(-10.88, -8, 3, 0),1536 Column(-12.94, 2, 3, 0),1537 Column(-28.74, 14, 3, 0),1538 Column(-14.98, 23.2, 3, 0),1539 Column(-8, 63.06, 3, 0),1540 Column(-22, 61.16, 3, 0),1541 Column(-27.0, 56, 3, 0),1542 Column(-26, 64, 3, 0),1543 ], is_closed=False, texture_name=TEXT_STONE),1544 # Build(column_list=[1545 # Column(-23, 3, 3, 0),1546 # Column(-23, 0, 3, 0),1547 # Column(-20, 0, 3, 0),1548 # Column(-20, 3, 3, 0),1549 # ], is_closed=True, texture_name=TEXT_FIN),1550 ], object_list=[1551 End_lvl_crystal(-23, 3, next_level_number=21),1552 Baggebo(x=-7.82, y=26.56, angle=8),1553 Baggebo(x=-7.82, y=25.1, angle=354),1554 Baggebo(x=8.14, y=26.56, angle=180),1555 Baggebo(x=8.69, y=24.79, angle=188),1556 Baggebo(x=-2.25, y=44.67, angle=277),1557 Baggebo(x=-1.27, y=45.09, angle=274),1558 Baggebo(x=0.62, y=45.34, angle=257),1559 Baggebo(x=2.03, y=45.34, angle=266),1560 Baggebo(x=18.18, y=24.37, angle=41),1561 Baggebo(x=20.18, y=20.75, angle=60),1562 Baggebo(x=22.77, y=16.3, angle=75),1563 Baggebo(x=26.62, y=13.94, angle=83),1564 Baggebo(x=32.25, y=12.16, angle=104),1565 Baggebo(x=37.13, y=14.23, angle=115),1566 Baggebo(x=42.53, y=16.38, angle=141),1567 Baggebo(x=42.75, y=21.93, angle=146),1568 Baggebo(x=45.05, y=27.11, angle=160),1569 Baggebo(x=53.85, y=2.98, angle=141),1570 Baggebo(x=49.41, y=1.06, angle=134),1571 Baggebo(x=44.68, y=-1.31, angle=215),1572 Baggebo(x=38.98, y=-2.79, angle=94),1573 Baggebo(x=-11.27, y=90.75, angle=87),1574 Baggebo(x=-12.49, y=88.63, angle=98),1575 Baggebo(x=-13.71, y=90.02, angle=83),1576 Baggebo(x=-15.34, y=86.68, angle=104),1577 Baggebo(x=-17.29, y=88.47, angle=83),1578 Baggebo(x=-12.25, y=82.44, angle=96),1579 Baggebo(x=-12.98, y=84.97, angle=96),1580 Baggebo(x=-17.13, y=83.01, angle=87),1581 Baggebo(x=-18.76, y=85.29, angle=84),1582 Baggebo(x=-15.91, y=81.06, angle=87),1583 Baggebo(x=-13.63, y=80.9, angle=96),1584 Baggebo(x=-15.26, y=84.48, angle=89),1585 Baggebo(x=-17.05, y=78.7, angle=107),1586 Baggebo(x=-20.23, y=80.57, angle=90),1587 Baggebo(x=-40.06, y=59.65, angle=269),1588 Baggebo(x=-42.48, y=60.28, angle=271),1589 Baggebo(x=-44.9, y=59.56, angle=278),1590 Baggebo(x=-46.24, y=59.65, angle=291),1591 Baggebo(x=-48.12, y=60.28, angle=275),1592 Baggebo(x=-49.73, y=60.1, angle=269),1593 Baggebo(x=-51.7, y=59.83, angle=282),1594 Baggebo(x=-20.9, y=59.3, angle=260),1595 Baggebo(x=-19.11, y=59.74, angle=265),1596 Baggebo(x=-16.69, y=60.28, angle=250),1597 Baggebo(x=-14.0, y=60.46, angle=247),1598 Baggebo(x=-11.05, y=60.73, angle=252),1599 Baggebo(x=-9.8, y=60.1, angle=243),1600 Baggebo(x=-15.89, y=-3.58, angle=315),1601 Baggebo(x=-17.33, y=-2.08, angle=141),1602 ])1603 if num_floor == 21:1604 floor = Floor(build_list=[1605 Build(column_list=[1606 Column(-4, -3, 3, 0),1607 Column(-4, 31, 3, 0),1608 Column(4, 31, 3, 0),1609 Column(4, -3, 3, 0),1610 ], is_closed=False, texture_name=TEXT_SAUSAGE),1611 ], object_list=[1612 End_lvl_crystal(0, 22, next_level_number=22),1613 End_lvl_crystal(0, 21, next_level_number=22),1614 End_lvl_crystal(0, 20, next_level_number=22),1615 End_lvl_crystal(0, 19, next_level_number=22),1616 ], ground_color=(200, 50, 50), sky_text_num=2)1617 if num_floor == 22:1618 floor = Floor(build_list=[1619 Build(column_list=[1620 Column(-3, 6, 3, 0),1621 Column(3, 6, 3, 0),1622 Column(10, 1, 3, 0),1623 Column(6, -17, 3, 0),1624 Column(1, -23, 3, 0),1625 ], is_closed=False, texture_name=TEXT_ILLUSION_2),1626 Build(column_list=[1627 Column(-1, -23, 3, 0),1628 Column(-6, -17, 3, 0),1629 Column(-10, 1, 3, 0),1630 Column(-3, 6, 3, 0),1631 ], is_closed=False, texture_name=TEXT_ILLUSION_2),1632 ], object_list=[1633 End_lvl_crystal(0, 22, next_level_number=21),1634 ], ground_color=(50, 60, 40), sky_text_num=3)1635 if num_floor == 100:1636 floor = Floor(build_list=[1637 Build(column_list=[1638 Column(4, -4, 3, 0),1639 Column(4, -8, 3, 0),1640 Column(-8, -8, 3, 0),1641 Column(-8, 4, 3, 0),1642 Column(4, 4, 3, 0),1643 Column(4, 0, 3, 0),1644 Column(20, 0, 3, 0),1645 Column(20, 4, 3, 0),1646 Column(24, 4, 3, 0),1647 ], is_closed=False, texture_name=TEXT_WALL1),1648 Build(column_list=[1649 Column(28, 4, 3, 0),1650 Column(36, 4, 3, 0),1651 Column(36, -8, 3, 0),1652 Column(20, -8, 3, 0),1653 Column(20, -4, 3, 0),1654 Column(4, -4, 3, 0),1655 ], is_closed=False, texture_name=TEXT_WALL1),1656 Build(column_list=[1657 Column(24, 4, 3, 0),1658 Column(24, 12, 3, 0),1659 Column(4, 12, 3, 0),1660 Column(4, 8, 3, 0),1661 Column(-12, 8, 3, 0),1662 Column(-12, 20, 3, 0),1663 Column(-4, 20, 3, 0),1664 ], is_closed=False, texture_name=TEXT_WALL1),1665 Build(column_list=[1666 Column(0, 20, 3, 0),1667 Column(4, 20, 3, 0),1668 Column(4, 16, 3, 0),1669 Column(28, 16, 3, 0),1670 Column(28, 4, 3, 0),1671 ], is_closed=False, texture_name=TEXT_WALL1),1672 Build(column_list=[1673 Column(-4, 20, 3, 0),1674 Column(-4, 32, 3, 0),1675 Column(20, 32, 3, 0),1676 Column(20, 36, 3, 0),1677 Column(24, 36, 3, 0),1678 ], is_closed=False, texture_name=TEXT_WALL1),1679 Build(column_list=[1680 Column(28, 36, 3, 0),1681 Column(36, 36, 3, 0),1682 Column(36, 24, 3, 0),1683 Column(20, 24, 3, 0),1684 Column(20, 28, 3, 0),1685 Column(0, 28, 3, 0),1686 Column(0, 20, 3, 0),1687 ], is_closed=False, texture_name=TEXT_WALL1),1688 Build(column_list=[1689 Column(24, 36, 3, 0),1690 Column(24, 44, 3, 0),1691 Column(4, 44, 3, 0),1692 Column(4, 40, 3, 0),1693 Column(-12, 40, 3, 0),1694 Column(-12, 52, 3, 0),1695 Column(-4, 52, 3, 0),1696 ], is_closed=False, texture_name=TEXT_WALL1),1697 Build(column_list=[1698 Column(0, 52, 3, 0),1699 Column(4, 52, 3, 0),1700 Column(4, 48, 3, 0),1701 Column(28, 48, 3, 0),1702 Column(28, 36, 3, 0),1703 ], is_closed=False, texture_name=TEXT_WALL1),1704 Build(column_list=[1705 Column(-4, 52, 3, 0),1706 Column(-4, 64, 3, 0),1707 Column(-8, 64, 3, 0),1708 Column(-16, 72, 3, 0),1709 Column(-16, 84, 3, 0),1710 Column(-8, 92, 3, 0),1711 Column(4, 92, 3, 0),1712 Column(12, 84, 3, 0),1713 Column(12, 72, 3, 0),1714 Column(4, 64, 3, 0),1715 Column(0, 64, 3, 0),1716 Column(0, 52, 3, 0),1717 ], is_closed=False, texture_name=TEXT_WALL1),1718 Build(column_list=[1719 Column(33, 4, 3, 0),1720 Column(33, -8, 3, 0),1721 ], is_closed=False, texture_name=TEXT_TUTOR_1),1722 Build(column_list=[1723 Column(-9, 8, 3, 0),1724 Column(-9, 20, 3, 0),1725 ], is_closed=False, texture_name=TEXT_TUTOR_2),1726 Build(column_list=[1727 Column(33, 36, 3, 0),1728 Column(33, 24, 3, 0),1729 ], is_closed=False, texture_name=TEXT_TUTOR_3),1730 Build(column_list=[1731 Column(-9, 40, 3, 0),1732 Column(-9, 52, 3, 0),1733 ], is_closed=False, texture_name=TEXT_TUTOR_4),1734 ], object_list=[1735 End_lvl_crystal(-2, 79, 101)1736 ], ground_color=(20, 20, 40), sky_text_num=4)1737 if num_floor == 101:1738 floor = Floor(build_list=[1739 Build(column_list=[1740 Column(0, -4, 6, 0),1741 Column(-12, 2, 6, 0),1742 Column(-10, 4, 6, 0),1743 Column(-12, 6, 6, 0),1744 Column(-10, 12, 6, 0),1745 Column(-10, 50, 6, 0),1746 Column(-14, 54, 6, 0),1747 Column(-8, 56, 6, 0),1748 Column(-8, 76, 6, 0),1749 Column(-11, 79, 6, 0),1750 Column(-10, 80, 6, 0),1751 Column(-12, 83, 6, 0),1752 Column(-12, 335, 6, 0),1753 Column(-27, 341.69, 6, 0),1754 Column(-24, 346.36, 6, 0),1755 Column(-30, 364.53, 6, 0),1756 Column(-24.69, 366, 6, 0),1757 Column(-12.57, 381.38, 6, 0),1758 Column(-8, 377, 6, 0),1759 Column(0, 384, 6, 0),1760 ], is_closed=False, texture_name=TEXT_WALL2),1761 Build(column_list=[1762 Column(0, -4, 6, 0),1763 Column(12, 2, 6, 0),1764 Column(10, 4, 6, 0),1765 Column(12, 6, 6, 0),1766 Column(10, 12, 6, 0),1767 Column(10, 50, 6, 0),1768 Column(14, 54, 6, 0),1769 Column(8, 56, 6, 0),1770 Column(8, 76, 6, 0),1771 Column(11, 79, 6, 0),1772 Column(10, 80, 6, 0),1773 Column(12, 83, 6, 0),1774 Column(12, 335, 6, 0),1775 Column(27, 341.69, 6, 0),1776 Column(24, 346.36, 6, 0),1777 Column(30, 364.53, 6, 0),1778 Column(24.69, 366, 6, 0),1779 Column(12.57, 381.38, 6, 0),1780 Column(8, 377, 6, 0),1781 Column(0, 384, 6, 0),1782 ], is_closed=False, texture_name=TEXT_WALL2),1783 Build(column_list=[1784 Column(-11, 367, 29, 0),1785 Column(-6, 367, 29, 0),1786 ], is_closed=False, texture_name=TEXT_WHITE),1787 Build(column_list=[1788 Column(6, 367, 29, 0),1789 Column(11, 367, 29, 0),1790 ], is_closed=False, texture_name=TEXT_WHITE),1791 Build(column_list=[1792 Column(-6, 367, 26, 3),1793 Column(-6, 367, 6, 23),1794 Column(0, 367, 6, 27),1795 Column(6, 367, 6, 23),1796 ], is_closed=False, texture_name=TEXT_WHITE),1797 ], object_list=[1798 End_lvl_crystal(x=-0.01, y=366.99, next_level_number=102),1799 ], sky_text_num=1, ground_color=(50, 50, 40))1800 if num_floor == 102:1801 floor = Floor(build_list=[1802 Build(column_list=[1803 Column(-4, 6, 3, 0),1804 Column(-10, 6, 3, 0),1805 Column(-8, -8, 3, 0),1806 Column(8, -8, 3, 0),1807 Column(10, 6, 3, 0),1808 Column(4, 6, 3, 0),1809 Column(4, 21.22, 3, 0),1810 Column(10, 22, 3, 0),1811 Column(10, 28, 3, 0),1812 Column(4, 29.22, 3, 0),1813 ], is_closed=False, texture_name=TEXT_STONE),1814 Build(column_list=[1815 Column(-4, 6, 3, 0),1816 Column(-4, 20.94, 3, 0),1817 Column(-10, 23.32, 3, 0),1818 Column(-10, 28, 3, 0),1819 Column(-4, 30, 3, 0),1820 Column(-4, 78.84, 3, 0),1821 Column(26, 78.74, 3, 0),1822 Column(26, 86, 3, 0),1823 Column(37.14, 86, 3, 0),1824 Column(38, 68, 3, 0),1825 Column(26.94, 68, 3, 0),1826 Column(26, 75.34, 3, 0),1827 Column(4, 76, 3, 0),1828 Column(4.62, 44, 3, 0),1829 Column(38.9, 44, 3, 0),1830 Column(40, 32, 3, 0),1831 Column(60, 32, 3, 0),1832 Column(58.66, 0, 3, 0),1833 ], is_closed=False, texture_name=TEXT_STONE),1834 Build(column_list=[1835 Column(59.12, -8, 3, 0),1836 Column(15.1, -7.0, 3, 0),1837 Column(15.28, 32.98, 3, 0),1838 Column(4, 34, 3, 0),1839 Column(4, 29.3, 3, 0),1840 ], is_closed=False, texture_name=TEXT_STONE),1841 Build(column_list=[1842 Column(59.02, -8, 3, 0),1843 Column(85.22, -8, 3, 0),1844 Column(110, 17.0, 3, 0),1845 Column(104, 72, 3, 0),1846 Column(50, 116, 3, 0),1847 Column(-12.98, 116, 3, 0),1848 Column(-48.6, 101.36, 3, 0),1849 Column(-50, 68, 3, 0),1850 Column(-36, 62.84, 3, 0),1851 ], is_closed=False, texture_name=TEXT_STONE),1852 Build(column_list=[1853 Column(-26, 63.38, 3, 0),1854 Column(-9.22, 74.66, 3, 0),1855 Column(-9.04, 94, 3, 0),1856 Column(18, 96.88, 3, 0),1857 Column(56, 78, 3, 0),1858 Column(80, 32.76, 3, 0),1859 Column(72, 10, 3, 0),1860 Column(58, 0, 3, 0),1861 ], is_closed=False, texture_name=TEXT_STONE),1862 Build(column_list=[1863 Column(-36, 62.74, 3, 0),1864 Column(-36, 56, 3, 0),1865 Column(-39.02, 62, 3, 0),1866 Column(-55.32, 62, 3, 0),1867 Column(-53.24, 17.16, 3, 0),1868 Column(-37.22, 11.12, 3, 0),1869 Column(-20, -8, 3, 0),1870 Column(-10.88, -8, 3, 0),1871 Column(-12.94, 2, 3, 0),1872 Column(-28.74, 14, 3, 0),1873 Column(-14.98, 23.2, 3, 0),1874 Column(-8, 63.06, 3, 0),1875 Column(-22, 61.16, 3, 0),1876 Column(-27.0, 56, 3, 0),1877 Column(-26, 64, 3, 0),1878 ], is_closed=False, texture_name=TEXT_STONE),1879 # Build(column_list=[1880 # Column(-23, 3, 3, 0),1881 # Column(-23, 0, 3, 0),1882 # Column(-20, 0, 3, 0),1883 # Column(-20, 3, 3, 0),1884 # ], is_closed=True, texture_name=TEXT_FIN),1885 ], object_list=[1886 End_lvl_crystal(-23, 3, next_level_number=103),1887 Baggebo(x=-7.82, y=26.56, angle=8),1888 Baggebo(x=-7.82, y=25.1, angle=354),1889 Baggebo(x=8.14, y=26.56, angle=180),1890 Baggebo(x=8.69, y=24.79, angle=188),1891 Baggebo(x=-2.25, y=44.67, angle=277),1892 Baggebo(x=-1.27, y=45.09, angle=274),1893 Baggebo(x=0.62, y=45.34, angle=257),1894 Baggebo(x=2.03, y=45.34, angle=266),1895 Baggebo(x=18.18, y=24.37, angle=41),1896 Baggebo(x=20.18, y=20.75, angle=60),1897 Baggebo(x=22.77, y=16.3, angle=75),1898 Baggebo(x=26.62, y=13.94, angle=83),1899 Baggebo(x=32.25, y=12.16, angle=104),1900 Baggebo(x=37.13, y=14.23, angle=115),1901 Baggebo(x=42.53, y=16.38, angle=141),1902 Baggebo(x=42.75, y=21.93, angle=146),1903 Baggebo(x=45.05, y=27.11, angle=160),1904 Baggebo(x=53.85, y=2.98, angle=141),1905 Baggebo(x=49.41, y=1.06, angle=134),1906 Baggebo(x=44.68, y=-1.31, angle=215),1907 Baggebo(x=38.98, y=-2.79, angle=94),1908 Baggebo(x=-11.27, y=90.75, angle=87),1909 Baggebo(x=-12.49, y=88.63, angle=98),1910 Baggebo(x=-13.71, y=90.02, angle=83),1911 Baggebo(x=-15.34, y=86.68, angle=104),1912 Baggebo(x=-17.29, y=88.47, angle=83),1913 Baggebo(x=-12.25, y=82.44, angle=96),1914 Baggebo(x=-12.98, y=84.97, angle=96),1915 Baggebo(x=-17.13, y=83.01, angle=87),1916 Baggebo(x=-18.76, y=85.29, angle=84),1917 Baggebo(x=-15.91, y=81.06, angle=87),1918 Baggebo(x=-13.63, y=80.9, angle=96),1919 Baggebo(x=-15.26, y=84.48, angle=89),1920 Baggebo(x=-17.05, y=78.7, angle=107),1921 Baggebo(x=-20.23, y=80.57, angle=90),1922 Baggebo(x=-40.06, y=59.65, angle=269),1923 Baggebo(x=-42.48, y=60.28, angle=271),1924 Baggebo(x=-44.9, y=59.56, angle=278),1925 Baggebo(x=-46.24, y=59.65, angle=291),1926 Baggebo(x=-48.12, y=60.28, angle=275),1927 Baggebo(x=-49.73, y=60.1, angle=269),1928 Baggebo(x=-51.7, y=59.83, angle=282),1929 Baggebo(x=-20.9, y=59.3, angle=260),1930 Baggebo(x=-19.11, y=59.74, angle=265),1931 Baggebo(x=-16.69, y=60.28, angle=250),1932 Baggebo(x=-14.0, y=60.46, angle=247),1933 Baggebo(x=-11.05, y=60.73, angle=252),1934 Baggebo(x=-9.8, y=60.1, angle=243),1935 Baggebo(x=-15.89, y=-3.58, angle=315),1936 Baggebo(x=-17.33, y=-2.08, angle=141),1937 ])1938 if num_floor == 103:1939 floor = Floor(build_list=[1940 Build(column_list=[1941 Column(-9, -3, 3, 0),1942 Column(-9, 3, 3, 0),1943 ], is_closed=False, texture_name=TEXT_DOOR),1944 Build(column_list=[1945 Column(-9, 3, 3, 0),1946 Column(6, 3, 3, 0),1947 Column(6, 72, 3, 0),1948 Column(21, 72, 3, 0),1949 Column(21, 42, 3, 0),1950 ], is_closed=False, texture_name=TEXT_WALL3),1951 Build(column_list=[1952 Column(21, 30, 3, 0),1953 Column(21, -3, 3, 0),1954 Column(-9, -3, 3, 0),1955 ], is_closed=False, texture_name=TEXT_WALL3),1956 Build(column_list=[1957 Column(21, 42, 3, 0),1958 Column(30, 42, 3, 0),1959 Column(30, 51, 3, 0),1960 Column(39, 51, 3, 0),1961 Column(39, 60, 3, 0),1962 Column(57, 60, 3, 0),1963 ], is_closed=False, texture_name=TEXT_WALL3),1964 Build(column_list=[1965 Column(57, 51, 3, 0),1966 Column(48, 51, 3, 0),1967 Column(48, 42, 3, 0),1968 Column(39, 42, 3, 0),1969 Column(39, 30, 3, 0),1970 Column(21, 30, 3, 0),1971 ], is_closed=False, texture_name=TEXT_WALL3),1972 Build(column_list=[1973 Column(57, 60, 3, 0),1974 Column(57, 96, 3, 0),1975 Column(72, 96, 3, 0),1976 Column(72, 24, 3, 0),1977 ], is_closed=False, texture_name=TEXT_DOOR),1978 Build(column_list=[1979 Column(72, 18, 3, 0),1980 Column(72, 9, 3, 0),1981 Column(57, 9, 3, 0),1982 Column(57, 51, 3, 0),1983 ], is_closed=False, texture_name=TEXT_DOOR),1984 Build(column_list=[1985 Column(72, 24, 3, 0),1986 Column(75, 24, 3, 0),1987 Column(75, 45, 3, 0),1988 Column(75, 51, 3, 0),1989 Column(129, 51, 3, 0),1990 Column(129, 45, 3, 0),1991 ], is_closed=False, texture_name=TEXT_WALL3),1992 Build(column_list=[1993 Column(129, 39, 3, 0),1994 Column(129, 33, 3, 0),1995 Column(96, 33, 3, 0),1996 Column(96, 9, 3, 0),1997 Column(75, 9, 3, 0),1998 Column(75, 18, 3, 0),1999 Column(72, 18, 3, 0),2000 ], is_closed=False, texture_name=TEXT_WALL3),2001 Build(column_list=[2002 Column(129, 45, 3, 0),2003 Column(132, 45, 3, 0),2004 Column(132, 57, 3, 0),2005 Column(162, 57, 3, 0),2006 Column(165, 48, 3, 0),2007 Column(177, 48, 3, 0),2008 Column(177, 36, 3, 0),2009 Column(165, 36, 3, 0),2010 Column(162, 27, 3, 0),2011 Column(132, 27, 3, 0),2012 Column(132, 39, 3, 0),2013 Column(129, 39, 3, 0),2014 ], is_closed=False, texture_name=TEXT_WALL3),2015 ], object_list=[2016 Baggebo(x=22.95, y=40.31, angle=179),2017 Baggebo(x=23.36, y=38.29, angle=179),2018 Baggebo(x=23.56, y=36.2, angle=184),2019 Baggebo(x=23.56, y=33.78, angle=183),2020 Baggebo(x=12.8, y=5.46, angle=92),2021 Baggebo(x=55.31, y=58.14, angle=357),2022 Baggebo(x=55.31, y=56.18, angle=2),2023 Baggebo(x=55.25, y=54.03, angle=2),2024 Baggebo(x=70.73, y=93.3, angle=180),2025 Baggebo(x=70.63, y=86.3, angle=180),2026 Baggebo(x=70.63, y=78.23, angle=177),2027 Baggebo(x=64.32, y=46.81, angle=267),2028 Baggebo(x=64.32, y=35.87, angle=275),2029 Baggebo(x=64.32, y=22.28, angle=275),2030 Baggebo(x=77.35, y=24.76, angle=357),2031 Baggebo(x=77.14, y=17.02, angle=359),2032 Baggebo(x=126.99, y=45.68, angle=175),2033 Baggebo(x=126.86, y=37.27, angle=180),2034 Baggebo(x=169.44, y=41.24, angle=4),2035 End_lvl_crystal(x=172, y=41.71, next_level_number=104),2036 ], ground_color=(150, 50, 50), sky_text_num=5)2037 if num_floor == 104:2038 floor = Floor(build_list=[2039 Build(column_list=[2040 Column(3, 9, 3, 0),2041 Column(12, 9, 3, 0),2042 Column(21, -12, 3, 0),2043 Column(0, -27, 3, 0),2044 Column(-21, -12, 3, 0),2045 Column(-12, 9, 3, 0),2046 Column(-3, 9, 3, 0),2047 ], is_closed=False, texture_name=TEXT_MEH),2048 Build(column_list=[2049 Column(-21, -12, 3, 0),2050 Column(-114, 63.96, 3, 0),2051 Column(-57, 217.03, 3, 0),2052 Column(63, 214.07, 3, 0),2053 Column(138, 100.6, 3, 0),2054 Column(21, -12, 3, 0),2055 ], is_closed=False, texture_name=TEXT_MEH),2056 Build(column_list=[2057 Column(-12, 9, 3, 0),2058 Column(-13.84, 24, 3, 0),2059 Column(13.48, 24, 3, 0),2060 ], is_closed=False, texture_name=TEXT_MEH),2061 Build(column_list=[2062 Column(12, 9, 3, 0),2063 Column(24, 33, 3, 0),2064 Column(-18, 36, 3, 0),2065 ], is_closed=False, texture_name=TEXT_MEH),2066 Build(column_list=[2067 Column(-13.98, 24, 3, 0),2068 Column(-28.73, 30, 3, 0),2069 Column(-29.01, 46.2, 3, 0),2070 Column(15, 46.2, 3, 0),2071 ], is_closed=False, texture_name=TEXT_MEH),2072 Build(column_list=[2073 Column(24, 33, 3, 0),2074 Column(33, 57, 3, 0),2075 Column(-19.5, 58.47, 3, 0),2076 ], is_closed=False, texture_name=TEXT_MEH),2077 Build(column_list=[2078 Column(-30, 46.62, 3, 0),2079 Column(-40.86, 69, 3, 0),2080 Column(12, 73.08, 3, 0),2081 ], is_closed=False, texture_name=TEXT_MEH),2082 Build(column_list=[2083 Column(33, 57, 3, 0),2084 Column(45, 88.11, 3, 0),2085 Column(-30.94, 90, 3, 0),2086 ], is_closed=False, texture_name=TEXT_MEH),2087 Build(column_list=[2088 Column(-42, 69, 3, 0),2089 Column(-57, 102, 3, 0),2090 Column(-37.3, 117, 3, 0),2091 ], is_closed=False, texture_name=TEXT_MEH),2092 ], object_list=[2093 Baggebo(x=-7.14, y=12.83, angle=324),2094 Baggebo(x=-6.68, y=15.59, angle=307),2095 Baggebo(x=-4.05, y=17.8, angle=277),2096 Baggebo(x=-0.17, y=19.02, angle=250),2097 Baggebo(x=4.26, y=17.89, angle=209),2098 Baggebo(x=5.81, y=15.38, angle=212),2099 Baggebo(x=7.54, y=12.81, angle=200),2100 Baggebo(x=5.84, y=31.89, angle=346),2101 Baggebo(x=5.32, y=27.74, angle=4),2102 Baggebo(x=-10.66, y=33.15, angle=340),2103 Baggebo(x=-12.44, y=28.41, angle=1),2104 Baggebo(x=-11.55, y=43.43, angle=178),2105 Baggebo(x=-10.66, y=41.73, angle=189),2106 Baggebo(x=-9.77, y=39.66, angle=186),2107 Baggebo(x=2.44, y=43.66, angle=176),2108 Baggebo(x=3.99, y=41.95, angle=191),2109 Baggebo(x=5.69, y=39.36, angle=183),2110 Baggebo(x=-18.21, y=55.79, angle=355),2111 Baggebo(x=-19.02, y=53.72, angle=352),2112 Baggebo(x=-19.02, y=51.5, angle=349),2113 Baggebo(x=-19.54, y=49.13, angle=357),2114 Baggebo(x=-5.48, y=55.72, angle=349),2115 Baggebo(x=-5.55, y=53.2, angle=352),2116 Baggebo(x=-7.26, y=50.83, angle=353),2117 Baggebo(x=-7.85, y=48.91, angle=0),2118 Baggebo(x=0.83, y=55.88, angle=350),2119 Baggebo(x=0.96, y=53.84, angle=261),2120 Baggebo(x=0.58, y=51.02, angle=1),2121 Baggebo(x=0.36, y=49.01, angle=2),2122 Baggebo(x=-13.31, y=65.4, angle=183),2123 Baggebo(x=-6.57, y=65.03, angle=194),2124 Baggebo(x=1.79, y=63.85, angle=193),2125 Baggebo(x=10.67, y=65.03, angle=198),2126 Baggebo(x=17.78, y=68.29, angle=213),2127 Baggebo(x=22.88, y=76.28, angle=252),2128 Baggebo(x=16.52, y=79.02, angle=346),2129 Baggebo(x=7.71, y=78.35, angle=0),2130 Baggebo(x=-1.46, y=79.61, angle=353),2131 Baggebo(x=-10.12, y=78.5, angle=356),2132 Baggebo(x=-15.75, y=79.24, angle=356),2133 Baggebo(x=-30.25, y=80.35, angle=330),2134 Baggebo(x=-32.03, y=119.13, angle=250),2135 Baggebo(x=-26.85, y=117.28, angle=227),2136 Baggebo(x=-22.04, y=111.51, angle=190),2137 Baggebo(x=-18.56, y=104.25, angle=171),2138 Baggebo(x=-19.52, y=98.56, angle=147),2139 Baggebo(x=-23.22, y=93.52, angle=125),2140 Baggebo(x=-27.37, y=92.19, angle=127),2141 Toflund(x=7.46, y=125.15, angle=216),2142 End_lvl_crystal(x=-110.73, y=66.24, next_level_number=105),2143 End_lvl_crystal(x=-52.99, y=210.91, next_level_number=105),2144 End_lvl_crystal(x=61.86, y=205.36, next_level_number=105),2145 End_lvl_crystal(x=127.06, y=100.5, next_level_number=105),2146 ], sky_text_num=6, ground_color=(70, 40, 70))2147 if num_floor == 105:2148 floor = Floor(build_list=[2149 Build(column_list=[2150 Column(3.75, 7.5, 3, 0),2151 Column(3.75, 52.5, 3, 0),2152 Column(-2.04, 56.25, 3, 0),2153 Column(-3.75, 63.75, 3, 0),2154 Column(-1.4, 68.98, 3, 0),2155 Column(3.75, 73.39, 3, 0),2156 Column(11.25, 75.0, 3, 0),2157 Column(16.86, 71.25, 3, 0),2158 Column(18.75, 63.75, 3, 0),2159 Column(18.75, 60.0, 3, 0),2160 Column(15.0, 54.89, 3, 0),2161 Column(12.77, 52.5, 3, 0),2162 ], is_closed=False, texture_name=TEXT_SAUSAGE),2163 Build(column_list=[2164 Column(3.75, 7.5, 3, 0),2165 Column(23.91, 7.5, 3, 0),2166 Column(52.5, 22.5, 3, 0),2167 Column(63.75, 37.5, 3, 0),2168 Column(71.25, 50.82, 3, 0),2169 Column(73.62, 71.25, 3, 0),2170 Column(73.16, 84.75, 3, 0),2171 Column(67.5, 101.25, 3, 0),2172 Column(57.57, 117.78, 3, 0),2173 Column(45.0, 125.58, 3, 0),2174 Column(33.75, 126.25, 3, 0),2175 Column(12.39, 126.25, 3, 0),2176 Column(-12.62, 123.75, 3, 0),2177 Column(-33.75, 112.5, 3, 0),2178 Column(-45.0, 105.0, 3, 0),2179 Column(-52.5, 91.17, 3, 0),2180 Column(-52.5, 63.75, 3, 0),2181 Column(-50.01, 41.25, 3, 0),2182 Column(-41.25, 20.07, 3, 0),2183 Column(-28.66, 11.25, 3, 0),2184 Column(-11.25, 7.5, 3, 0),2185 ], is_closed=False, texture_name=TEXT_SAUSAGE),2186 Build(column_list=[2187 Column(11.25, 75.0, 3, 0),2188 Column(9.36, 112.5, 3, 0),2189 Column(-2.01, 112.2, 3, 0),2190 Column(-9.46, 109.5, 3, 0),2191 Column(-24.0, 100.97, 3, 0),2192 Column(-30.0, 90.75, 3, 0),2193 Column(-34.01, 82.5, 3, 0),2194 ], is_closed=False, texture_name=TEXT_SAUSAGE),2195 Build(column_list=[2196 Column(9.75, 112.83, 3, 0),2197 Column(28.23, 113.62, 3, 0),2198 Column(39.46, 109.5, 3, 0),2199 Column(49.5, 97.0, 3, 0),2200 Column(54.75, 86.7, 3, 0),2201 ], is_closed=False, texture_name=TEXT_SAUSAGE),2202 Build(column_list=[2203 Column(3.0, 16.5, 3, 0),2204 Column(-12.75, 18.75, 3, 0),2205 Column(-18.75, 21.75, 3, 0),2206 Column(-28.5, 30.75, 3, 0),2207 Column(-34.8, 42.0, 3, 0),2208 Column(-36.38, 51.75, 3, 0),2209 ], is_closed=False, texture_name=TEXT_SAUSAGE),2210 Build(column_list=[2211 Column(17.61, 18.0, 3, 0),2212 Column(25.5, 20.67, 3, 0),2213 Column(34.09, 25.09, 3, 0),2214 Column(40.74, 30.75, 3, 0),2215 Column(45.75, 38.25, 3, 0),2216 Column(52.5, 49.01, 3, 0),2217 Column(53.72, 56.78, 3, 0),2218 ], is_closed=False, texture_name=TEXT_SAUSAGE),2219 Build(column_list=[2220 Column(-52.5, 63.75, 3, 0),2221 Column(-42.75, 63.75, 3, 0),2222 Column(-37.02, 63.75, 3, 0),2223 Column(-25.5, 64.84, 3, 0),2224 Column(-20.55, 65.25, 3, 0),2225 Column(-19.12, 75.75, 3, 0),2226 Column(-15.0, 81.75, 3, 0),2227 Column(-8.25, 87.75, 3, 0),2228 Column(-1.5, 89.72, 3, 0),2229 ], is_closed=False, texture_name=TEXT_SAUSAGE),2230 Build(column_list=[2231 Column(-20.7, 64.5, 3, 0),2232 Column(-21.33, 57.41, 3, 0),2233 Column(-19.75, 51.39, 3, 0),2234 Column(-17.7, 45.0, 3, 0),2235 Column(-13.5, 38.73, 3, 0),2236 Column(-8.25, 35.71, 3, 0),2237 ], is_closed=False, texture_name=TEXT_SAUSAGE),2238 Build(column_list=[2239 Column(73.5, 71.25, 3, 0),2240 Column(60.22, 71.25, 3, 0),2241 Column(39.0, 69.75, 3, 0),2242 Column(36.75, 79.5, 3, 0),2243 Column(32.76, 87.0, 3, 0),2244 Column(27.75, 90.75, 3, 0),2245 Column(23.25, 92.25, 3, 0),2246 ], is_closed=False, texture_name=TEXT_SAUSAGE),2247 Build(column_list=[2248 Column(39.0, 69.75, 3, 0),2249 Column(37.5, 61.19, 3, 0),2250 Column(36.75, 55.5, 3, 0),2251 Column(31.02, 46.77, 3, 0),2252 Column(25.95, 42.34, 3, 0),2253 Column(21.51, 40.5, 3, 0),2254 ], is_closed=False, texture_name=TEXT_SAUSAGE),2255 Build(column_list=[2256 Column(-20.61, 65.25, 3, 0),2257 Column(-20.71, 64.5, 3, 0),2258 ], is_closed=False, texture_name=TEXT_SAUSAGE),2259 Build(column_list=[2260 Column(3.0, 16.5, 3, 0),2261 Column(4.0, 16.5, 3, 0),2262 ], is_closed=False, texture_name=TEXT_SAUSAGE),2263 Build(column_list=[2264 Column(18.0, 17.25, 3, 0),2265 Column(12.38, 53.25, 3, 0),2266 Column(12.75, 52.5, 3, 0),2267 ], is_closed=False, texture_name=TEXT_SAUSAGE),2268 Build(column_list=[2269 Column(73.5, 71.25, 3, 0),2270 Column(73.5, 71.25, 3, 0),2271 Column(73.5, 71.25, 3, 0),2272 Column(73.5, 71.25, 3, 0),2273 Column(73.2, 71.25, 3, 0),2274 Column(73.88, 70.94, 3, 0),2275 ], is_closed=False, texture_name=TEXT_SAUSAGE),2276 Build(column_list=[2277 Column(10.5, 113.25, 3, 0),2278 Column(9.0, 111.75, 3, 0),2279 ], is_closed=False, texture_name=TEXT_SAUSAGE),2280 ], object_list=[2281 End_lvl_crystal(x=7.5, y=61.5, next_level_number=106),2282 ], ground_color=(200, 50, 50), sky_text_num=2)2283 if num_floor == 106:2284 floor = Floor(build_list=[2285 Build(column_list=[2286 Column(-6, 12, 3, 0),2287 Column(6, 12, 3, 0),2288 Column(20, 2, 3, 0),2289 Column(12, -34, 3, 0),2290 Column(2, -46, 3, 0),2291 ], is_closed=False, texture_name=TEXT_ILLUSION_2),2292 Build(column_list=[2293 Column(-2, -46, 3, 0),2294 Column(-12, -34, 3, 0),2295 Column(-20, 2, 3, 0),2296 Column(-6, 12, 3, 0),2297 ], is_closed=False, texture_name=TEXT_ILLUSION_2),2298 Build(column_list=[2299 Column(-2, -124, 3, 0),2300 Column(-2, -92, 3, 0),2301 Column(-2, -58, 3, 0),2302 Column(-2, -46, 3, 0),2303 ], is_closed=False, texture_name=TEXT_ILLUSION_2),2304 Build(column_list=[2305 Column(2, -46, 3, 0),2306 Column(2, -72, 3, 0),2307 Column(2, -108, 3, 0),2308 Column(2, -124, 3, 0),2309 Column(8, -126, 3, 0),2310 Column(12, -130, 3, 0),2311 Column(14, -136, 3, 0),2312 Column(14, -140, 3, 0),2313 Column(4, -140, 3, 0),2314 Column(2, -140, 3, 0),2315 Column(2, -142, 3, 0),2316 Column(0, -144, 3, 0),2317 Column(-2, -142, 3, 0),2318 Column(-2, -140, 3, 0),2319 Column(-14, -140, 3, 0),2320 Column(-14, -136, 3, 0),2321 Column(-12, -130, 3, 0),2322 Column(-8, -126, 3, 0),2323 Column(-2, -124, 3, 0),2324 ], is_closed=False, texture_name=TEXT_ILLUSION_2),2325 ], object_list=[2326 Baggebo(x=-0.21, y=-53.74, angle=268),2327 Baggebo(x=-0.27, y=-57.05, angle=270),2328 Baggebo(x=-0.12, y=-58.62, angle=272),2329 Baggebo(x=-0.12, y=-60.96, angle=260),2330 Baggebo(x=-0.49, y=-63.58, angle=264),2331 Baggebo(x=-0.41, y=-65.87, angle=276),2332 Baggebo(x=-0.18, y=-68.29, angle=273),2333 Baggebo(x=0.02, y=-70.17, angle=270),2334 Baggebo(x=-0.01, y=-71.86, angle=264),2335 Baggebo(x=-0.09, y=-73.37, angle=270),2336 Baggebo(x=-0.09, y=-74.82, angle=269),2337 Baggebo(x=-0.29, y=-77.45, angle=267),2338 Baggebo(x=-0.27, y=-80.99, angle=269),2339 Baggebo(x=0.02, y=-85.12, angle=273),2340 Baggebo(x=0.02, y=-88.26, angle=258),2341 Baggebo(x=-0.35, y=-90.66, angle=272),2342 Baggebo(x=-0.18, y=-93.23, angle=272),2343 Baggebo(x=-0.27, y=-96.62, angle=267),2344 Baggebo(x=-0.24, y=-99.79, angle=272),2345 Baggebo(x=-0.15, y=-102.27, angle=265),2346 Baggebo(x=-0.44, y=-106.01, angle=269),2347 Baggebo(x=-0.46, y=-108.32, angle=278),2348 Baggebo(x=-0.18, y=-110.16, angle=275),2349 Baggebo(x=0.04, y=-112.59, angle=270),2350 Baggebo(x=0.01, y=-114.3, angle=265),2351 Baggebo(x=-0.15, y=-116.58, angle=268),2352 Baggebo(x=-0.22, y=-118.94, angle=267),2353 Baggebo(x=-0.3, y=-121.52, angle=267),2354 Baggebo(x=-0.37, y=-123.91, angle=256),2355 Baggebo(x=-1.89, y=-125.92, angle=289),2356 Baggebo(x=-3.75, y=-126.23, angle=304),2357 Baggebo(x=-5.61, y=-127.29, angle=317),2358 Baggebo(x=-8.2, y=-128.7, angle=325),2359 Baggebo(x=-9.03, y=-130.02, angle=319),2360 Baggebo(x=-10.74, y=-132.19, angle=324),2361 Baggebo(x=-11.54, y=-133.75, angle=327),2362 Baggebo(x=-11.88, y=-136.44, angle=340),2363 Baggebo(x=-11.88, y=-138.34, angle=351),2364 Baggebo(x=0.01, y=-125.51, angle=266),2365 Baggebo(x=1.79, y=-125.66, angle=251),2366 Baggebo(x=3.27, y=-126.87, angle=256),2367 Baggebo(x=5.17, y=-127.44, angle=233),2368 Baggebo(x=7.37, y=-128.32, angle=213),2369 Baggebo(x=1.75, y=-128.73, angle=248),2370 Baggebo(x=0.23, y=-128.13, angle=265),2371 Baggebo(x=-1.66, y=-128.32, angle=280),2372 Baggebo(x=-0.52, y=-129.72, angle=271),2373 Baggebo(x=-1.74, y=-130.9, angle=288),2374 Baggebo(x=-3.37, y=-128.96, angle=282),2375 Baggebo(x=-5.12, y=-130.29, angle=307),2376 Baggebo(x=-4.32, y=-130.71, angle=291),2377 Baggebo(x=-3.45, y=-131.85, angle=296),2378 Baggebo(x=-6.83, y=-128.96, angle=299),2379 Baggebo(x=-6.41, y=-132.04, angle=314),2380 Baggebo(x=-4.93, y=-132.91, angle=305),2381 Baggebo(x=-7.93, y=-131.35, angle=307),2382 Baggebo(x=-7.02, y=-130.67, angle=298),2383 Baggebo(x=-8.84, y=-132.8, angle=310),2384 Baggebo(x=-6.6, y=-134.01, angle=307),2385 Baggebo(x=-4.51, y=-135.45, angle=304),2386 Baggebo(x=-9.6, y=-134.62, angle=318),2387 Baggebo(x=-7.28, y=-135.53, angle=325),2388 Baggebo(x=-8.5, y=-136.86, angle=326),2389 Baggebo(x=-9.75, y=-137.73, angle=327),2390 Baggebo(x=-6.22, y=-137.09, angle=317),2391 Baggebo(x=-6.56, y=-139.06, angle=330),2392 Baggebo(x=-4.02, y=-137.16, angle=298),2393 Baggebo(x=-3.87, y=-138.53, angle=351),2394 Baggebo(x=-3.22, y=-135.61, angle=328),2395 Baggebo(x=-2.04, y=-134.28, angle=287),2396 Baggebo(x=-0.87, y=-133.52, angle=261),2397 Baggebo(x=0.69, y=-133.44, angle=240),2398 Baggebo(x=1.91, y=-134.43, angle=234),2399 Baggebo(x=2.97, y=-135.64, angle=205),2400 Baggebo(x=3.58, y=-136.9, angle=193),2401 Baggebo(x=3.54, y=-138.19, angle=191),2402 Baggebo(x=0.08, y=-131.73, angle=262),2403 Baggebo(x=1.49, y=-130.52, angle=250),2404 Baggebo(x=2.06, y=-131.73, angle=243),2405 Baggebo(x=3.35, y=-132.57, angle=237),2406 Baggebo(x=3.5, y=-130.06, angle=239),2407 Baggebo(x=5.25, y=-129.83, angle=237),2408 Baggebo(x=3.23, y=-128.54, angle=240),2409 Baggebo(x=4.83, y=-131.54, angle=236),2410 Baggebo(x=3.61, y=-134.32, angle=206),2411 Baggebo(x=4.94, y=-133.21, angle=213),2412 Baggebo(x=5.06, y=-135.3, angle=200),2413 Baggebo(x=5.93, y=-132.04, angle=215),2414 Baggebo(x=7.18, y=-130.21, angle=222),2415 Baggebo(x=9.46, y=-129.91, angle=217),2416 Baggebo(x=7.83, y=-132.3, angle=216),2417 Baggebo(x=9.27, y=-131.77, angle=223),2418 Baggebo(x=6.96, y=-134.2, angle=211),2419 Baggebo(x=5.78, y=-136.67, angle=212),2420 Baggebo(x=7.18, y=-138.23, angle=203),2421 Baggebo(x=8.55, y=-135.34, angle=213),2422 Baggebo(x=5.06, y=-138.91, angle=195),2423 Baggebo(x=10.22, y=-133.56, angle=219),2424 Baggebo(x=10.49, y=-136.18, angle=216),2425 Baggebo(x=8.66, y=-136.97, angle=197),2426 Baggebo(x=9.23, y=-138.27, angle=206),2427 Baggebo(x=11.17, y=-138.27, angle=190),2428 Baggebo(x=12.08, y=-136.94, angle=200),2429 Baggebo(x=11.74, y=-134.7, angle=209),2430 Baggebo(x=11.21, y=-131.85, angle=227),2431 Baggebo(x=7.18, y=-136.02, angle=204),2432 Baggebo(x=-3.34, y=-133.63, angle=312),2433 Baggebo(x=-10.13, y=-136.1, angle=359),2434 Baggebo(x=-8.61, y=-138.99, angle=353),2435 End_lvl_crystal(x=-0.01, y=-140.08, next_level_number=107),2436 ], ground_color=(50, 60, 40), sky_text_num=3)2437 # if num_floor == 107:2438 # floor = Floor(build_list=[2439 # Build(column_list=[2440 # Column(8, 8, 2, 0),2441 # Column(8, -9, 2, 0),2442 # Column(-10, -9, 2, 0),2443 # Column(-10, 8, 2, 0),2444 # ], is_closed=False, texture_name=TEXT_WALL3),2445 # Build(column_list=[2446 # Column(-10, 8, 4.5, 0),2447 # Column(8, 8, 4.5, 0),2448 # ], is_closed=False, texture_name=TEXT_THE_END),2449 # ], object_list=[2450 # ], ground_color=(20, 20, 40), sky_text_num=4)2451 if num_floor == 107:2452 floor = Floor(build_list=[2453 Build(column_list=[2454 Column(-8, -5, 3, 0),2455 Column(-8, 11, 3, 0),2456 Column(10, 11, 3, 0),2457 Column(10, 1, 3, 0),2458 ], is_closed=False, texture_name=TEXT_WALL3),2459 Build(column_list=[2460 Column(10, -0, 3, 0),2461 Column(10, -5, 3, 0),2462 Column(-8, -5, 3, 0),2463 ], is_closed=False, texture_name=TEXT_WALL3),2464 Build(column_list=[2465 Column(10, 1, 3, 0),2466 Column(13, 1, 3, 0),2467 ], is_closed=False, texture_name=TEXT_WALL1),2468 Build(column_list=[2469 Column(13, 0, 3, 0),2470 Column(10, 0, 3, 0),2471 ], is_closed=False, texture_name=TEXT_WALL1),2472 Build(column_list=[2473 Column(13, 1, 3, 0),2474 Column(13, 11, 3, 0),2475 Column(34, 11, 3, 0),2476 Column(34, -5, 3, 0),2477 Column(13, -5, 3, 0),2478 Column(13, -0, 3, 0),2479 ], is_closed=False, texture_name=TEXT_LISTVA),2480 Build(column_list=[2481 Column(-8.89, 9.78, 5, 0),2482 Column(10.67, 9.78, 5, 0),2483 ], is_closed=False, texture_name=TEXT_THE_END),2484 Build(column_list=[2485 Column(13, 9, 6, 0),2486 Column(34, 9, 6, 0),2487 ], is_closed=False, texture_name=TEXT_PARTIYA),2488 ], object_list=[2489 Cat1(x=16, y=7),2490 Cat2(x=18, y=7),2491 ], ground_color=(30, 30, 40), sky_text_num=8)...
tuong2.py
Source:tuong2.py
1import ezdxf2# Create a new DXF document.3doc = ezdxf.new(dxfversion='R2010')4# Create new table entries (layers, linetypes, text styles, ...).5doc.layers.new('TEXTLAYER', dxfattribs={'color': 2})6# DXF entities (LINE, TEXT, ...) reside in a layout (modelspace,7# paperspace layout or block definition).8msp = doc.modelspace()9# hatch = msp.add_hatch(color=1)10# hatch.paths.add_polyline_path([(3560,2840), (3560,-5120), (3800,-5360),(3800,3080)], is_closed=1)11# hatch = msp.add_hatch(color=7)12# hatch.paths.add_polyline_path([(3560,-5120), (-4400,-5120), (-4640,-5360),(3800,-5360)], is_closed=1)13# hatch = msp.add_hatch(color=2)14# hatch.paths.add_polyline_path([(-4400,2840), (-4400,2840), (3800,3080),(-4640,3080)], is_closed=1)15# hatch = msp.add_hatch(color=3)16# hatch.paths.add_polyline_path([(-4400,-5120), (-4400,2840), (-4640,3080),(-4640,-5360)], is_closed=1)17hatch = msp.add_hatch(color=7)18hatch.paths.add_polyline_path([(1.00,1.00), (601.00,1.00), (601.00,601.00),(1.00,601.00)], is_closed=1)19hatch = msp.add_hatch() # by default a SOLID fill20hatch.set_pattern_fill('NET', color=7, scale=30.0)21hatch.bgcolor = (144,111,65)22hatch.paths.add_polyline_path([(1.00,603.00), (601.00,603.00), (601.00,1203.00),(1.00,1203.00)], is_closed=1)23hatch = msp.add_hatch() # by default a SOLID fill24hatch.set_pattern_fill('NET', color=7, scale=30.0)25hatch.bgcolor = (144,111,65)26hatch.paths.add_polyline_path([(603.00,1.00), (1203.00,1.00), (1203.00,601.00),(603.00,601.00)], is_closed=1)27hatch = msp.add_hatch(color=7)28hatch.paths.add_polyline_path([(603.00,603.00), (1203.00,603.00), (1203.00,1203.00),(603.00,1203.00)], is_closed=1)29hatch = msp.add_hatch(color=7)30hatch.paths.add_polyline_path([(1205.00,1.00),(1805.00,1.00),(1805.00,601.00),(1205.00,601.00)], is_closed=1)31hatch = msp.add_hatch()32hatch.set_pattern_fill('NET', color=7, scale=30.0)33hatch.bgcolor = (144,111,65)34hatch.paths.add_polyline_path([(1205.00,603.00),(1805.00,603.00),(1805.00,1203.00),(1205.00,1203.00)], is_closed=1)35hatch = msp.add_hatch() # by default a SOLID fill36hatch.set_pattern_fill('NET', color=7, scale=30.0)37hatch.bgcolor = (144,111,65)38hatch.paths.add_polyline_path([(1807.00,1.00),(2407.00,1.00),(2407.00,601.00),(1807.00,601.00)], is_closed=1)39hatch = msp.add_hatch(color=7)40hatch.paths.add_polyline_path([(1807.00,603.00),(2407.00,603.00),(2407.00,1203.00),(1807.00,1203.00)], is_closed=1)41hatch = msp.add_hatch(color=7)42hatch.paths.add_polyline_path([(2409.00,1.00),(3009.00,1.00),(3009.00,601.00),(2409.00,601.00)], is_closed=1)43hatch = msp.add_hatch() # by default a SOLID fill44hatch.set_pattern_fill('NET', color=7, scale=30.0)45hatch.bgcolor = (144,111,65)46hatch.paths.add_polyline_path([(2409.00,603.00),(3009.00,603.00),(3009.00,1203.00),(2409.00,1203.00)], is_closed=1)47hatch = msp.add_hatch() # by default a SOLID fill48hatch.set_pattern_fill('NET', color=7, scale=30.0)49hatch.bgcolor = (144,111,65)50hatch.paths.add_polyline_path([(3011.00,1.00),(3611.00,1.00),(3611.00,601.000),(3011.00,601.00)], is_closed=1)51hatch = msp.add_hatch(color=7)52hatch.paths.add_polyline_path([(3011.00,603.00),(3611.00,603.00),(3611.00,1203.00),(3011.00,1203.00)], is_closed=1)53hatch = msp.add_hatch(color=7)54hatch.paths.add_polyline_path([(3613.00,1.00),(4213.00,1.00),(4213.00,601.00),(3613.00,601.00)], is_closed=1)55hatch = msp.add_hatch() # by default a SOLID fill56hatch.set_pattern_fill('NET', color=7, scale=30.0)57hatch.bgcolor = (144,111,65)58hatch.paths.add_polyline_path([(3613.00,603.00),(4213.00,603.00),(4213.00,1203.00),(3613.00,1203.00)], is_closed=1)59hatch = msp.add_hatch() # by default a SOLID fill60hatch.set_pattern_fill('NET', color=7, scale=30.0)61hatch.bgcolor = (144,111,65)62hatch.paths.add_polyline_path([(4215.00,1.00),(4815.00,1.00),(4815.00,601.00),(4215.00,601.00)], is_closed=1)63hatch = msp.add_hatch(color=7)64hatch.paths.add_polyline_path([(4215.00,603.00),(4815.00,603.00),(4815.00,1203.00),(4215.00,1203.00)], is_closed=1)65hatch = msp.add_hatch(color=7)66hatch.paths.add_polyline_path([(4817.00,1.00),(5417.00,1.00),(5417.00,601.00),(4817.00,601.00)], is_closed=1)67hatch = msp.add_hatch()68hatch.set_pattern_fill('NET', color=7, scale=30.0)69hatch.bgcolor = (144,111,65)70hatch.paths.add_polyline_path([(4817.00,603.00),(5417.00,603.00),(5417.00,1203.00),(4817.00,1203.00)], is_closed=1)71hatch = msp.add_hatch()72hatch.set_pattern_fill('NET', color=7, scale=30.0)73hatch.bgcolor = (144,111,65)74hatch.paths.add_polyline_path([(5419.00,1.00),(6019.00,1.00),(6019.00,601.00),(5419.00,601.00)], is_closed=1)75hatch = msp.add_hatch(color=7)76hatch.paths.add_polyline_path([(5419.00,603.00),(6019.00,603.00),(6019.00,1203.00),(5419.00,1203.00)], is_closed=1)77hatch = msp.add_hatch(color=7)78hatch.paths.add_polyline_path([(6021.00,1.00),(6621.00,1.00),(6621.00,601.00),(6021.00,601.00)], is_closed=1)79hatch = msp.add_hatch()80hatch.set_pattern_fill('NET', color=7, scale=30.0)81hatch.bgcolor = (144,111,65)82hatch.paths.add_polyline_path([(6021.00,603.00),(6621.00,603.00),(6621.00,1203.00),(6021.00,1203.00)], is_closed=1)83hatch = msp.add_hatch()84hatch.set_pattern_fill('NET', color=7, scale=30.0)85hatch.bgcolor = (144,111,65)86hatch.paths.add_polyline_path([(6623.00,1.00),(7223.00,1.00),(7223.00,601.00),(6623.00,601.00)], is_closed=1)87hatch = msp.add_hatch(color=7)88hatch.paths.add_polyline_path([(6623.00,603.00),(7223.00,603.00),(7223.00,1203.00),(6623.00,1203.00)], is_closed=1)89hatch = msp.add_hatch(color=7)90hatch.paths.add_polyline_path([(7225.00,1.00),(7825.00,1.00),(7825.00,601.00),(7225.00,601.00)], is_closed=1)91hatch = msp.add_hatch()92hatch.set_pattern_fill('NET', color=7, scale=30.0)93hatch.bgcolor = (144,111,65)94hatch.paths.add_polyline_path([(7225.00,603.00),(7825.00,603.00),(7825.00,1203.00),(7225.00,1203.00)], is_closed=1)95hatch = msp.add_hatch()96hatch.set_pattern_fill('NET', color=7, scale=30.0)97hatch.bgcolor = (144,111,65)98hatch.paths.add_polyline_path([(7960.00,1.00),(7960.00,601.00),(7827.00,601.00),(7827.00,1.00)], is_closed=1)99hatch = msp.add_hatch(color=7)100hatch.paths.add_polyline_path([(7960.00,603.00),(7960.00,1203.00),(7827.00,1203.00),(7827.00,603.00)], is_closed=1)101hatch = msp.add_hatch(color=7)102hatch.paths.add_polyline_path([(1.00,1205.00),(601.00,1205.00),(601.00,1805.00),(1.00,1805.00)], is_closed=1)103hatch = msp.add_hatch()104hatch.set_pattern_fill('NET', color=7, scale=30.0)105hatch.bgcolor = (144,111,65)106hatch.paths.add_polyline_path([(1.00,1807.00),(601.00,1807.00),(601.00,2407.00),(1.00,2407.00)], is_closed=1)107#55-74108hatch = msp.add_hatch()109hatch.set_pattern_fill('NET', color=7, scale=30.0)110hatch.bgcolor = (144,111,65)111hatch.paths.add_polyline_path([(603.00,1205.00),(1203.00,1205.00),(1203.00,1805.00),(603.00,1805.00)], is_closed=1)112hatch = msp.add_hatch(color=7)113hatch.paths.add_polyline_path([(603.00,1807.00),(1203.00,1807.00),(1203.00,2407.00),(603.00,2407.00)], is_closed=1)114hatch = msp.add_hatch(color=7)115hatch.paths.add_polyline_path([(1205.00,1205.00),(1805.00,1205.00),(1805.00,1805.00),(1205.00,1805.00)], is_closed=1)116hatch = msp.add_hatch()117hatch.set_pattern_fill('NET', color=7, scale=30.0)118hatch.bgcolor = (144,111,65)119hatch.paths.add_polyline_path([(1205.00,1807.00),(1805.00,1807.00),(1805.00,2407.00),(1205.00,2407.00)], is_closed=1)120hatch = msp.add_hatch()121hatch.set_pattern_fill('NET', color=7, scale=30.0)122hatch.bgcolor = (144,111,65)123hatch.paths.add_polyline_path([(1807.00,1205.00),(2407.00,1205.00),(2407.00,1805.00),(1807.00,1805.00)], is_closed=1)124hatch = msp.add_hatch(color=7)125hatch.paths.add_polyline_path([(1807.00,1807.00),(2407.00,1807.00),(2407.00,2407.00),(1807.00,2407.00)], is_closed=1)126hatch = msp.add_hatch(color=7)127hatch.paths.add_polyline_path([(2409.00,1205.00),(3009.00,1205),(3009.00,1805.00),(2409.00,1805.00)], is_closed=1)128hatch = msp.add_hatch()129hatch.set_pattern_fill('NET', color=7, scale=30.0)130hatch.bgcolor = (144,111,65)131hatch.paths.add_polyline_path([(2409.00,1807.00),(3009.00,1807.00),(3009.00,2407.00),(2409.00,2407.00)], is_closed=1)132hatch = msp.add_hatch()133hatch.set_pattern_fill('NET', color=7, scale=30.0)134hatch.bgcolor = (144,111,65)135hatch.paths.add_polyline_path([(3011.00,1205.00),(3611.00,1205.00),(3611.00,1805.00),(3011.00,1805.00)], is_closed=1)136hatch = msp.add_hatch(color=7)137hatch.paths.add_polyline_path([(3011.00,1807.00),(3611.00,1807.00),(3611.00,2407.00),(3011.00,2407.00)], is_closed=1)138hatch = msp.add_hatch(color=7)139hatch.paths.add_polyline_path([(3613.00,1205.00),(4213.00,1205.00),(4213.00,1805.00),(3613.00,1805.00)], is_closed=1)140hatch = msp.add_hatch()141hatch.set_pattern_fill('NET', color=7, scale=30.0)142hatch.bgcolor = (144,111,65)143hatch.paths.add_polyline_path([(3613.00,1807.00),(4213.00,1807.00),(4213.00,2407.00),(3613.00,2407.00)], is_closed=1)144hatch = msp.add_hatch()145hatch.set_pattern_fill('NET', color=7, scale=30.0)146hatch.bgcolor = (144,111,65)147hatch.paths.add_polyline_path([(4215.00,1205.00),(4815.00,1205.00),(4815.00,1805.00),(4215.00,1805.00)], is_closed=1)148hatch = msp.add_hatch(color=7)149hatch.paths.add_polyline_path([(4215.00,1807.00),(4815.00,1807.00),(4815.00,2407.00),(4215.00,2407.00)], is_closed=1)150hatch = msp.add_hatch(color=7)151hatch.paths.add_polyline_path([(4817.00,1205.00),(5417.00,1205.00),(5417.00,1805.00),(4817.00,1805.00)], is_closed=1)152hatch = msp.add_hatch()153hatch.set_pattern_fill('NET', color=7, scale=30.0)154hatch.bgcolor = (144,111,65)155hatch.paths.add_polyline_path([(4817.00,1807.00),(5417.00,1807.00),(5417.00,2407.00),(4817.00,2407.00)], is_closed=1)156hatch = msp.add_hatch()157hatch.set_pattern_fill('NET', color=7, scale=30.0)158hatch.bgcolor = (144,111,65)159hatch.paths.add_polyline_path([(5419.00,1205.00),(6019.00,1205.00),(6019.00,1805.00),(5419.00,1805.00)], is_closed=1)160hatch = msp.add_hatch(color=7)161hatch.paths.add_polyline_path([(5419.00,1807.00),(6019.00,1807.00),(6019.00,2407.00),(5419.00,2407.00)], is_closed=1)162hatch = msp.add_hatch(color=7)163hatch.paths.add_polyline_path([(6021.00,1205.00),(6621.00,1205.00),(6621.00,1805.00),(6021.00,1805.00)], is_closed=1)164hatch = msp.add_hatch()165hatch.set_pattern_fill('NET', color=7, scale=30.0)166hatch.bgcolor = (144,111,65)167hatch.paths.add_polyline_path([(6021.00,1807.00),(6621.00,1807.00),(6621.00,2407.00),(6021.00,2407.00)], is_closed=1)168#169hatch = msp.add_hatch()170hatch.set_pattern_fill('NET', color=7, scale=30.0)171hatch.bgcolor = (144,111,65)172hatch.paths.add_polyline_path([(6623.00,1205.00),(7223.00,1205.00),(7223.00,1805.00),(6623.00,1805.00)], is_closed=1)173hatch = msp.add_hatch(color=7)174hatch.paths.add_polyline_path([(6623.00,1807.00),(7223.00,1807.00),(7223.00,2407.00),(6623.00,2407.00)], is_closed=1)175hatch = msp.add_hatch(color=7)176hatch.paths.add_polyline_path([(7225.00,1205.00),(7825.00,1205.00),(7825.00,1805.00),(7225.00,1805.00)], is_closed=1)177hatch = msp.add_hatch()178hatch.set_pattern_fill('NET', color=7, scale=30.0)179hatch.bgcolor = (144,111,65)180hatch.paths.add_polyline_path([(7225.00,1807.00),(7825.00,1807.00),(7825.00,2407.00),(7225.00,2407.00)], is_closed=1)181hatch = msp.add_hatch()182hatch.set_pattern_fill('NET', color=7, scale=30.0)183hatch.bgcolor = (144,111,65)184hatch.paths.add_polyline_path([(7960.00,1205.00),(7960.00,1805.00),(7827.00,1805.00),(7827.00,1205.00)], is_closed=1)185hatch = msp.add_hatch(color=7)186hatch.paths.add_polyline_path([(7960.00,1807.00),(7960.00,2407.00),(7827.00,2407.00),(7827.00,1807.00)], is_closed=1)187hatch = msp.add_hatch(color=7)188hatch.paths.add_polyline_path([(601.00,2800.00),(1.00,2800.00),(1.00,2409.00),(601.00,2409.00)], is_closed=1)189hatch = msp.add_hatch()190hatch.set_pattern_fill('NET', color=7, scale=30.0)191hatch.bgcolor = (144,111,65)192hatch.paths.add_polyline_path([(1203.00,2800.00),(603.00,2800.00),(603.00,2409.00),(1203.00,2409.00)], is_closed=1)193hatch = msp.add_hatch(color=7)194hatch.paths.add_polyline_path([(1805.00,2800.00),(1205.00,2800.00),(1205.00,2409.00),(1805.00,2409.00)], is_closed=1)195hatch = msp.add_hatch()196hatch.set_pattern_fill('NET', color=7, scale=30.0)197hatch.bgcolor = (144,111,65)198hatch.paths.add_polyline_path([(2407.00,2800.00),(1807.00,2800.00),(1807.00,2409.00),(2407.00,2409.00)], is_closed=1)199hatch = msp.add_hatch(color=7)200hatch.paths.add_polyline_path([(3009.00,2800.00),(2409.00,2800.00),(2409.00,2409.00),(3009.00,2409.00)], is_closed=1)201hatch = msp.add_hatch()202hatch.set_pattern_fill('NET', color=7, scale=30.0)203hatch.bgcolor = (144,111,65)204hatch.paths.add_polyline_path([(3611.00,2800.00),(3011.00,2800.00),(3011.00,2409.00),(3611.00,2409.00)], is_closed=1)205hatch = msp.add_hatch(color=7)206hatch.paths.add_polyline_path([(4213.00,2800.00),(3613.00,2800.00),(3613.00,2409.00),(4213.00,2409.00)], is_closed=1)207hatch = msp.add_hatch()208hatch.set_pattern_fill('NET', color=7, scale=30.0)209hatch.bgcolor = (144,111,65)210hatch.paths.add_polyline_path([(4815.00,2800.00),(4215.00,2800.00),(4215.00,2409.00),(4815.00,2409.00)], is_closed=1)211hatch = msp.add_hatch(color=7)212hatch.paths.add_polyline_path([(5417.00,2800.00),(4817.00,2800.00),(4817.00,2409.00),(5417.00,2409.00)], is_closed=1)213hatch = msp.add_hatch()214hatch.set_pattern_fill('NET', color=7, scale=30.0)215hatch.bgcolor = (144,111,65)216hatch.paths.add_polyline_path([(6019.00,2800.00),(5419.00,2800.00),(5419.00,2409.00),(6019.00,2409.00)], is_closed=1)217hatch = msp.add_hatch(color=7)218hatch.paths.add_polyline_path([(6621.00,2800.00),(6021.00,2800.00),(6021.00,2409.00),(6621.00,2409.00)], is_closed=1)219hatch = msp.add_hatch()220hatch.set_pattern_fill('NET', color=7, scale=30.0)221hatch.bgcolor = (144,111,65)222hatch.paths.add_polyline_path([(7223.00,2800.00),(6623.00,2800.00),(6623.00,2409.00),(7223.00,2409.00)], is_closed=1)223hatch = msp.add_hatch(color=7)224hatch.paths.add_polyline_path([(7825.00,2800.00),(7225.00,2800.00),(7225.00,2409.00),(7825.00,2409.00)], is_closed=1)225hatch = msp.add_hatch()226hatch.set_pattern_fill('NET', color=7, scale=30.0)227hatch.bgcolor = (144,111,65)228hatch.paths.add_polyline_path([(7827.00,2800.00),(7827.00,2409.00),(7960.00,2409.00),(7960.00,2800.00)], is_closed=1)...
docxml.py
Source:docxml.py
1import ezdxf2# Create a new DXF document.3doc = ezdxf.new(dxfversion='R2010')4# Create new table entries (layers, linetypes, text styles, ...).5doc.layers.new('TEXTLAYER', dxfattribs={'color': 2})6# DXF entities (LINE, TEXT, ...) reside in a layout (modelspace,7# paperspace layout or block definition).8msp = doc.modelspace()9# 3560,-5120|-4400,-5120|-4640,-5360|3800,-536010#3560,2840|3560,-5120|3800,-5360|3800,308011#-4400,2840|3560,2840|3800,3080|-4640,308012#-4400,-5120|-4400,2840|-4640,3080|-4640,-536013#hatch = msp.add_hatch(color=3)14#hatch.paths.add_polyline_path([(3560,-5120), (-4400,-5120), (-4640,-5360),(3800,-5360)], is_closed=1)15#hatch = msp.add_hatch(color=1)16#hatch.paths.add_polyline_path([(3560,2840), (3560,-5120), (3800,-5360),(3800,3080)], is_closed=1)17hatch = msp.add_hatch(color=5)18hatch.paths.add_polyline_path([(1.00,1.00), (601.00,1.00), (601.00,601.00),(1.00,601.00)], is_closed=1)19hatch = msp.add_hatch(color=7)20hatch.paths.add_polyline_path([(1.00,603.00), (601.00,603.00), (601.00,1203.00),(1.00,1203.00)], is_closed=1)21hatch = msp.add_hatch(color=7)22hatch.paths.add_polyline_path([(603.00,1.00), (1203.00,1.00), (1203.00,601.00),(603.00,601.00)], is_closed=1)23hatch = msp.add_hatch(color=5)24hatch.paths.add_polyline_path([(603.00,603.00), (1203.00,603.00), (1203.00,1203.00),(603.00,1203.00)], is_closed=1)25hatch = msp.add_hatch(color=5)26hatch.paths.add_polyline_path([(1205.00,1.00),(1805.00,1.00),(1805.00,601.00),(1205.00,601.00)], is_closed=1)27hatch = msp.add_hatch(color=7)28hatch.paths.add_polyline_path([(1205.00,603.00),(1805.00,603.00),(1805.00,1203.00),(1205.00,1203.00)], is_closed=1)29hatch = msp.add_hatch(color=7)30hatch.paths.add_polyline_path([(1807.00,1.00),(2407.00,1.00),(2407.00,601.00),(1807.00,601.00)], is_closed=1)31hatch = msp.add_hatch(color=5)32hatch.paths.add_polyline_path([(1807.00,603.00),(2407.00,603.00),(2407.00,1203.00),(1807.00,1203.00)], is_closed=1)33hatch = msp.add_hatch(color=5)34hatch.paths.add_polyline_path([(2409.00,1.00),(3009.00,1.00),(3009.00,601.00),(2409.00,601.00)], is_closed=1)35hatch = msp.add_hatch(color=7)36hatch.paths.add_polyline_path([(2409.00,603.00),(3009.00,603.00),(3009.00,1203.00),(2409.00,1203.00)], is_closed=1)37hatch = msp.add_hatch(color=7)38hatch.paths.add_polyline_path([(3011.00,1.00),(3611.00,1.00),(3611.00,601.000),(3011.00,601.00)], is_closed=1)39hatch = msp.add_hatch(color=5)40hatch.paths.add_polyline_path([(3011.00,603.00),(3611.00,603.00),(3611.00,1203.00),(3011.00,1203.00)], is_closed=1)41hatch = msp.add_hatch(color=5)42hatch.paths.add_polyline_path([(3613.00,1.00),(4213.00,1.00),(4213.00,601.00),(3613.00,601.00)], is_closed=1)43hatch = msp.add_hatch(color=7)44hatch.paths.add_polyline_path([(3613.00,603.00),(4213.00,603.00),(4213.00,1203.00),(3613.00,1203.00)], is_closed=1)45hatch = msp.add_hatch(color=7)46hatch.paths.add_polyline_path([(4215.00,1.00),(4815.00,1.00),(4815.00,601.00),(4215.00,601.00)], is_closed=1)47hatch = msp.add_hatch(color=5)48hatch.paths.add_polyline_path([(4215.00,603.00),(4815.00,603.00),(4815.00,1203.00),(4215.00,1203.00)], is_closed=1)49hatch = msp.add_hatch(color=5)50hatch.paths.add_polyline_path([(4817.00,1.00),(5417.00,1.00),(5417.00,601.00),(4817.00,601.00)], is_closed=1)51hatch = msp.add_hatch(color=7)52hatch.paths.add_polyline_path([(4817.00,603.00),(5417.00,603.00),(5417.00,1203.00),(4817.00,1203.00)], is_closed=1)53hatch = msp.add_hatch(color=7)54hatch.paths.add_polyline_path([(5419.00,1.00),(6019.00,1.00),(6019.00,601.00),(5419.00,601.00)], is_closed=1)55hatch = msp.add_hatch(color=5)56hatch.paths.add_polyline_path([(5419.00,603.00),(6019.00,603.00),(6019.00,1203.00),(5419.00,1203.00)], is_closed=1)57hatch = msp.add_hatch(color=5)58hatch.paths.add_polyline_path([(6021.00,1.00),(6621.00,1.00),(6621.00,601.00),(6021.00,601.00)], is_closed=1)59hatch = msp.add_hatch(color=7)60hatch.paths.add_polyline_path([(6021.00,603.00),(6621.00,603.00),(6621.00,1203.00),(6021.00,1203.00)], is_closed=1)61hatch = msp.add_hatch(color=7)62hatch.paths.add_polyline_path([(6623.00,1.00),(7223.00,1.00),(7223.00,601.00),(6623.00,601.00)], is_closed=1)63hatch = msp.add_hatch(color=5)64hatch.paths.add_polyline_path([(6623.00,603.00),(7223.00,603.00),(7223.00,1203.00),(6623.00,1203.00)], is_closed=1)65hatch = msp.add_hatch(color=5)66hatch.paths.add_polyline_path([(7225.00,1.00),(7825.00,1.00),(7825.00,601.00),(7225.00,601.00)], is_closed=1)67hatch = msp.add_hatch(color=7)68hatch.paths.add_polyline_path([(7225.00,603.00),(7825.00,603.00),(7825.00,1203.00),(7225.00,1203.00)], is_closed=1)69hatch = msp.add_hatch(color=7)70hatch.paths.add_polyline_path([(7960.00,1.00),(7960.00,601.00),(7827.00,601.00),(7827.00,1.00)], is_closed=1)71hatch = msp.add_hatch(color=5)72hatch.paths.add_polyline_path([(7960.00,603.00),(7960.00,1203.00),(7827.00,1203.00),(7827.00,603.00)], is_closed=1)73hatch = msp.add_hatch(color=5)74hatch.paths.add_polyline_path([(1.00,1205.00),(601.00,1205.00),(601.00,1805.00),(1.00,1805.00)], is_closed=1)75hatch = msp.add_hatch(color=7)76hatch.paths.add_polyline_path([(1.00,1807.00),(601.00,1807.00),(601.00,2407.00),(1.00,2407.00)], is_closed=1)77#55-7478hatch = msp.add_hatch(color=7)79hatch.paths.add_polyline_path([(603.00,1205.00),(1203.00,1205.00),(1203.00,1805.00),(603.00,1805.00)], is_closed=1)80hatch = msp.add_hatch(color=5)81hatch.paths.add_polyline_path([(603.00,1807.00),(1203.00,1807.00),(1203.00,2407.00),(603.00,2407.00)], is_closed=1)82hatch = msp.add_hatch(color=5)83hatch.paths.add_polyline_path([(1205.00,1205.00),(1805.00,1205.00),(1805.00,1805.00),(1205.00,1805.00)], is_closed=1)84hatch = msp.add_hatch(color=7)85hatch.paths.add_polyline_path([(1205.00,1807.00),(1805.00,1807.00),(1805.00,2407.00),(1205.00,2407.00)], is_closed=1)86hatch = msp.add_hatch(color=7)87hatch.paths.add_polyline_path([(1807.00,1205.00),(2407.00,1205.00),(2407.00,1805.00),(1807.00,1805.00)], is_closed=1)88hatch = msp.add_hatch(color=5)89hatch.paths.add_polyline_path([(1807.00,1807.00),(2407.00,1807.00),(2407.00,2407.00),(1807.00,2407.00)], is_closed=1)90hatch = msp.add_hatch(color=5)91hatch.paths.add_polyline_path([(2409.00,1205.00),(3009.00,1205),(3009.00,1805.00),(2409.00,1805.00)], is_closed=1)92hatch = msp.add_hatch(color=7)93hatch.paths.add_polyline_path([(2409.00,1807.00),(3009.00,1807.00),(3009.00,2407.00),(2409.00,2407.00)], is_closed=1)94hatch = msp.add_hatch(color=7)95hatch.paths.add_polyline_path([(3011.00,1205.00),(3611.00,1205.00),(3611.00,1805.00),(3011.00,1805.00)], is_closed=1)96hatch = msp.add_hatch(color=5)97hatch.paths.add_polyline_path([(3011.00,1807.00),(3611.00,1807.00),(3611.00,2407.00),(3011.00,2407.00)], is_closed=1)98hatch = msp.add_hatch(color=5)99hatch.paths.add_polyline_path([(3613.00,1205.00),(4213.00,1205.00),(4213.00,1805.00),(3613.00,1805.00)], is_closed=1)100hatch = msp.add_hatch(color=7)101hatch.paths.add_polyline_path([(3613.00,1807.00),(4213.00,1807.00),(4213.00,2407.00),(3613.00,2407.00)], is_closed=1)102hatch = msp.add_hatch(color=7)103hatch.paths.add_polyline_path([(4215.00,1205.00),(4815.00,1205.00),(4815.00,1805.00),(4215.00,1805.00)], is_closed=1)104hatch = msp.add_hatch(color=5)105hatch.paths.add_polyline_path([(4215.00,1807.00),(4815.00,1807.00),(4815.00,2407.00),(4215.00,2407.00)], is_closed=1)106hatch = msp.add_hatch(color=5)107hatch.paths.add_polyline_path([(4817.00,1205.00),(5417.00,1205.00),(5417.00,1805.00),(4817.00,1805.00)], is_closed=1)108hatch = msp.add_hatch(color=7)109hatch.paths.add_polyline_path([(4817.00,1807.00),(5417.00,1807.00),(5417.00,2407.00),(4817.00,2407.00)], is_closed=1)110hatch = msp.add_hatch(color=7)111hatch.paths.add_polyline_path([(5419.00,1205.00),(6019.00,1205.00),(6019.00,1805.00),(5419.00,1805.00)], is_closed=1)112hatch = msp.add_hatch(color=5)113hatch.paths.add_polyline_path([(5419.00,1807.00),(6019.00,1807.00),(6019.00,2407.00),(5419.00,2407.00)], is_closed=1)114hatch = msp.add_hatch(color=5)115hatch.paths.add_polyline_path([(6021.00,1205.00),(6621.00,1205.00),(6621.00,1805.00),(6021.00,1805.00)], is_closed=1)116hatch = msp.add_hatch(color=7)117hatch.paths.add_polyline_path([(6021.00,1807.00),(6621.00,1807.00),(6621.00,2407.00),(6021.00,2407.00)], is_closed=1)118#119hatch = msp.add_hatch(color=7)120hatch.paths.add_polyline_path([(6623.00,1205.00),(7223.00,1205.00),(7223.00,1805.00),(6623.00,1805.00)], is_closed=1)121hatch = msp.add_hatch(color=5)122hatch.paths.add_polyline_path([(6623.00,1807.00),(7223.00,1807.00),(7223.00,2407.00),(6623.00,2407.00)], is_closed=1)123hatch = msp.add_hatch(color=5)124hatch.paths.add_polyline_path([(7225.00,1205.00),(7825.00,1205.00),(7825.00,1805.00),(7225.00,1805.00)], is_closed=1)125hatch = msp.add_hatch(color=7)126hatch.paths.add_polyline_path([(7225.00,1807.00),(7825.00,1807.00),(7825.00,2407.00),(7225.00,2407.00)], is_closed=1)127hatch = msp.add_hatch(color=7)128hatch.paths.add_polyline_path([(7960.00,1205.00),(7960.00,1805.00),(7827.00,1805.00),(7827.00,1205.00)], is_closed=1)129hatch = msp.add_hatch(color=5)130hatch.paths.add_polyline_path([(7960.00,1807.00),(7960.00,2407.00),(7827.00,2407.00),(7827.00,1807.00)], is_closed=1)131hatch = msp.add_hatch(color=5)132hatch.paths.add_polyline_path([(601.00,2800.00),(1.00,2800.00),(1.00,2409.00),(601.00,2409.00)], is_closed=1)133hatch = msp.add_hatch(color=7)134hatch.paths.add_polyline_path([(1203.00,2800.00),(603.00,2800.00),(603.00,2409.00),(1203.00,2409.00)], is_closed=1)135hatch = msp.add_hatch(color=5)136hatch.paths.add_polyline_path([(1805.00,2800.00),(1205.00,2800.00),(1205.00,2409.00),(1805.00,2409.00)], is_closed=1)137hatch = msp.add_hatch(color=7)138hatch.paths.add_polyline_path([(2407.00,2800.00),(1807.00,2800.00),(1807.00,2409.00),(2407.00,2409.00)], is_closed=1)139hatch = msp.add_hatch(color=5)140hatch.paths.add_polyline_path([(3009.00,2800.00),(2409.00,2800.00),(2409.00,2409.00),(3009.00,2409.00)], is_closed=1)141hatch = msp.add_hatch(color=7)142hatch.paths.add_polyline_path([(3611.00,2800.00),(3011.00,2800.00),(3011.00,2409.00),(3611.00,2409.00)], is_closed=1)143hatch = msp.add_hatch(color=5)144hatch.paths.add_polyline_path([(4213.00,2800.00),(3613.00,2800.00),(3613.00,2409.00),(4213.00,2409.00)], is_closed=1)145hatch = msp.add_hatch(color=7)146hatch.paths.add_polyline_path([(4815.00,2800.00),(4215.00,2800.00),(4215.00,2409.00),(4815.00,2409.00)], is_closed=1)147hatch = msp.add_hatch(color=5)148hatch.paths.add_polyline_path([(5417.00,2800.00),(4817.00,2800.00),(4817.00,2409.00),(5417.00,2409.00)], is_closed=1)149hatch = msp.add_hatch(color=7)150hatch.paths.add_polyline_path([(6019.00,2800.00),(5419.00,2800.00),(5419.00,2409.00),(6019.00,2409.00)], is_closed=1)151hatch = msp.add_hatch(color=5)152hatch.paths.add_polyline_path([(6621.00,2800.00),(6021.00,2800.00),(6021.00,2409.00),(6621.00,2409.00)], is_closed=1)153hatch = msp.add_hatch(color=7)154hatch.paths.add_polyline_path([(7223.00,2800.00),(6623.00,2800.00),(6623.00,2409.00),(7223.00,2409.00)], is_closed=1)155hatch = msp.add_hatch(color=5)156hatch.paths.add_polyline_path([(7825.00,2800.00),(7225.00,2800.00),(7225.00,2409.00),(7825.00,2409.00)], is_closed=1)157hatch = msp.add_hatch(color=7)158hatch.paths.add_polyline_path([(7827.00,2800.00),(7827.00,2409.00),(7960.00,2409.00),(7960.00,2800.00)], is_closed=1)...
test_optimize_x_moves.py
Source:test_optimize_x_moves.py
1"""Tests for optimize_x_moves.py."""2from typing import Sequence3from cut_optimizer.algorithms.optimize_x_moves import (4 optimize_x_moves,5 SolutionStep,6)7from cut_optimizer.instance import Point, Polyline8def steps_to_string(9 solution: Sequence[SolutionStep], show_directions: bool = False10) -> str:11 """Returns concatenated names of given polylines."""12 def step_to_string(step: SolutionStep) -> str:13 if (14 not show_directions15 or step.polyline.is_closed16 or step.polyline.start == step.start17 ):18 return step.polyline.name19 else:20 return step.polyline.name + "'"21 return "".join(step_to_string(step) for step in solution)22def test_simplest_closed_polylines() -> None:23 """Test the simplest problem with only closed polylines."""24 polylines = [25 Polyline("A", Point(1, 2), Point(3, 4), is_closed=True),26 Polyline("B", Point(5, 6), Point(7, 8), is_closed=True),27 Polyline("C", Point(9, 10), Point(11, 12), is_closed=True),28 ]29 assert steps_to_string(optimize_x_moves(polylines)) == "ABC"30def test_case_1() -> None:31 """Test 1."""32 polylines = [33 Polyline("A", Point(1, 0), Point(7, 0), is_closed=False),34 Polyline("B", Point(8, 0), Point(99, 0), is_closed=False),35 Polyline("C", Point(9, 0), Point(20, 0), is_closed=False),36 ]37 assert steps_to_string(optimize_x_moves(polylines)) == "ACB"38def test_case_2() -> None:39 """Test 2."""40 polylines = [41 Polyline("L", Point(3, 0), Point(30, 0), is_closed=False),42 Polyline("A", Point(1, 0), Point(2, 0), is_closed=False),43 Polyline("B", Point(4, 0), Point(5, 0), is_closed=False),44 Polyline("C", Point(33, 0), Point(34, 0), is_closed=False),45 Polyline("D", Point(22, 0), Point(28, 0), is_closed=False),46 ]47 assert steps_to_string(optimize_x_moves(polylines)) == "ABLCD"48def test_case_3() -> None:49 """Test 3."""50 polylines = [51 Polyline("L", Point(3, 0), Point(30, 0), is_closed=False),52 Polyline("A", Point(1, 0), Point(2, 0), is_closed=False),53 Polyline("B", Point(4, 0), Point(5, 0), is_closed=False),54 Polyline("C", Point(33, 0), Point(34, 0), is_closed=False),55 Polyline("D", Point(6, 0), Point(28, 0), is_closed=False),56 ]57 assert steps_to_string(optimize_x_moves(polylines)) == "ALCDB"58def test_case_4() -> None:59 """Test 4."""60 polylines = [61 Polyline("A", Point(1, 0), Point(10, 0), is_closed=False),62 Polyline("B", Point(10, 0), Point(1, 0), is_closed=False),63 Polyline("C", Point(7, 0), Point(8, 0), is_closed=False),64 Polyline("D", Point(7, 0), Point(8, 0), is_closed=False),65 ]66 assert steps_to_string(67 optimize_x_moves(polylines), show_directions=True68 ) in {"AC'DB", "AD'CB", "B'C'DA'", "B'D'CA'",}69def test_case_5() -> None:70 """Test 5."""71 polylines = [72 Polyline("A", Point(1, 0), Point(10, 0), is_closed=False),73 Polyline("B", Point(1, 0), Point(3, 0), is_closed=False),74 Polyline("C", Point(1, 0), Point(3, 0), is_closed=False),75 ]76 assert steps_to_string(77 optimize_x_moves(polylines), show_directions=True78 ) in {"BC'A", "CB'A"}79def test_case_6() -> None:80 """Test 6."""81 polylines = [82 Polyline("A", Point(1, 0), Point(100, 0), is_closed=False),83 Polyline("B", Point(3, 0), Point(110, 0), is_closed=False),84 Polyline("C", Point(5, 0), Point(9, 0), is_closed=False),85 ]86 assert (87 steps_to_string(optimize_x_moves(polylines), show_directions=True)88 == "AB'C"89 )90def test_case_7() -> None:91 """Test 7."""92 polylines = [93 Polyline("A", Point(0, 0), Point(3, 0), is_closed=False),94 Polyline("B", Point(0, 0), Point(3, 0), is_closed=False),95 Polyline("C", Point(3, 0), Point(6, 0), is_closed=False),96 Polyline("D", Point(3, 0), Point(6, 0), is_closed=False),97 ]98 assert steps_to_string(99 optimize_x_moves(polylines), show_directions=True100 ) in {"ACD'B'", "ADC'B'", "BCD'A'", "BDC'A'"}101def test_case_8() -> None:102 """Test 8."""103 polylines = [104 Polyline("A", Point(1, 0), Point(3, 3), is_closed=True),105 Polyline("A", Point(1, 0), Point(3, 3), is_closed=True),106 Polyline("B", Point(3, 0), Point(6, 3), is_closed=True),107 Polyline("B", Point(3, 0), Point(6, 3), is_closed=True),108 Polyline("C", Point(6, 0), Point(9, 3), is_closed=True),109 Polyline("C", Point(6, 0), Point(9, 3), is_closed=True),110 ]111 assert steps_to_string(optimize_x_moves(polylines)) == "AABBCC"112def test_case_9() -> None:113 """Test 9."""114 polylines = [115 Polyline("A", Point(100, 0), Point(130, 0), is_closed=False),116 Polyline("B", Point(125, 0), Point(160, 0), is_closed=False),117 Polyline("C", Point(155, 0), Point(190, 0), is_closed=False),118 Polyline("D", Point(145, 0), Point(150, 0), is_closed=False),119 Polyline("E", Point(120, 0), Point(129, 0), is_closed=True),120 Polyline("F", Point(180, 0), Point(220, 0), is_closed=True),121 Polyline("G", Point(140, 0), Point(145, 0), is_closed=True),122 ]123 assert steps_to_string(124 optimize_x_moves(polylines), show_directions=True125 ) in {"AEBD'GCF", "AEBGDCF"}126def test_case_10() -> None:127 """Test 10."""128 polylines = [129 Polyline("A", Point(100, 0), Point(999, 0), is_closed=False),130 Polyline("B", Point(200, 0), Point(400, 0), is_closed=True),131 Polyline("C", Point(300, 0), Point(780, 0), is_closed=True),132 Polyline("D", Point(780, 0), Point(900, 0), is_closed=True),133 ]134 assert steps_to_string(135 optimize_x_moves(polylines), show_directions=True136 ) in {"BCAD", "CBAD"}137 polylines.append(138 Polyline("E", Point(750, 0), Point(800, 0), is_closed=True),139 )140 assert steps_to_string(141 optimize_x_moves(polylines), show_directions=True142 ) in {"BADEC"}143def test_case_11() -> None:144 """Test 11."""145 polylines = [146 Polyline("A", Point(100, 0), Point(500, 100), is_closed=True),147 Polyline("B", Point(200, 0), Point(900, 200), is_closed=True),148 Polyline("C", Point(300, 0), Point(320, 400), is_closed=True),149 Polyline("D", Point(400, 0), Point(700, 300), is_closed=True),150 Polyline("E", Point(500, 0), Point(999, 250), is_closed=True),151 Polyline("F", Point(600, 0), Point(720, 350), is_closed=True),152 Polyline("G", Point(700, 0), Point(999, 150), is_closed=True),153 Polyline("H", Point(800, 0), Point(800, 550), is_closed=True),154 Polyline("I", Point(900, 0), Point(950, 300), is_closed=True),155 ]...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!