How to use image_data method in wpt

Best JavaScript code snippet using wpt

image_data.js

Source:image_data.js Github

copy

Full Screen

1var image_data; 2if (!image_data) image_data = []; 3image_data["ship_wings00.png"] = { width: 39, height: 46, x_hot: 19, y_hot: 23, collision_radius: 21 };4image_data["ship_wings01.png"] = { width: 39, height: 47, x_hot: 19, y_hot: 23, collision_radius: 21 };5image_data["ship_wings02.png"] = { width: 39, height: 48, x_hot: 19, y_hot: 23, collision_radius: 21 };6image_data["ship_wings03.png"] = { width: 39, height: 49, x_hot: 18, y_hot: 23, collision_radius: 21 };7image_data["ship_wings04.png"] = { width: 42, height: 50, x_hot: 19, y_hot: 23, collision_radius: 21 };8image_data["ship_wings05.png"] = { width: 44, height: 50, x_hot: 20, y_hot: 23, collision_radius: 21 };9image_data["ship_wings06.png"] = { width: 46, height: 51, x_hot: 21, y_hot: 23, collision_radius: 21 };10image_data["ship_wings07.png"] = { width: 48, height: 51, x_hot: 22, y_hot: 23, collision_radius: 21 };11image_data["ship_wings08.png"] = { width: 49, height: 51, x_hot: 22, y_hot: 23, collision_radius: 21 };12image_data["ship_wings09.png"] = { width: 50, height: 51, x_hot: 23, y_hot: 23, collision_radius: 21 };13image_data["ship_wings10.png"] = { width: 51, height: 51, x_hot: 23, y_hot: 23, collision_radius: 21 };14image_data["ship_wings11.png"] = { width: 51, height: 50, x_hot: 23, y_hot: 23, collision_radius: 21 };15image_data["ship_wings12.png"] = { width: 51, height: 49, x_hot: 23, y_hot: 22, collision_radius: 21 };16image_data["ship_wings13.png"] = { width: 51, height: 48, x_hot: 23, y_hot: 22, collision_radius: 21 };17image_data["ship_wings14.png"] = { width: 51, height: 46, x_hot: 23, y_hot: 21, collision_radius: 21 };18image_data["ship_wings15.png"] = { width: 50, height: 44, x_hot: 23, y_hot: 20, collision_radius: 21 };19image_data["ship_wings16.png"] = { width: 50, height: 42, x_hot: 23, y_hot: 19, collision_radius: 21 };20image_data["ship_wings17.png"] = { width: 49, height: 39, x_hot: 23, y_hot: 18, collision_radius: 21 };21image_data["ship_wings18.png"] = { width: 48, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };22image_data["ship_wings19.png"] = { width: 47, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };23image_data["ship_wings20.png"] = { width: 46, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };24image_data["ship_wings21.png"] = { width: 47, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };25image_data["ship_wings22.png"] = { width: 48, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };26image_data["ship_wings23.png"] = { width: 49, height: 39, x_hot: 23, y_hot: 20, collision_radius: 21 };27image_data["ship_wings24.png"] = { width: 50, height: 42, x_hot: 23, y_hot: 22, collision_radius: 21 };28image_data["ship_wings25.png"] = { width: 50, height: 44, x_hot: 23, y_hot: 23, collision_radius: 21 };29image_data["ship_wings26.png"] = { width: 51, height: 46, x_hot: 23, y_hot: 24, collision_radius: 21 };30image_data["ship_wings27.png"] = { width: 51, height: 48, x_hot: 23, y_hot: 25, collision_radius: 21 };31image_data["ship_wings28.png"] = { width: 51, height: 48, x_hot: 23, y_hot: 25, collision_radius: 21 };32image_data["ship_wings29.png"] = { width: 51, height: 50, x_hot: 23, y_hot: 26, collision_radius: 21 };33image_data["ship_wings30.png"] = { width: 51, height: 51, x_hot: 23, y_hot: 27, collision_radius: 21 };34image_data["ship_wings31.png"] = { width: 50, height: 51, x_hot: 23, y_hot: 27, collision_radius: 21 };35image_data["ship_wings32.png"] = { width: 49, height: 51, x_hot: 22, y_hot: 27, collision_radius: 21 };36image_data["ship_wings33.png"] = { width: 48, height: 51, x_hot: 22, y_hot: 27, collision_radius: 21 };37image_data["ship_wings34.png"] = { width: 46, height: 51, x_hot: 21, y_hot: 27, collision_radius: 21 };38image_data["ship_wings35.png"] = { width: 44, height: 50, x_hot: 20, y_hot: 26, collision_radius: 21 };39image_data["ship_wings36.png"] = { width: 42, height: 50, x_hot: 19, y_hot: 26, collision_radius: 21 };40image_data["ship_wings37.png"] = { width: 39, height: 49, x_hot: 18, y_hot: 25, collision_radius: 21 };41image_data["ship_wings38.png"] = { width: 39, height: 48, x_hot: 19, y_hot: 24, collision_radius: 21 };42image_data["ship_wings39.png"] = { width: 39, height: 47, x_hot: 19, y_hot: 23, collision_radius: 21 };43image_data["ship_wings40.png"] = { width: 39, height: 46, x_hot: 19, y_hot: 22, collision_radius: 21 };44image_data["ship_wings41.png"] = { width: 39, height: 47, x_hot: 19, y_hot: 23, collision_radius: 21 };45image_data["ship_wings42.png"] = { width: 39, height: 48, x_hot: 19, y_hot: 24, collision_radius: 21 };46image_data["ship_wings43.png"] = { width: 39, height: 49, x_hot: 20, y_hot: 25, collision_radius: 21 };47image_data["ship_wings44.png"] = { width: 42, height: 50, x_hot: 22, y_hot: 26, collision_radius: 21 };48image_data["ship_wings45.png"] = { width: 44, height: 50, x_hot: 23, y_hot: 26, collision_radius: 21 };49image_data["ship_wings46.png"] = { width: 46, height: 51, x_hot: 24, y_hot: 27, collision_radius: 21 };50image_data["ship_wings47.png"] = { width: 48, height: 51, x_hot: 25, y_hot: 27, collision_radius: 21 };51image_data["ship_wings48.png"] = { width: 49, height: 51, x_hot: 26, y_hot: 27, collision_radius: 21 };52image_data["ship_wings49.png"] = { width: 50, height: 51, x_hot: 26, y_hot: 27, collision_radius: 21 };53image_data["ship_wings50.png"] = { width: 51, height: 50, x_hot: 27, y_hot: 26, collision_radius: 21 };54image_data["ship_wings51.png"] = { width: 51, height: 50, x_hot: 27, y_hot: 26, collision_radius: 21 };55image_data["ship_wings52.png"] = { width: 51, height: 49, x_hot: 27, y_hot: 26, collision_radius: 21 };56image_data["ship_wings53.png"] = { width: 51, height: 48, x_hot: 27, y_hot: 25, collision_radius: 21 };57image_data["ship_wings54.png"] = { width: 51, height: 46, x_hot: 27, y_hot: 24, collision_radius: 21 };58image_data["ship_wings55.png"] = { width: 50, height: 44, x_hot: 26, y_hot: 23, collision_radius: 21 };59image_data["ship_wings56.png"] = { width: 50, height: 42, x_hot: 26, y_hot: 22, collision_radius: 21 };60image_data["ship_wings57.png"] = { width: 49, height: 39, x_hot: 25, y_hot: 20, collision_radius: 21 };61image_data["ship_wings58.png"] = { width: 48, height: 39, x_hot: 24, y_hot: 19, collision_radius: 21 };62image_data["ship_wings59.png"] = { width: 47, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };63image_data["ship_wings60.png"] = { width: 46, height: 39, x_hot: 22, y_hot: 19, collision_radius: 21 };64image_data["ship_wings61.png"] = { width: 47, height: 39, x_hot: 23, y_hot: 19, collision_radius: 21 };65image_data["ship_wings62.png"] = { width: 48, height: 39, x_hot: 24, y_hot: 19, collision_radius: 21 };66image_data["ship_wings63.png"] = { width: 49, height: 39, x_hot: 25, y_hot: 18, collision_radius: 21 };67image_data["ship_wings64.png"] = { width: 50, height: 42, x_hot: 26, y_hot: 19, collision_radius: 21 };68image_data["ship_wings65.png"] = { width: 50, height: 44, x_hot: 26, y_hot: 20, collision_radius: 21 };69image_data["ship_wings66.png"] = { width: 51, height: 46, x_hot: 27, y_hot: 21, collision_radius: 21 };70image_data["ship_wings67.png"] = { width: 51, height: 48, x_hot: 27, y_hot: 22, collision_radius: 21 };71image_data["ship_wings68.png"] = { width: 51, height: 48, x_hot: 27, y_hot: 22, collision_radius: 21 };72image_data["ship_wings69.png"] = { width: 51, height: 50, x_hot: 27, y_hot: 23, collision_radius: 21 };73image_data["ship_wings70.png"] = { width: 51, height: 51, x_hot: 27, y_hot: 23, collision_radius: 21 };74image_data["ship_wings71.png"] = { width: 50, height: 51, x_hot: 26, y_hot: 23, collision_radius: 21 };75image_data["ship_wings72.png"] = { width: 49, height: 51, x_hot: 26, y_hot: 23, collision_radius: 21 };76image_data["ship_wings73.png"] = { width: 48, height: 51, x_hot: 25, y_hot: 23, collision_radius: 21 };77image_data["ship_wings74.png"] = { width: 46, height: 51, x_hot: 24, y_hot: 23, collision_radius: 21 };78image_data["ship_wings75.png"] = { width: 44, height: 50, x_hot: 23, y_hot: 23, collision_radius: 21 };79image_data["ship_wings76.png"] = { width: 42, height: 50, x_hot: 22, y_hot: 23, collision_radius: 21 };80image_data["ship_wings77.png"] = { width: 39, height: 49, x_hot: 20, y_hot: 23, collision_radius: 21 };81image_data["ship_wings78.png"] = { width: 39, height: 48, x_hot: 19, y_hot: 23, collision_radius: 21 };82image_data["ship_wings79.png"] = { width: 39, height: 47, x_hot: 19, y_hot: 23, collision_radius: 21 };83image_data["ship_weapons00.png"] = { width: 27, height: 17, x_hot: 13, y_hot: -3, collision_radius: 21 };84image_data["ship_weapons01.png"] = { width: 27, height: 19, x_hot: 12, y_hot: -2, collision_radius: 21 };85image_data["ship_weapons02.png"] = { width: 27, height: 20, x_hot: 11, y_hot: -2, collision_radius: 21 };86image_data["ship_weapons03.png"] = { width: 28, height: 22, x_hot: 10, y_hot: -1, collision_radius: 21 };87image_data["ship_weapons04.png"] = { width: 28, height: 23, x_hot: 9, y_hot: 0, collision_radius: 21 };88image_data["ship_weapons05.png"] = { width: 29, height: 25, x_hot: 9, y_hot: 1, collision_radius: 21 };89image_data["ship_weapons06.png"] = { width: 29, height: 26, x_hot: 8, y_hot: 2, collision_radius: 21 };90image_data["ship_weapons07.png"] = { width: 29, height: 27, x_hot: 7, y_hot: 3, collision_radius: 21 };91image_data["ship_weapons08.png"] = { width: 30, height: 28, x_hot: 7, y_hot: 4, collision_radius: 21 };92image_data["ship_weapons09.png"] = { width: 29, height: 28, x_hot: 6, y_hot: 4, collision_radius: 21 };93image_data["ship_weapons10.png"] = { width: 29, height: 28, x_hot: 5, y_hot: 5, collision_radius: 21 };94image_data["ship_weapons11.png"] = { width: 28, height: 29, x_hot: 4, y_hot: 6, collision_radius: 21 };95image_data["ship_weapons12.png"] = { width: 28, height: 29, x_hot: 4, y_hot: 7, collision_radius: 21 };96image_data["ship_weapons13.png"] = { width: 27, height: 29, x_hot: 3, y_hot: 7, collision_radius: 21 };97image_data["ship_weapons14.png"] = { width: 26, height: 29, x_hot: 2, y_hot: 8, collision_radius: 21 };98image_data["ship_weapons15.png"] = { width: 25, height: 28, x_hot: 1, y_hot: 8, collision_radius: 21 };99image_data["ship_weapons16.png"] = { width: 23, height: 28, x_hot: 0, y_hot: 9, collision_radius: 21 };100image_data["ship_weapons17.png"] = { width: 22, height: 28, x_hot: -1, y_hot: 10, collision_radius: 21 };101image_data["ship_weapons18.png"] = { width: 20, height: 27, x_hot: -2, y_hot: 11, collision_radius: 21 };102image_data["ship_weapons19.png"] = { width: 19, height: 27, x_hot: -2, y_hot: 12, collision_radius: 21 };103image_data["ship_weapons20.png"] = { width: 17, height: 27, x_hot: -3, y_hot: 13, collision_radius: 21 };104image_data["ship_weapons21.png"] = { width: 19, height: 27, x_hot: -2, y_hot: 14, collision_radius: 21 };105image_data["ship_weapons22.png"] = { width: 20, height: 27, x_hot: -2, y_hot: 15, collision_radius: 21 };106image_data["ship_weapons23.png"] = { width: 22, height: 28, x_hot: -1, y_hot: 17, collision_radius: 21 };107image_data["ship_weapons24.png"] = { width: 23, height: 28, x_hot: 0, y_hot: 18, collision_radius: 21 };108image_data["ship_weapons25.png"] = { width: 25, height: 29, x_hot: 1, y_hot: 19, collision_radius: 21 };109image_data["ship_weapons26.png"] = { width: 26, height: 29, x_hot: 2, y_hot: 20, collision_radius: 21 };110image_data["ship_weapons27.png"] = { width: 27, height: 29, x_hot: 3, y_hot: 21, collision_radius: 21 };111image_data["ship_weapons28.png"] = { width: 28, height: 29, x_hot: 4, y_hot: 21, collision_radius: 21 };112image_data["ship_weapons29.png"] = { width: 28, height: 29, x_hot: 4, y_hot: 22, collision_radius: 21 };113image_data["ship_weapons30.png"] = { width: 29, height: 28, x_hot: 5, y_hot: 22, collision_radius: 21 };114image_data["ship_weapons31.png"] = { width: 29, height: 28, x_hot: 6, y_hot: 23, collision_radius: 21 };115image_data["ship_weapons32.png"] = { width: 30, height: 28, x_hot: 7, y_hot: 23, collision_radius: 21 };116image_data["ship_weapons33.png"] = { width: 29, height: 27, x_hot: 7, y_hot: 23, collision_radius: 21 };117image_data["ship_weapons34.png"] = { width: 29, height: 26, x_hot: 8, y_hot: 23, collision_radius: 21 };118image_data["ship_weapons35.png"] = { width: 29, height: 25, x_hot: 9, y_hot: 23, collision_radius: 21 };119image_data["ship_weapons36.png"] = { width: 28, height: 23, x_hot: 9, y_hot: 22, collision_radius: 21 };120image_data["ship_weapons37.png"] = { width: 28, height: 21, x_hot: 10, y_hot: 21, collision_radius: 21 };121image_data["ship_weapons38.png"] = { width: 28, height: 21, x_hot: 11, y_hot: 21, collision_radius: 21 };122image_data["ship_weapons39.png"] = { width: 27, height: 19, x_hot: 12, y_hot: 20, collision_radius: 21 };123image_data["ship_weapons40.png"] = { width: 27, height: 17, x_hot: 13, y_hot: 19, collision_radius: 21 };124image_data["ship_weapons41.png"] = { width: 27, height: 19, x_hot: 14, y_hot: 20, collision_radius: 21 };125image_data["ship_weapons42.png"] = { width: 27, height: 21, x_hot: 15, y_hot: 21, collision_radius: 21 };126image_data["ship_weapons43.png"] = { width: 28, height: 21, x_hot: 17, y_hot: 21, collision_radius: 21 };127image_data["ship_weapons44.png"] = { width: 28, height: 23, x_hot: 18, y_hot: 22, collision_radius: 21 };128image_data["ship_weapons45.png"] = { width: 29, height: 25, x_hot: 19, y_hot: 23, collision_radius: 21 };129image_data["ship_weapons46.png"] = { width: 29, height: 26, x_hot: 20, y_hot: 23, collision_radius: 21 };130image_data["ship_weapons47.png"] = { width: 29, height: 27, x_hot: 21, y_hot: 23, collision_radius: 21 };131image_data["ship_weapons48.png"] = { width: 30, height: 28, x_hot: 22, y_hot: 23, collision_radius: 21 };132image_data["ship_weapons49.png"] = { width: 29, height: 28, x_hot: 22, y_hot: 23, collision_radius: 21 };133image_data["ship_weapons50.png"] = { width: 28, height: 28, x_hot: 22, y_hot: 22, collision_radius: 21 };134image_data["ship_weapons51.png"] = { width: 28, height: 29, x_hot: 23, y_hot: 22, collision_radius: 21 };135image_data["ship_weapons52.png"] = { width: 28, height: 30, x_hot: 23, y_hot: 22, collision_radius: 21 };136image_data["ship_weapons53.png"] = { width: 27, height: 29, x_hot: 23, y_hot: 21, collision_radius: 21 };137image_data["ship_weapons54.png"] = { width: 26, height: 29, x_hot: 23, y_hot: 20, collision_radius: 21 };138image_data["ship_weapons55.png"] = { width: 25, height: 29, x_hot: 23, y_hot: 19, collision_radius: 21 };139image_data["ship_weapons56.png"] = { width: 23, height: 28, x_hot: 22, y_hot: 18, collision_radius: 21 };140image_data["ship_weapons57.png"] = { width: 21, height: 28, x_hot: 21, y_hot: 17, collision_radius: 21 };141image_data["ship_weapons58.png"] = { width: 21, height: 27, x_hot: 21, y_hot: 15, collision_radius: 21 };142image_data["ship_weapons59.png"] = { width: 19, height: 27, x_hot: 20, y_hot: 14, collision_radius: 21 };143image_data["ship_weapons60.png"] = { width: 17, height: 27, x_hot: 19, y_hot: 13, collision_radius: 21 };144image_data["ship_weapons61.png"] = { width: 19, height: 27, x_hot: 20, y_hot: 12, collision_radius: 21 };145image_data["ship_weapons62.png"] = { width: 20, height: 27, x_hot: 21, y_hot: 11, collision_radius: 21 };146image_data["ship_weapons63.png"] = { width: 22, height: 28, x_hot: 22, y_hot: 10, collision_radius: 21 };147image_data["ship_weapons64.png"] = { width: 23, height: 28, x_hot: 22, y_hot: 9, collision_radius: 21 };148image_data["ship_weapons65.png"] = { width: 25, height: 28, x_hot: 23, y_hot: 8, collision_radius: 21 };149image_data["ship_weapons66.png"] = { width: 26, height: 29, x_hot: 23, y_hot: 8, collision_radius: 21 };150image_data["ship_weapons67.png"] = { width: 27, height: 29, x_hot: 23, y_hot: 7, collision_radius: 21 };151image_data["ship_weapons68.png"] = { width: 28, height: 30, x_hot: 23, y_hot: 7, collision_radius: 21 };152image_data["ship_weapons69.png"] = { width: 28, height: 29, x_hot: 23, y_hot: 6, collision_radius: 21 };153image_data["ship_weapons70.png"] = { width: 28, height: 29, x_hot: 22, y_hot: 5, collision_radius: 21 };154image_data["ship_weapons71.png"] = { width: 29, height: 28, x_hot: 22, y_hot: 4, collision_radius: 21 };155image_data["ship_weapons72.png"] = { width: 30, height: 28, x_hot: 22, y_hot: 4, collision_radius: 21 };156image_data["ship_weapons73.png"] = { width: 29, height: 27, x_hot: 21, y_hot: 3, collision_radius: 21 };157image_data["ship_weapons74.png"] = { width: 29, height: 26, x_hot: 20, y_hot: 2, collision_radius: 21 };158image_data["ship_weapons75.png"] = { width: 29, height: 25, x_hot: 19, y_hot: 1, collision_radius: 21 };159image_data["ship_weapons76.png"] = { width: 28, height: 23, x_hot: 18, y_hot: 0, collision_radius: 21 };160image_data["ship_weapons77.png"] = { width: 28, height: 22, x_hot: 17, y_hot: -1, collision_radius: 21 };161image_data["ship_weapons78.png"] = { width: 27, height: 21, x_hot: 15, y_hot: -1, collision_radius: 21 };162image_data["ship_weapons79.png"] = { width: 27, height: 19, x_hot: 14, y_hot: -2, collision_radius: 21 };163image_data["shield.png"] = { width: 57, height: 57, x_hot: 28, y_hot: 28, collision_radius: 28 };164image_data["comet01a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };165image_data["comet01b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };166image_data["comet01c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };167image_data["comet02a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };168image_data["comet02b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };169image_data["comet02c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };170image_data["comet03a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };171image_data["comet03b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };172image_data["comet03c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };173image_data["comet04a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };174image_data["comet04b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };175image_data["comet04c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };176image_data["comet05a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };177image_data["comet05b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };178image_data["comet05c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };179image_data["comet06a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };180image_data["comet06b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };181image_data["comet06c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };182image_data["comet07a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };183image_data["comet07b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };184image_data["comet07c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };185image_data["comet08a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };186image_data["comet08b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };187image_data["comet08c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };188image_data["comet09a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };189image_data["comet09b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };190image_data["comet09c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };191image_data["comet10a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };192image_data["comet10b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };193image_data["comet10c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };194image_data["comet11a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };195image_data["comet11b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };196image_data["comet11c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };197image_data["comet12a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };198image_data["comet12b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };199image_data["comet12c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };200image_data["comet13a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };201image_data["comet13b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };202image_data["comet13c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };203image_data["comet14a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };204image_data["comet14b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };205image_data["comet14c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };206image_data["comet15a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };207image_data["comet15b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };208image_data["comet15c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };209image_data["comet16a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };210image_data["comet16b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };211image_data["comet16c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };212image_data["comet17a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };213image_data["comet17b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };214image_data["comet17c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };215image_data["comet18a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };216image_data["comet18b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };217image_data["comet18c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };218image_data["comet19a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };219image_data["comet19b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };220image_data["comet19c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };221image_data["comet20a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };222image_data["comet20b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };223image_data["comet20c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };224image_data["comet21a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };225image_data["comet21b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };226image_data["comet21c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };227image_data["comet22a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };228image_data["comet22b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };229image_data["comet22c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };230image_data["comet23a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };231image_data["comet23b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };232image_data["comet23c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };233image_data["comet24a.png"] = { width: 73, height: 73, x_hot: 36, y_hot: 36, collision_radius: 35 };234image_data["comet24b.png"] = { width: 37, height: 37, x_hot: 18, y_hot: 18, collision_radius: 18 };235image_data["comet24c.png"] = { width: 19, height: 19, x_hot: 9, y_hot: 9, collision_radius: 8 };236image_data["expl-a00.png"] = { width: 49, height: 50, x_hot: 25, y_hot: 31, collision_radius: 0 };237image_data["expl-a01.png"] = { width: 51, height: 52, x_hot: 25, y_hot: 31, collision_radius: 0 };238image_data["expl-a02.png"] = { width: 54, height: 55, x_hot: 26, y_hot: 32, collision_radius: 0 };239image_data["expl-a03.png"] = { width: 57, height: 59, x_hot: 27, y_hot: 33, collision_radius: 0 };240image_data["expl-a04.png"] = { width: 61, height: 61, x_hot: 28, y_hot: 33, collision_radius: 0 };241image_data["expl-a05.png"] = { width: 65, height: 65, x_hot: 30, y_hot: 34, collision_radius: 0 };242image_data["expl-a06.png"] = { width: 69, height: 70, x_hot: 32, y_hot: 35, collision_radius: 0 };243image_data["expl-a07.png"] = { width: 72, height: 75, x_hot: 34, y_hot: 37, collision_radius: 0 };244image_data["expl-a08.png"] = { width: 77, height: 81, x_hot: 37, y_hot: 39, collision_radius: 0 };245image_data["expl-a09.png"] = { width: 81, height: 85, x_hot: 39, y_hot: 40, collision_radius: 0 };246image_data["expl-a10.png"] = { width: 86, height: 90, x_hot: 41, y_hot: 42, collision_radius: 0 };247image_data["expl-a11.png"] = { width: 91, height: 97, x_hot: 43, y_hot: 45, collision_radius: 0 };248image_data["expl-a12.png"] = { width: 96, height: 103, x_hot: 45, y_hot: 48, collision_radius: 0 };249image_data["expl-a13.png"] = { width: 101, height: 108, x_hot: 47, y_hot: 50, collision_radius: 0 };250image_data["expl-a14.png"] = { width: 106, height: 114, x_hot: 49, y_hot: 53, collision_radius: 0 };251image_data["expl-a15.png"] = { width: 110, height: 119, x_hot: 51, y_hot: 55, collision_radius: 0 };252image_data["expl-a16.png"] = { width: 113, height: 123, x_hot: 53, y_hot: 56, collision_radius: 0 };253image_data["expl-a17.png"] = { width: 115, height: 124, x_hot: 55, y_hot: 55, collision_radius: 0 };254image_data["expl-b00.png"] = { width: 26, height: 24, x_hot: 11, y_hot: 9, collision_radius: 0 };255image_data["expl-b01.png"] = { width: 27, height: 25, x_hot: 12, y_hot: 9, collision_radius: 0 };256image_data["expl-b02.png"] = { width: 30, height: 26, x_hot: 14, y_hot: 10, collision_radius: 0 };257image_data["expl-b03.png"] = { width: 31, height: 27, x_hot: 15, y_hot: 11, collision_radius: 0 };258image_data["expl-b04.png"] = { width: 33, height: 28, x_hot: 17, y_hot: 11, collision_radius: 0 };259image_data["expl-b05.png"] = { width: 35, height: 30, x_hot: 18, y_hot: 12, collision_radius: 0 };260image_data["expl-b06.png"] = { width: 37, height: 32, x_hot: 19, y_hot: 13, collision_radius: 0 };261image_data["expl-b07.png"] = { width: 39, height: 35, x_hot: 20, y_hot: 14, collision_radius: 0 };262image_data["expl-b08.png"] = { width: 41, height: 36, x_hot: 21, y_hot: 14, collision_radius: 0 };263image_data["expl-b09.png"] = { width: 43, height: 40, x_hot: 22, y_hot: 16, collision_radius: 0 };264image_data["expl-b10.png"] = { width: 45, height: 42, x_hot: 23, y_hot: 17, collision_radius: 0 };265image_data["expl-b11.png"] = { width: 47, height: 45, x_hot: 24, y_hot: 18, collision_radius: 0 };266image_data["expl-b12.png"] = { width: 49, height: 47, x_hot: 25, y_hot: 19, collision_radius: 0 };267image_data["expl-b13.png"] = { width: 51, height: 49, x_hot: 26, y_hot: 20, collision_radius: 0 };268image_data["expl-b14.png"] = { width: 53, height: 51, x_hot: 27, y_hot: 21, collision_radius: 0 };269image_data["expl-b15.png"] = { width: 54, height: 53, x_hot: 28, y_hot: 22, collision_radius: 0 };270image_data["expl-b16.png"] = { width: 56, height: 55, x_hot: 29, y_hot: 23, collision_radius: 0 };271image_data["expl-b17.png"] = { width: 58, height: 55, x_hot: 30, y_hot: 23, collision_radius: 0 };272image_data["expl-c00.png"] = { width: 14, height: 15, x_hot: 8, y_hot: 6, collision_radius: 0 };273image_data["expl-c01.png"] = { width: 14, height: 16, x_hot: 8, y_hot: 7, collision_radius: 0 };274image_data["expl-c02.png"] = { width: 16, height: 17, x_hot: 9, y_hot: 8, collision_radius: 0 };275image_data["expl-c03.png"] = { width: 16, height: 17, x_hot: 9, y_hot: 8, collision_radius: 0 };276image_data["expl-c04.png"] = { width: 17, height: 18, x_hot: 9, y_hot: 9, collision_radius: 0 };277image_data["expl-c05.png"] = { width: 17, height: 20, x_hot: 9, y_hot: 10, collision_radius: 0 };278image_data["expl-c06.png"] = { width: 19, height: 21, x_hot: 10, y_hot: 11, collision_radius: 0 };279image_data["expl-c07.png"] = { width: 21, height: 23, x_hot: 11, y_hot: 12, collision_radius: 0 };280image_data["expl-c08.png"] = { width: 22, height: 24, x_hot: 12, y_hot: 12, collision_radius: 0 };281image_data["expl-c09.png"] = { width: 24, height: 25, x_hot: 13, y_hot: 13, collision_radius: 0 };282image_data["expl-c10.png"] = { width: 26, height: 27, x_hot: 14, y_hot: 14, collision_radius: 0 };283image_data["expl-c11.png"] = { width: 28, height: 29, x_hot: 15, y_hot: 15, collision_radius: 0 };284image_data["expl-c12.png"] = { width: 30, height: 30, x_hot: 16, y_hot: 15, collision_radius: 0 };285image_data["expl-c13.png"] = { width: 32, height: 31, x_hot: 17, y_hot: 16, collision_radius: 0 };286image_data["expl-c14.png"] = { width: 33, height: 33, x_hot: 17, y_hot: 17, collision_radius: 0 };287image_data["expl-c15.png"] = { width: 35, height: 34, x_hot: 18, y_hot: 17, collision_radius: 0 };288image_data["expl-c16.png"] = { width: 37, height: 35, x_hot: 19, y_hot: 18, collision_radius: 0 };289image_data["expl-c17.png"] = { width: 36, height: 37, x_hot: 18, y_hot: 19, collision_radius: 0 };290image_data["mine.png"] = { width: 75, height: 62, x_hot: 38, y_hot: 27, collision_radius: 26 };291image_data["protector.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 7 };292image_data["guard.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 7 };293image_data["shot1.png"] = { width: 7, height: 7, x_hot: 3, y_hot: 3, collision_radius: 2 };294image_data["shot2.png"] = { width: 9, height: 9, x_hot: 4, y_hot: 4, collision_radius: 3 };295image_data["enemy_shot.png"] = { width: 13, height: 13, x_hot: 6, y_hot: 6, collision_radius: 6 };296image_data["danger00.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };297image_data["danger01.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };298image_data["danger02.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };299image_data["danger03.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };300image_data["danger04.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };301image_data["danger05.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };302image_data["danger06.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };303image_data["danger07.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };304image_data["danger08.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };305image_data["danger09.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };306image_data["danger10.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };307image_data["danger11.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };308image_data["danger12.png"] = { width: 17, height: 19, x_hot: 8, y_hot: 9, collision_radius: 8 };309image_data["danger13.png"] = { width: 21, height: 19, x_hot: 10, y_hot: 9, collision_radius: 8 };310image_data["danger14.png"] = { width: 24, height: 21, x_hot: 11, y_hot: 10, collision_radius: 8 };311image_data["danger15.png"] = { width: 25, height: 21, x_hot: 12, y_hot: 10, collision_radius: 8 };312image_data["danger16.png"] = { width: 22, height: 19, x_hot: 11, y_hot: 9, collision_radius: 8 };313image_data["danger17.png"] = { width: 18, height: 19, x_hot: 8, y_hot: 9, collision_radius: 8 };314image_data["danger18.png"] = { width: 20, height: 17, x_hot: 9, y_hot: 8, collision_radius: 8 };315image_data["danger19.png"] = { width: 25, height: 19, x_hot: 12, y_hot: 9, collision_radius: 8 };316image_data["danger20.png"] = { width: 26, height: 21, x_hot: 13, y_hot: 10, collision_radius: 8 };317image_data["danger21.png"] = { width: 24, height: 23, x_hot: 12, y_hot: 11, collision_radius: 8 };318image_data["danger22.png"] = { width: 19, height: 23, x_hot: 9, y_hot: 11, collision_radius: 8 };319image_data["danger23.png"] = { width: 18, height: 21, x_hot: 8, y_hot: 10, collision_radius: 8 };320image_data["danger24.png"] = { width: 22, height: 21, x_hot: 10, y_hot: 10, collision_radius: 8 };321image_data["danger25.png"] = { width: 23, height: 19, x_hot: 11, y_hot: 9, collision_radius: 8 };322image_data["danger26.png"] = { width: 21, height: 17, x_hot: 10, y_hot: 8, collision_radius: 8 };323image_data["danger27.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };324image_data["danger28.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };325image_data["danger29.png"] = { width: 19, height: 17, x_hot: 9, y_hot: 8, collision_radius: 8 };326image_data["danger30.png"] = { width: 21, height: 17, x_hot: 10, y_hot: 8, collision_radius: 8 };327image_data["danger31.png"] = { width: 21, height: 17, x_hot: 10, y_hot: 8, collision_radius: 8 };328image_data["danger32.png"] = { width: 18, height: 17, x_hot: 9, y_hot: 8, collision_radius: 8 };329image_data["danger33.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };330image_data["danger34.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };331image_data["danger35.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };332image_data["danger36.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };333image_data["danger37.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };334image_data["danger38.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };335image_data["danger39.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };336image_data["extra00.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };337image_data["extra01.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };338image_data["extra02.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };339image_data["extra03.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };340image_data["extra04.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };341image_data["extra05.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };342image_data["extra06.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };343image_data["extra07.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };344image_data["extra08.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };345image_data["extra09.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };346image_data["extra10.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };347image_data["extra11.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };348image_data["extra12.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };349image_data["extra13.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };350image_data["extra14.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };351image_data["extra15.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };352image_data["extra16.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };353image_data["extra17.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };354image_data["extra18.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };355image_data["extra19.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };356image_data["extra20.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };357image_data["extra21.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };358image_data["extra22.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };359image_data["extra23.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };360image_data["extra24.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };361image_data["extra25.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };362image_data["extra26.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };363image_data["extra27.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };364image_data["extra28.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };365image_data["extra29.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };366image_data["extra30.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };367image_data["extra31.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };368image_data["extra32.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };369image_data["extra33.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };370image_data["extra34.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };371image_data["extra35.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };372image_data["extra36.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };373image_data["extra37.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };374image_data["extra38.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };375image_data["extra39.png"] = { width: 17, height: 17, x_hot: 8, y_hot: 8, collision_radius: 8 };376image_data["laser.png"] = { width: 31, height: 31, x_hot: 15, y_hot: 15, collision_radius: 16 };377image_data["missle00.png"] = { width: 11, height: 17, x_hot: 5, y_hot: 9, collision_radius: 7 };378image_data["missle01.png"] = { width: 11, height: 18, x_hot: 4, y_hot: 9, collision_radius: 7 };379image_data["missle02.png"] = { width: 11, height: 17, x_hot: 3, y_hot: 8, collision_radius: 7 };380image_data["missle03.png"] = { width: 12, height: 17, x_hot: 4, y_hot: 8, collision_radius: 7 };381image_data["missle04.png"] = { width: 14, height: 17, x_hot: 5, y_hot: 7, collision_radius: 7 };382image_data["missle05.png"] = { width: 16, height: 16, x_hot: 6, y_hot: 6, collision_radius: 7 };383image_data["missle06.png"] = { width: 17, height: 14, x_hot: 7, y_hot: 5, collision_radius: 7 };384image_data["missle07.png"] = { width: 18, height: 12, x_hot: 8, y_hot: 4, collision_radius: 7 };385image_data["missle08.png"] = { width: 17, height: 11, x_hot: 8, y_hot: 3, collision_radius: 7 };386image_data["missle09.png"] = { width: 18, height: 11, x_hot: 9, y_hot: 4, collision_radius: 7 };387image_data["missle10.png"] = { width: 17, height: 11, x_hot: 9, y_hot: 5, collision_radius: 7 };388image_data["missle11.png"] = { width: 18, height: 11, x_hot: 9, y_hot: 6, collision_radius: 7 };389image_data["missle12.png"] = { width: 17, height: 10, x_hot: 8, y_hot: 6, collision_radius: 7 };390image_data["missle13.png"] = { width: 18, height: 12, x_hot: 8, y_hot: 7, collision_radius: 7 };391image_data["missle14.png"] = { width: 18, height: 14, x_hot: 8, y_hot: 8, collision_radius: 7 };392image_data["missle15.png"] = { width: 16, height: 17, x_hot: 6, y_hot: 9, collision_radius: 7 };393image_data["missle16.png"] = { width: 14, height: 17, x_hot: 5, y_hot: 9, collision_radius: 7 };394image_data["missle17.png"] = { width: 12, height: 17, x_hot: 4, y_hot: 8, collision_radius: 7 };395image_data["missle18.png"] = { width: 10, height: 18, x_hot: 3, y_hot: 8, collision_radius: 7 };396image_data["missle19.png"] = { width: 11, height: 18, x_hot: 4, y_hot: 8, collision_radius: 7 };397image_data["missle20.png"] = { width: 11, height: 17, x_hot: 5, y_hot: 7, collision_radius: 7 };398image_data["missle21.png"] = { width: 11, height: 18, x_hot: 6, y_hot: 8, collision_radius: 7 };399image_data["missle22.png"] = { width: 10, height: 18, x_hot: 6, y_hot: 8, collision_radius: 7 };400image_data["missle23.png"] = { width: 12, height: 17, x_hot: 7, y_hot: 8, collision_radius: 7 };401image_data["missle24.png"] = { width: 14, height: 18, x_hot: 8, y_hot: 9, collision_radius: 7 };402image_data["missle25.png"] = { width: 17, height: 16, x_hot: 9, y_hot: 9, collision_radius: 7 };403image_data["missle26.png"] = { width: 17, height: 14, x_hot: 9, y_hot: 8, collision_radius: 7 };404image_data["missle27.png"] = { width: 17, height: 12, x_hot: 8, y_hot: 7, collision_radius: 7 };405image_data["missle28.png"] = { width: 18, height: 10, x_hot: 8, y_hot: 6, collision_radius: 7 };406image_data["missle29.png"] = { width: 18, height: 11, x_hot: 8, y_hot: 6, collision_radius: 7 };407image_data["missle30.png"] = { width: 17, height: 12, x_hot: 7, y_hot: 6, collision_radius: 7 };408image_data["missle31.png"] = { width: 18, height: 11, x_hot: 8, y_hot: 4, collision_radius: 7 };409image_data["missle32.png"] = { width: 17, height: 10, x_hot: 8, y_hot: 3, collision_radius: 7 };410image_data["missle33.png"] = { width: 17, height: 12, x_hot: 8, y_hot: 4, collision_radius: 7 };411image_data["missle34.png"] = { width: 17, height: 14, x_hot: 9, y_hot: 5, collision_radius: 7 };412image_data["missle35.png"] = { width: 16, height: 16, x_hot: 9, y_hot: 6, collision_radius: 7 };413image_data["missle36.png"] = { width: 14, height: 17, x_hot: 8, y_hot: 7, collision_radius: 7 };414image_data["missle37.png"] = { width: 12, height: 18, x_hot: 7, y_hot: 8, collision_radius: 7 };415image_data["missle38.png"] = { width: 10, height: 17, x_hot: 6, y_hot: 8, collision_radius: 7 };416image_data["missle39.png"] = { width: 11, height: 18, x_hot: 6, y_hot: 9, collision_radius: 7 };417image_data["flamea.png"] = { width: 21, height: 11, x_hot: 10, y_hot: -20, collision_radius: 0 };418image_data["flameb.png"] = { width: 21, height: 11, x_hot: 10, y_hot: -20, collision_radius: 0 };419image_data["enemy00.png"] = { width: 43, height: 68, x_hot: 21, y_hot: 46, collision_radius: 21 };420image_data["enemy01.png"] = { width: 43, height: 68, x_hot: 23, y_hot: 46, collision_radius: 21 };421image_data["enemy02.png"] = { width: 43, height: 67, x_hot: 25, y_hot: 45, collision_radius: 21 };422image_data["enemy03.png"] = { width: 45, height: 68, x_hot: 27, y_hot: 45, collision_radius: 21 };423image_data["enemy04.png"] = { width: 47, height: 67, x_hot: 28, y_hot: 44, collision_radius: 21 };424image_data["enemy05.png"] = { width: 50, height: 67, x_hot: 30, y_hot: 43, collision_radius: 21 };425image_data["enemy06.png"] = { width: 53, height: 67, x_hot: 32, y_hot: 43, collision_radius: 21 };426image_data["enemy07.png"] = { width: 55, height: 66, x_hot: 33, y_hot: 42, collision_radius: 21 };427image_data["enemy08.png"] = { width: 58, height: 65, x_hot: 35, y_hot: 41, collision_radius: 21 };428image_data["enemy09.png"] = { width: 60, height: 63, x_hot: 37, y_hot: 39, collision_radius: 21 };429image_data["enemy10.png"] = { width: 62, height: 62, x_hot: 38, y_hot: 38, collision_radius: 21 };430image_data["enemy11.png"] = { width: 64, height: 60, x_hot: 40, y_hot: 37, collision_radius: 21 };431image_data["enemy12.png"] = { width: 65, height: 58, x_hot: 41, y_hot: 35, collision_radius: 21 };432image_data["enemy13.png"] = { width: 66, height: 55, x_hot: 42, y_hot: 33, collision_radius: 21 };433image_data["enemy14.png"] = { width: 67, height: 53, x_hot: 43, y_hot: 32, collision_radius: 21 };434image_data["enemy15.png"] = { width: 67, height: 50, x_hot: 43, y_hot: 30, collision_radius: 21 };435image_data["enemy16.png"] = { width: 68, height: 47, x_hot: 44, y_hot: 28, collision_radius: 21 };436image_data["enemy17.png"] = { width: 68, height: 45, x_hot: 45, y_hot: 27, collision_radius: 21 };437image_data["enemy18.png"] = { width: 67, height: 43, x_hot: 45, y_hot: 25, collision_radius: 21 };438image_data["enemy19.png"] = { width: 68, height: 42, x_hot: 46, y_hot: 23, collision_radius: 21 };439image_data["enemy20.png"] = { width: 68, height: 43, x_hot: 46, y_hot: 21, collision_radius: 21 };440image_data["enemy21.png"] = { width: 68, height: 42, x_hot: 46, y_hot: 18, collision_radius: 21 };441image_data["enemy22.png"] = { width: 67, height: 43, x_hot: 45, y_hot: 17, collision_radius: 21 };442image_data["enemy23.png"] = { width: 68, height: 45, x_hot: 45, y_hot: 17, collision_radius: 21 };443image_data["enemy24.png"] = { width: 67, height: 47, x_hot: 44, y_hot: 18, collision_radius: 21 };444image_data["enemy25.png"] = { width: 67, height: 50, x_hot: 43, y_hot: 19, collision_radius: 21 };445image_data["enemy26.png"] = { width: 67, height: 53, x_hot: 43, y_hot: 20, collision_radius: 21 };446image_data["enemy27.png"] = { width: 66, height: 55, x_hot: 42, y_hot: 21, collision_radius: 21 };447image_data["enemy28.png"] = { width: 65, height: 58, x_hot: 41, y_hot: 22, collision_radius: 21 };448image_data["enemy29.png"] = { width: 64, height: 60, x_hot: 40, y_hot: 22, collision_radius: 21 };449image_data["enemy30.png"] = { width: 62, height: 62, x_hot: 38, y_hot: 23, collision_radius: 21 };450image_data["enemy31.png"] = { width: 60, height: 63, x_hot: 37, y_hot: 23, collision_radius: 21 };451image_data["enemy32.png"] = { width: 58, height: 65, x_hot: 35, y_hot: 23, collision_radius: 21 };452image_data["enemy33.png"] = { width: 55, height: 66, x_hot: 33, y_hot: 23, collision_radius: 21 };453image_data["enemy34.png"] = { width: 53, height: 67, x_hot: 32, y_hot: 23, collision_radius: 21 };454image_data["enemy35.png"] = { width: 50, height: 67, x_hot: 30, y_hot: 23, collision_radius: 21 };455image_data["enemy36.png"] = { width: 47, height: 67, x_hot: 28, y_hot: 22, collision_radius: 21 };456image_data["enemy37.png"] = { width: 45, height: 68, x_hot: 27, y_hot: 22, collision_radius: 21 };457image_data["enemy38.png"] = { width: 43, height: 67, x_hot: 25, y_hot: 21, collision_radius: 21 };458image_data["enemy39.png"] = { width: 43, height: 68, x_hot: 23, y_hot: 21, collision_radius: 21 };459image_data["enemy40.png"] = { width: 43, height: 68, x_hot: 21, y_hot: 21, collision_radius: 21 };460image_data["enemy41.png"] = { width: 43, height: 68, x_hot: 19, y_hot: 21, collision_radius: 21 };461image_data["enemy42.png"] = { width: 43, height: 67, x_hot: 17, y_hot: 21, collision_radius: 21 };462image_data["enemy43.png"] = { width: 45, height: 68, x_hot: 17, y_hot: 22, collision_radius: 21 };463image_data["enemy44.png"] = { width: 47, height: 67, x_hot: 18, y_hot: 22, collision_radius: 21 };464image_data["enemy45.png"] = { width: 50, height: 67, x_hot: 19, y_hot: 23, collision_radius: 21 };465image_data["enemy46.png"] = { width: 53, height: 67, x_hot: 20, y_hot: 23, collision_radius: 21 };466image_data["enemy47.png"] = { width: 55, height: 66, x_hot: 21, y_hot: 23, collision_radius: 21 };467image_data["enemy48.png"] = { width: 58, height: 65, x_hot: 22, y_hot: 23, collision_radius: 21 };468image_data["enemy49.png"] = { width: 60, height: 63, x_hot: 22, y_hot: 23, collision_radius: 21 };469image_data["enemy50.png"] = { width: 62, height: 62, x_hot: 23, y_hot: 23, collision_radius: 21 };470image_data["enemy51.png"] = { width: 64, height: 60, x_hot: 23, y_hot: 22, collision_radius: 21 };471image_data["enemy52.png"] = { width: 65, height: 58, x_hot: 23, y_hot: 22, collision_radius: 21 };472image_data["enemy53.png"] = { width: 66, height: 55, x_hot: 23, y_hot: 21, collision_radius: 21 };473image_data["enemy54.png"] = { width: 67, height: 53, x_hot: 23, y_hot: 20, collision_radius: 21 };474image_data["enemy55.png"] = { width: 67, height: 50, x_hot: 23, y_hot: 19, collision_radius: 21 };475image_data["enemy56.png"] = { width: 68, height: 47, x_hot: 23, y_hot: 18, collision_radius: 21 };476image_data["enemy57.png"] = { width: 68, height: 45, x_hot: 22, y_hot: 17, collision_radius: 21 };477image_data["enemy58.png"] = { width: 67, height: 43, x_hot: 21, y_hot: 17, collision_radius: 21 };478image_data["enemy59.png"] = { width: 68, height: 42, x_hot: 21, y_hot: 18, collision_radius: 21 };479image_data["enemy60.png"] = { width: 68, height: 43, x_hot: 21, y_hot: 21, collision_radius: 21 };480image_data["enemy61.png"] = { width: 68, height: 42, x_hot: 21, y_hot: 23, collision_radius: 21 };481image_data["enemy62.png"] = { width: 67, height: 43, x_hot: 21, y_hot: 25, collision_radius: 21 };482image_data["enemy63.png"] = { width: 68, height: 45, x_hot: 22, y_hot: 27, collision_radius: 21 };483image_data["enemy64.png"] = { width: 68, height: 47, x_hot: 23, y_hot: 28, collision_radius: 21 };484image_data["enemy65.png"] = { width: 67, height: 50, x_hot: 23, y_hot: 30, collision_radius: 21 };485image_data["enemy66.png"] = { width: 67, height: 53, x_hot: 23, y_hot: 32, collision_radius: 21 };486image_data["enemy67.png"] = { width: 66, height: 55, x_hot: 23, y_hot: 33, collision_radius: 21 };487image_data["enemy68.png"] = { width: 65, height: 58, x_hot: 23, y_hot: 35, collision_radius: 21 };488image_data["enemy69.png"] = { width: 64, height: 60, x_hot: 23, y_hot: 37, collision_radius: 21 };489image_data["enemy70.png"] = { width: 62, height: 62, x_hot: 23, y_hot: 38, collision_radius: 21 };490image_data["enemy71.png"] = { width: 60, height: 63, x_hot: 22, y_hot: 39, collision_radius: 21 };491image_data["enemy72.png"] = { width: 58, height: 65, x_hot: 22, y_hot: 41, collision_radius: 21 };492image_data["enemy73.png"] = { width: 55, height: 66, x_hot: 21, y_hot: 42, collision_radius: 21 };493image_data["enemy74.png"] = { width: 53, height: 67, x_hot: 20, y_hot: 43, collision_radius: 21 };494image_data["enemy75.png"] = { width: 50, height: 67, x_hot: 19, y_hot: 43, collision_radius: 21 };495image_data["enemy76.png"] = { width: 47, height: 67, x_hot: 18, y_hot: 44, collision_radius: 21 };496image_data["enemy77.png"] = { width: 45, height: 68, x_hot: 17, y_hot: 45, collision_radius: 21 };497image_data["enemy78.png"] = { width: 43, height: 67, x_hot: 17, y_hot: 45, collision_radius: 21 }; ...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1var g_mousedown = false;2var direction = 'bottom';3var active_tool = 'pixel_puller';4function setup_controls() {5 var palette_image = ($('#selected_colour img').eq(0))[0];6 var palette_canvas = document.createElement('canvas');7 var palette_context = palette_canvas.getContext("2d");8 palette_context.drawImage(palette_image, 0, 0, 150, 150);9 var paletteData = palette_context.getImageData(0,0,palette_image.width,palette_image.height);// { data: [r,g,b,a,r,g,b,a,r,g,..], ... }10 $('body').on('keydown', function(k){11 var keypressed = k.originalEvent.key;12 console.log(keypressed);13 switch(keypressed) {14 case "q":15 active_tool = 'pixel_puller';16 break;17 case "p":18 active_tool = 'colour_picker';19 break;20 case "ArrowUp":21 direction = 'up';22 break;23 case "ArrowDown":24 direction = 'down';25 break;26 case "ArrowLeft":27 direction = 'left';28 break;29 case "ArrowRight":30 direction = 'right';31 break;32 }33 $("#floating_palette input[name=active_tool]").val(active_tool);34 $("#floating_palette input[name=direction]").val(direction);35 });36 $('#selected_colour').on('mousedown', function(){37 $(this).find('img').show();38 });39 $('#selected_colour').on('mouseup', function(event){40 palette_colour_data = get_color(event, paletteData);41 $('#selected_colour').css({'background-color':"rgba("+palette_colour_data.r+", "+palette_colour_data.g+", "+palette_colour_data.b+", "+palette_colour_data.a+")"})42 // $(this).find('img').hide();43 });44}45$(document).ready(function(){46 47 setup_controls();48 setup_images();49 var dropZone = document.getElementById('source_image_container');50 console.log(dropZone);51 // Optional. Show the copy icon when dragging over. Seems to only work for chrome.52 dropZone.addEventListener('dragover', function(e) {53 e.stopPropagation();54 e.preventDefault();55 e.dataTransfer.dropEffect = 'copy';56 });57 // Get file data on drop58 dropZone.addEventListener('drop', function(e) {59 e.stopPropagation();60 e.preventDefault();61 var files = e.dataTransfer.files; // Array of all files62 for (var i=0, file; file=files[i]; i++) {63 if (file.type.match(/image.*/)) {64 var reader = new FileReader();65 reader.onload = function(e2) {66 // finished reading file data.67 var img = document.createElement('img');68 img.src= e2.target.result;69 img.id = 'source_image';70 // document.body.appendChild(img);71 $('#source_image_container *').remove();72 $('#source_image_container').append(img);73 setup_images();74 }75 reader.readAsDataURL(file); // start reading the file data.76 }77 }78 });79});80function getPixel(imgData, index) {81 var i = index*4, d = imgData.data;82 console.log(i, imgData.data.length)83 return [d[i],d[i+1],d[i+2],d[i+3]] // Returns array [R,G,B,A]84}85function getPixelXY(imgData, x, y) {86 return getPixel(imgData, y*imgData.width+x);87}88function get_color(event, imgData) {89 var mouse_coordinates = {x:event.offsetX, y:event.offsetY};90 var colour = getPixelXY(imgData, mouse_coordinates.x, mouse_coordinates.y);91 var image_data = {x:mouse_coordinates.x, y:mouse_coordinates.y, r:colour[0], g:colour[1], b:colour[2], a:colour[3]};92 console.log(image_data);93 return image_data;94}95function setup_images() {96 $board = $('#board');97 var img = document.getElementById('source_image');98 var canvas = document.createElement('canvas');99 var k = 1;100 canvas.width = img.width/k;101 canvas.height = img.height/k;102 canvas.getContext('2d').drawImage(img, 0, 0, img.width/k, img.height/k);103 var context = canvas.getContext("2d");104 var imgData = context.getImageData(0,0,canvas.width,canvas.height);// { data: [r,g,b,a,r,g,b,a,r,g,..], ... }105 // resizing the copy image106 $('#dest_image_container img').remove();107 $('#dest_image_container').append(canvas);108 $('#dest_image_container canvas').css({'width':img.width, 'height':img.height});109 110 $('#dest_image_container canvas').on('mousemove', function(event){111 image_data = get_color(event, imgData);112 image_data.a = 0.25;113 // console.log(image_data);114 switch(active_tool) {115 case 'colour_picker':116 // $('#selected_colour').css({'background-color':"rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")"})117 break;118 case 'pixel_puller':119 default:120 var gradient_final_color = $('#selected_colour').css('background-color'); //$('select[name=gradient_final_colour]').find(":selected").val()121 gradient_final_color_array = gradient_final_color.match(/\d+/g).map(Number);122 gradient_final_color_array.push( parseInt($('[name=gradient_final_colour_opacity]').val())/100 );123 gradient_final_color = "rgb("+gradient_final_color_array.join(',')+")";124 console.log(gradient_final_color);125 if (g_mousedown === true) {126 127 // context.fillStyle = "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")";128 switch(direction) {129 case "up":130 var gradient = context.createLinearGradient(1,image_data.y, 1,0);131 gradient.addColorStop(0, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", 1)");132 gradient.addColorStop(0.25, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")");133 gradient.addColorStop(1, gradient_final_color); //'rgba(0,0,0,0)'134 context.fillStyle = gradient;135 context.fillRect(image_data.x, image_data.y, 1, image_data.y*-1 );136 break;137 case "down":138 var gradient = context.createLinearGradient(1,image_data.y, 1,img.height);139 gradient.addColorStop(0, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", 1)");140 gradient.addColorStop(0.25, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")");141 gradient.addColorStop(1, gradient_final_color); //'rgba(0,0,0,0)'142 context.fillStyle = gradient;143 context.fillRect(image_data.x, image_data.y, 1, img.height-image_data.y );144 break;145 case 'right':146 var gradient = context.createLinearGradient(image_data.x,1, img.width,1);147 gradient.addColorStop(0, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", 1)");148 gradient.addColorStop(0.25, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")");149 gradient.addColorStop(1, gradient_final_color); //'rgba(0,0,0,0)'150 context.fillStyle = gradient;151 context.fillRect(image_data.x, image_data.y, img.width-image_data.x, 1 );152 break;153 case 'left':154 var gradient = context.createLinearGradient(image_data.x,1, 0,1);155 gradient.addColorStop(0, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", 1)");156 gradient.addColorStop(0.25, "rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")");157 gradient.addColorStop(1, gradient_final_color); //'rgba(0,0,0,0)'158 context.fillStyle = gradient;159 context.fillRect(image_data.x, image_data.y, image_data.x*-1, 1 );160 break;161 }162 }163 break;164 }165 });166 $('#dest_image_container canvas').mousedown(function(event){167 g_mousedown = true;168 });169 $('#dest_image_container canvas').mouseup(function(event){170 g_mousedown = false;171 if (active_tool == 'colour_picker') {172 image_data = get_color(event, imgData);173 $('#selected_colour').css({'background-color':"rgba("+image_data.r+", "+image_data.g+", "+image_data.b+", "+image_data.a+")"})174 }175 });...

Full Screen

Full Screen

image_data2.js

Source:image_data2.js Github

copy

Full Screen

1var image_data;2if (!image_data) image_data = []; 3image_data["t_blue_flare.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };4image_data["t_flare_0.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };5image_data["t_flare_1.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };6image_data["t_flare_2.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };7image_data["t_flare_3.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };8image_data["t_flare_4.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };9image_data["t_flare_5.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };10image_data["t_flare_6.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };11image_data["t_flare_7.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };12image_data["t_flare_8.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };13image_data["t_flare_9.png"] = { width: 41, height: 41, x_hot: 20, y_hot: 20, collision_radius: 0 };14image_data["waveflare.png"] = { width: 231, height: 231, x_hot: 115, y_hot: 115, collision_radius: 90 };15image_data["little_cloud.png"] = { width: 32, height: 32, x_hot: 16, y_hot: 16, collision_radius: 0 }; ...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3var options = {4};5wpt.runTest(options, function(err, data) {6 if (err) return console.error(err);7 console.log(data);8});9var wpt = require('webpagetest');10var wpt = new WebPageTest('www.webpagetest.org');11var options = {12};13wpt.runTest(options, function(err, data) {14 if (err) return console.error(err);15 console.log(data);16});17var wpt = require('webpagetest');18var wpt = new WebPageTest('www.webpagetest.org');19var options = {20};21wpt.runTest(options, function(err, data) {22 if (err) return console.error(err);23 console.log(data);24});25var wpt = require('webpagetest');26var wpt = new WebPageTest('www.webpagetest.org');27var options = {

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var options = {3 videoParams: {4 },5 timelineParams: {6 },7 mobileDeviceUA: 'Mozilla/5.0 (Linux; Android 7.0; Moto G (4) Build/NPJS25.93-14.8-1-2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36',8};9var wpt = new WebPageTest('www.webpagetest.org', 'A.9a9b9c9d9e9f9g9h9i9j9k9l9m9n9o9p9q9r9s9t9u9v9w9x9y9z');

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3var params = {4};5wpt.runTest(params, function(err, data) {6 if (err) return console.error(err);7 var testId = data.data.testId;8 wpt.getTestResults(testId, function(err, data) {9 if (err) return console.error(err);10 console.log(data);11 });12});13var wpt = require('webpagetest');14var wpt = new WebPageTest('www.webpagetest.org');15var params = {16};17wpt.runTest(params, function(err, data) {18 if (err) return console.error(err);19 var testId = data.data.testId;20 wpt.getTestResults(testId, function(err, data) {21 if (err) return console.error(err);22 console.log(data);23 });24});

Full Screen

Using AI Code Generation

copy

Full Screen

1var fs = require('fs');2var wpt = require('webpagetest');3var wpt = new WebPageTest('www.webpagetest.org', 'A.7a6f8b6c7d6a3a4e7a6f8b6c7d6a3a4e');4 if (err) return console.error(err);5 wpt.getImageData(data.data.runs[1].firstView.images.waterfall, function(err, data) {6 if (err) return console.error(err);7 fs.writeFile('waterfall.png', data, 'binary', function(err) {8 if (err) return console.error(err);9 console.log('File saved.');10 });11 });12});

Full Screen

Using AI Code Generation

copy

Full Screen

1function image_data_callback(data, status) {2 console.log("image_data_callback");3 console.log("data: " + data);4 console.log("status: " + status);5}6function image_data_callback2(data, status) {7 console.log("image_data_callback2");8 console.log("data: " + data);9 console.log("status: " + status);10}11function image_data_callback3(data, status) {12 console.log("image_data_callback3");13 console.log("data: " + data);14 console.log("status: " + status);15}16function image_data_callback4(data, status) {17 console.log("image_data_callback4");18 console.log("data: " + data);19 console.log("status: " + status);20}21function image_data_callback5(data, status) {22 console.log("image_data_callback5");23 console.log("data: " + data);24 console.log("status: " + status);25}26function image_data_callback6(data, status) {

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful