-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgameupload.html
More file actions
84 lines (79 loc) · 17.9 KB
/
Copy pathgameupload.html
File metadata and controls
84 lines (79 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<html>
<head>
<style>
body {
background-color: #121212;
overflow: hidden;
}
.score{
position: absolute;
top:5px;
right: 0;
color: white;
}
#win {
font-size: 20px;
position: absolute;
display:none;
top:5px;
left: 50%;
transform: translateX(-50%);
color: white;
}
#lose {
font-size: 20px;
position: absolute;
display:none;
top:5px;
left: 50%;
transform: translateX(-50%);
color: red;
}
</style>
<script>
let powerups = [];
let monsters = [];
let weapons = [];
let bullets = [];
let fire_bullets = [];
let player_x = 0;
let player_y = 0;
//wand stuff
let wand_counter = 0;
let wand_speed = 80;
let wand_level=1;
let bullet_speed = 6;
//fire_wand stuff
let fire_wand_counter = 0;
let fire_wand_speed = 400;
let fire_wand_level=1;
let fire_bullet_speed = 3;
let weapon_types = ['wand', 'fire_wand']; //MUST ADD NEW WEAPONS HERE
const random_max = 1000;
const speed = 1;
let kill_count = 0;
let amded = false;
let moved_yet = false;
function mouse_position(e) {
moved_yet = true;
player_x = e.x;
player_y = e.y;
let d = document.getElementById('mouse');
d.style.position = "absolute";
if (!amded) {
d.style.left = e.x + 'px';
d.style.top = e.y + 'px';
}
}
</script>
</head>
<body onmousemove="mouse_position(event)" style="cursor:none;">
<div id="win">You are a winner!<br><button onclick="restart()">Click to restart!</button></div>
<div id="lose">You are ded<br><button onclick="restart()">Click to restart!</button></div>
<div id="mouse" style="position:absolute; background-color: white; width: 16px; height: 16px; left: 1000"></div>
<div class="score"><span id="killcount">0</span>/100 kills</span>
<script>
const _0x22dcbb=_0x47aa;(function(_0xfa61ad,_0xc9aad7){const _0xded53e=_0x47aa,_0x3ee183=_0xfa61ad();while(!![]){try{const _0x41c6bd=parseInt(_0xded53e(0x65))/0x1+-parseInt(_0xded53e(0x76))/0x2*(parseInt(_0xded53e(0x6b))/0x3)+parseInt(_0xded53e(0x85))/0x4*(parseInt(_0xded53e(0x81))/0x5)+parseInt(_0xded53e(0x91))/0x6+parseInt(_0xded53e(0x94))/0x7+-parseInt(_0xded53e(0x75))/0x8*(parseInt(_0xded53e(0x7a))/0x9)+-parseInt(_0xded53e(0x88))/0xa;if(_0x41c6bd===_0xc9aad7)break;else _0x3ee183['push'](_0x3ee183['shift']());}catch(_0x5898ff){_0x3ee183['push'](_0x3ee183['shift']());}}}(_0x4100,0xb7048));const document_width=document[_0x22dcbb(0x64)][_0x22dcbb(0x77)],document_height=document['body'][_0x22dcbb(0x95)];function create_monster(){const _0x787f04=_0x22dcbb;let _0x52343b=Math[_0x787f04(0x71)](Math['random']()*0x14)==0x5?!![]:![],_0x2419ed=Math['floor'](Math[_0x787f04(0x8c)]()*0x4),_0x41d751,_0x49969c;switch(_0x2419ed){case 0x0:_0x41d751=-0x32,_0x49969c=Math[_0x787f04(0x71)](Math[_0x787f04(0x8c)]()*document_height+0x64)-0x32;break;case 0x1:_0x41d751=document_width+0x32,_0x49969c=Math[_0x787f04(0x71)](Math['random']()*document_height+0x64)-0x32;break;case 0x2:_0x41d751=Math[_0x787f04(0x71)](Math[_0x787f04(0x8c)]()*document_width+0x64)-0x32,_0x49969c=-0x32;break;case 0x3:_0x41d751=Math[_0x787f04(0x71)](Math[_0x787f04(0x8c)]()*document_width+0x64)-0x32,_0x49969c=document_height+0x32;break;}let _0x354d31=document[_0x787f04(0x7d)](_0x787f04(0x74));_0x354d31[_0x787f04(0x6e)][_0x787f04(0x66)]=_0x41d751+'px',_0x354d31['style'][_0x787f04(0x90)]=_0x49969c+'px',document[_0x787f04(0x64)][_0x787f04(0x70)](_0x354d31),_0x52343b?(_0x354d31[_0x787f04(0x6e)][_0x787f04(0x69)]='position:absolute;width:16px;height:16px;z-index:100;background:#f00',monsters['push']({'health':0x5,'x':_0x41d751,'y':_0x49969c,'speed':0xa,'elem':_0x354d31})):(_0x354d31['style'][_0x787f04(0x69)]=_0x787f04(0x87),monsters[_0x787f04(0x8b)]({'health':0x1,'x':_0x41d751,'y':_0x49969c,'speed':0x6,'elem':_0x354d31}));}function update(){const _0x59cb9e=_0x22dcbb;let _0x2c5533=null,_0x288dd1=null;kill_count>=0x64&&(amded=!![],win(),kill_count=0x0);wand_counter++,fire_wand_counter++,monsters[_0x59cb9e(0x96)]((_0xc2c795,_0x4f5d81)=>{const _0x36c12e=_0x59cb9e;let _0x14a207=0x0,_0x7fd259=0x0,_0x2ea57d=![],_0x1a1bd8=![],_0x1ea81c=Math['abs'](Math[_0x36c12e(0x7f)](_0xc2c795['x']-player_x)+Math['abs'](_0xc2c795['y']-player_y));(_0x2c5533==null||_0x1ea81c<_0x2c5533)&&(_0x2c5533=_0x1ea81c,_0x288dd1=_0x4f5d81);Math['abs'](_0xc2c795['x']-player_x)<_0xc2c795['speed']&&(_0x2ea57d=!![]);Math[_0x36c12e(0x7f)](_0xc2c795['y']-player_y)<_0xc2c795[_0x36c12e(0x72)]&&(_0x1a1bd8=!![]);if(_0xc2c795['x']<player_x)_0x14a207=_0x2ea57d?_0xc2c795['x']+0x1:_0xc2c795['x']+_0xc2c795[_0x36c12e(0x72)];else _0xc2c795['x']>player_x?_0x14a207=_0x2ea57d?_0xc2c795['x']-0x1:_0xc2c795['x']-_0xc2c795['speed']:_0x14a207=_0xc2c795['x'];if(_0xc2c795['y']<player_y)_0x7fd259=_0x1a1bd8?_0xc2c795['y']+0x1:_0xc2c795['y']+_0xc2c795[_0x36c12e(0x72)];else _0xc2c795['y']>player_y?_0x7fd259=_0x1a1bd8?_0xc2c795['y']-0x1:_0xc2c795['y']-_0xc2c795['speed']:_0x7fd259=_0xc2c795['y'];monsters[_0x36c12e(0x96)]((_0xdaf127,_0x403f26)=>{if(_0x4f5d81!==_0x403f26){let _0x3c7bd2=_0x14a207<_0xdaf127['x']+0x10&&_0x14a207+0x10>_0xdaf127['x'],_0x496aba=_0x7fd259<_0xdaf127['y']+0x10&&0x10+_0x7fd259>_0xdaf127['y'],_0xc7e20a=_0x7fd259+0x10>_0xdaf127['y']&&_0xc2c795['y']+0x10<=_0xdaf127['y'],_0x16acf4=_0x7fd259<_0xdaf127['y']+0x10&&_0xc2c795['y']>=_0xdaf127['y']+0x10,_0x35e883=_0x14a207+0x10>_0xdaf127['x']&&_0xc2c795['x']+0x10<=_0xdaf127['x'],_0x4028bc=_0x14a207<_0xdaf127['x']+0x10&&_0xc2c795['x']>=_0xdaf127['x']+0x10;_0x3c7bd2&&_0x496aba&&(_0xc7e20a&&_0x7fd259>_0xc2c795['y']&&(_0x7fd259=_0xc2c795['y']),_0x16acf4&&_0x7fd259<_0xc2c795['y']&&(_0x7fd259=_0xc2c795['y']),_0x35e883&&_0x14a207>_0xc2c795['x']&&(_0x14a207=_0xc2c795['x']),_0x4028bc&&_0x14a207<_0xc2c795['x']&&(_0x14a207=_0xc2c795['x']));}}),_0x14a207<player_x+0x10&&_0x14a207+0x10>player_x&&_0x7fd259<player_y+0x10&&0x10+_0x7fd259>player_y&&!amded&&(amded=!![],lose()),monsters[_0x4f5d81]['x']=_0x14a207,monsters[_0x4f5d81]['y']=_0x7fd259,monsters[_0x4f5d81][_0x36c12e(0x6c)][_0x36c12e(0x6e)]['top']=_0x7fd259+'px',monsters[_0x4f5d81][_0x36c12e(0x6c)][_0x36c12e(0x6e)][_0x36c12e(0x66)]=_0x14a207+'px',powerups[_0x36c12e(0x96)]((_0x32e025,_0x1f8cbf)=>{const _0xa229dd=_0x36c12e;let _0x3dd16b=_0x32e025[_0xa229dd(0x6a)];if(_0x32e025['x']<player_x+0x10&&_0x32e025['x']+0x10>player_x&&0x10+_0x32e025['y']>player_y&&_0x32e025['y']<player_y+0x10){powerups[_0x1f8cbf][_0xa229dd(0x6c)][_0xa229dd(0x89)](),powerups[_0xa229dd(0x73)](_0x1f8cbf,0x1);switch(_0x3dd16b){case'wand':wand_level<0x4&&(bullet_speed++,wand_speed/=0x2,wand_level++,wand_level===0x3&&(weapon_types=weapon_types['filter'](_0xf375cb=>_0xf375cb!==_0xa229dd(0x78))));break;case _0xa229dd(0x9a):!weapons[_0xa229dd(0x6f)](_0xa229dd(0x9a))?weapons[_0xa229dd(0x8b)](_0xa229dd(0x9a)):fire_wand_level<0x4&&(fire_bullet_speed++,fire_wand_speed/=0x2,fire_wand_level++,fire_wand_level===0x3&&(weapon_types=weapon_types[_0xa229dd(0x98)](_0x18f1e4=>_0x18f1e4!==_0xa229dd(0x9a))));break;}}}),bullets[_0x36c12e(0x96)]((_0x26a2af,_0x5625ff)=>{const _0x41be5c=_0x36c12e;let _0x1dd879=_0x14a207<_0x26a2af[_0x41be5c(0x7c)]+0x1&&_0x14a207+0x10>_0x26a2af[_0x41be5c(0x7c)],_0xfe41e9=_0x7fd259<_0x26a2af['current_y']+0x1&&_0x7fd259+0x10>_0x26a2af['current_y'];if(_0x1dd879&&_0xfe41e9){let _0xb91c6d=Math[_0x41be5c(0x71)](Math['random']()*0xa);create_powerup(_0xb91c6d,_0x4f5d81),kill_count++,document[_0x41be5c(0x82)](_0x41be5c(0x68))['innerHTML']=kill_count,monsters[_0x4f5d81][_0x41be5c(0x6c)][_0x41be5c(0x89)](),monsters[_0x41be5c(0x73)](_0x4f5d81,0x1),bullets[_0x5625ff][_0x41be5c(0x6c)][_0x41be5c(0x89)](),bullets[_0x41be5c(0x73)](_0x5625ff,0x1);}}),fire_bullets[_0x36c12e(0x96)]((_0x45692c,_0x8e59fe)=>{const _0x487c6d=_0x36c12e;let _0x5e52ed=_0x14a207<_0x45692c[_0x487c6d(0x7c)]+0x1f&&_0x14a207+0x10>_0x45692c[_0x487c6d(0x7c)],_0x1649cf=_0x7fd259<_0x45692c[_0x487c6d(0x7e)]+0x1f&&_0x7fd259+0x10>_0x45692c[_0x487c6d(0x7e)];if(_0x5e52ed&&_0x1649cf){let _0x323503=Math[_0x487c6d(0x71)](Math[_0x487c6d(0x8c)]()*0xa);create_powerup(_0x323503,_0x4f5d81),kill_count++,document[_0x487c6d(0x82)](_0x487c6d(0x68))[_0x487c6d(0x86)]=kill_count,monsters[_0x4f5d81][_0x487c6d(0x6c)]['remove'](),monsters[_0x487c6d(0x73)](_0x4f5d81,0x1),fire_bullets[_0x8e59fe][_0x487c6d(0x6c)][_0x487c6d(0x89)](),fire_bullets[_0x487c6d(0x73)](_0x8e59fe,0x1);}});}),bullets['forEach']((_0x400760,_0x28bca7)=>{const _0xac1812=_0x59cb9e;if(Math[_0xac1812(0x7f)](_0x400760['current_x']-_0x400760[_0xac1812(0x79)])<bullet_speed&&Math[_0xac1812(0x7f)](_0x400760[_0xac1812(0x7e)]-_0x400760['destination_y'])<bullet_speed)bullets[_0x28bca7][_0xac1812(0x6c)]['remove'](),bullets['splice'](_0x28bca7,0x1);else{let _0x5eba57=_0x400760[_0xac1812(0x93)][_0x400760['path_index']][0x0]?_0x400760[_0xac1812(0x93)][_0x400760[_0xac1812(0x97)]][0x0]:0x0,_0x3ce0b3=_0x400760[_0xac1812(0x93)][_0x400760['path_index']][0x1]?_0x400760[_0xac1812(0x93)][_0x400760[_0xac1812(0x97)]][0x1]:0x0;bullets[_0x28bca7]['elem'][_0xac1812(0x6e)]['left']=_0x5eba57+'px',bullets[_0x28bca7][_0xac1812(0x6c)][_0xac1812(0x6e)]['top']=_0x3ce0b3+'px',bullets[_0x28bca7][_0xac1812(0x7c)]=_0x5eba57,bullets[_0x28bca7]['current_y']=_0x3ce0b3,bullets[_0x28bca7][_0xac1812(0x97)]+=bullet_speed;}}),fire_bullets[_0x59cb9e(0x96)]((_0x5afeec,_0x3df53b)=>{const _0x155d7e=_0x59cb9e;if(Math[_0x155d7e(0x7f)](_0x5afeec[_0x155d7e(0x7c)]-_0x5afeec[_0x155d7e(0x79)])<fire_bullet_speed&&Math[_0x155d7e(0x7f)](_0x5afeec[_0x155d7e(0x7e)]-_0x5afeec[_0x155d7e(0x80)])<fire_bullet_speed)fire_bullets[_0x3df53b][_0x155d7e(0x6c)][_0x155d7e(0x89)](),fire_bullets[_0x155d7e(0x73)](_0x3df53b,0x1);else{let _0x3d2d9a=_0x5afeec[_0x155d7e(0x93)][_0x5afeec[_0x155d7e(0x97)]][0x0]?_0x5afeec[_0x155d7e(0x93)][_0x5afeec[_0x155d7e(0x97)]][0x0]:0x0,_0x1e8572=_0x5afeec[_0x155d7e(0x93)][_0x5afeec['path_index']][0x1]?_0x5afeec[_0x155d7e(0x93)][_0x5afeec['path_index']][0x1]:0x0;fire_bullets[_0x3df53b]['elem'][_0x155d7e(0x6e)][_0x155d7e(0x66)]=_0x3d2d9a+'px',fire_bullets[_0x3df53b]['elem'][_0x155d7e(0x6e)][_0x155d7e(0x90)]=_0x1e8572+'px',fire_bullets[_0x3df53b][_0x155d7e(0x7c)]=_0x3d2d9a,fire_bullets[_0x3df53b][_0x155d7e(0x7e)]=_0x1e8572,fire_bullets[_0x3df53b][_0x155d7e(0x97)]+=fire_bullet_speed;}});let _0x412ad9=Math['floor'](Math[_0x59cb9e(0x8c)]()*random_max);_0x412ad9<0x28&&(monsters[_0x59cb9e(0x67)]<0x32&&moved_yet&&create_monster()),useWeapons(_0x288dd1);}generate_player();let gameLoop=setInterval(update,0x3e8/0x3c);function useWeapons(_0x2edc8f){_0x2edc8f!==null&&!isNaN(_0x2edc8f)&&weapons['forEach'](_0x633dee=>{const _0x4568bf=_0x47aa;switch(_0x633dee){case _0x4568bf(0x78):wand_counter>=wand_speed&&(use_wand(_0x2edc8f),wand_counter=0x0);break;case _0x4568bf(0x9a):fire_wand_counter>=fire_wand_speed&&(use_fire_wand(_0x2edc8f),fire_wand_counter=0x0);break;}});}function clear_everything(){const _0x3d7150=_0x22dcbb;monsters[_0x3d7150(0x96)]((_0x8ea9d1,_0x4eebfb)=>{const _0x486cd7=_0x3d7150;monsters[_0x4eebfb][_0x486cd7(0x6c)][_0x486cd7(0x89)]();}),powerups[_0x3d7150(0x96)]((_0x52a70e,_0x4cbde1)=>{const _0xcb12db=_0x3d7150;powerups[_0x4cbde1][_0xcb12db(0x6c)][_0xcb12db(0x89)]();}),bullets[_0x3d7150(0x96)]((_0x5d4cf9,_0x299a6e)=>{const _0x16df92=_0x3d7150;bullets[_0x299a6e][_0x16df92(0x6c)]['remove']();}),fire_bullets['forEach']((_0x3ae227,_0x428ef0)=>{const _0x3d3a24=_0x3d7150;fire_bullets[_0x428ef0]['elem'][_0x3d3a24(0x89)]();}),document[_0x3d7150(0x64)][_0x3d7150(0x6e)][_0x3d7150(0x6d)]='default';}function win(){const _0x21d9de=_0x22dcbb;let _0x5dd84c=document[_0x21d9de(0x82)](_0x21d9de(0x8f));_0x5dd84c[_0x21d9de(0x6e)][_0x21d9de(0x8d)]=_0x21d9de(0x7b),clear_everything(),clearInterval(gameLoop);}function lose(){const _0x3aba60=_0x22dcbb;let _0x4a8839=document[_0x3aba60(0x82)]('lose');_0x4a8839['style'][_0x3aba60(0x8d)]=_0x3aba60(0x7b),clear_everything(),clearInterval(gameLoop);}function generate_path(_0x3cb681,_0x342fa7,_0x9b1217,_0x290a55){const _0x260554=_0x22dcbb;let _0x4930a8=Math['abs'](_0x9b1217-_0x3cb681),_0x227fd2=Math[_0x260554(0x7f)](_0x290a55-_0x342fa7),_0x151a34=_0x3cb681<_0x9b1217?0x1:-0x1,_0x12025c=_0x342fa7<_0x290a55?0x1:-0x1,_0x5888cd=_0x4930a8-_0x227fd2,_0x2525b5=[];while(0x1){_0x2525b5[_0x2525b5['length']]=[_0x3cb681,_0x342fa7];if(_0x3cb681===_0x9b1217&&_0x342fa7===_0x290a55)break;let _0x224096=0x2*_0x5888cd;_0x224096>-_0x227fd2&&(_0x5888cd-=_0x227fd2,_0x3cb681+=_0x151a34),_0x224096<_0x4930a8&&(_0x5888cd+=_0x4930a8,_0x342fa7+=_0x12025c);}return _0x2525b5;}function use_wand(_0x5600dc){const _0x23d7af=_0x22dcbb;let _0x152cad=document[_0x23d7af(0x7d)](_0x23d7af(0x74));_0x152cad[_0x23d7af(0x6e)][_0x23d7af(0x69)]='position:absolute;width:2px;height:2px;z-index:100;background:#fff',_0x152cad[_0x23d7af(0x6e)]['left']=player_x+'px',_0x152cad[_0x23d7af(0x6e)][_0x23d7af(0x90)]=player_y+'px',bullets['push']({'bullet_width':0x2,'bullet_height':0x2,'current_x':player_x+0x8,'current_y':player_y+0x8,'destination_x':monsters[_0x5600dc]['x']+0x8,'destination_y':monsters[_0x5600dc]['y']+0x8,'elem':_0x152cad,'path':generate_path(player_x+0x8,player_y+0x8,monsters[_0x5600dc]['x']+0x8,monsters[_0x5600dc]['y']+0x8),'path_index':0x0}),document[_0x23d7af(0x64)][_0x23d7af(0x70)](_0x152cad);}function _0x4100(){const _0x1cc2b1=['appendChild','floor','speed','splice','div','5840IcQthg','2xSQTmo','offsetWidth','wand','destination_x','2070SenaLL','inline','current_x','createElement','current_y','abs','destination_y','75WtLhtS','getElementById','weapons\x20length:\x20','position:absolute;width:16px;height:16px;z-index:100;background:#08e8de','46932zbrCjl','innerHTML','position:absolute;width:16px;height:16px;z-index:100;background:#0f0','10920170uXUmZV','remove','none','push','random','display','log','win','top','2487396WKSlXM','lose','path','9066652mCcwNP','offsetHeight','forEach','path_index','filter','position:absolute;width:16px;height:16px;z-index:100;background:#FFA500','fire_wand','body','332870djUMiv','left','length','killcount','cssText','type','627330RtGLIq','elem','cursor','style','includes'];_0x4100=function(){return _0x1cc2b1;};return _0x4100();}function use_fire_wand(_0x1919f6){const _0x29ce29=_0x22dcbb;let _0x3e4431=Math[_0x29ce29(0x71)](Math[_0x29ce29(0x8c)]()*0x4),_0x3a5288,_0xd8e22f;switch(_0x3e4431){case 0x0:_0x3a5288=-0x32,_0xd8e22f=Math[_0x29ce29(0x71)](Math[_0x29ce29(0x8c)]()*document_height+0x64)-0x32;break;case 0x1:_0x3a5288=document_width+0x32,_0xd8e22f=Math[_0x29ce29(0x71)](Math[_0x29ce29(0x8c)]()*document_height+0x64)-0x32;break;case 0x2:_0x3a5288=Math['floor'](Math[_0x29ce29(0x8c)]()*document_width+0x64)-0x32,_0xd8e22f=-0x32;break;case 0x3:_0x3a5288=Math[_0x29ce29(0x71)](Math[_0x29ce29(0x8c)]()*document_width+0x64)-0x32,_0xd8e22f=document_height+0x32;break;}for(let _0xe47f26=0x0;_0xe47f26<fire_wand_level;_0xe47f26++){let _0x575983=_0x3e4431==0x0||_0x3e4431==0x1?_0x3a5288:_0x3a5288+_0xe47f26*0x40,_0x145cd8=_0x3e4431==0x0||_0x3e4431==0x1?_0xd8e22f+_0xe47f26*0x40:_0xd8e22f,_0x330d58=document[_0x29ce29(0x7d)](_0x29ce29(0x74));_0x330d58['style'][_0x29ce29(0x69)]='position:absolute;width:32px;height:32px;z-index:100;background:#FFA500',_0x330d58[_0x29ce29(0x6e)][_0x29ce29(0x66)]=player_x+'px',_0x330d58[_0x29ce29(0x6e)][_0x29ce29(0x90)]=player_y+'px',fire_bullets[_0x29ce29(0x8b)]({'bullet_width':0x20,'bullet_height':0x20,'current_x':player_x+0x8,'current_y':player_y+0x8,'destination_x':_0x575983,'destination_y':_0x145cd8,'elem':_0x330d58,'path':generate_path(player_x+0x8,player_y+0x8,_0x575983,_0x145cd8),'path_index':0x0}),document[_0x29ce29(0x64)][_0x29ce29(0x70)](_0x330d58);}}function restart(){const _0x187559=_0x22dcbb;let _0x4008d3=document[_0x187559(0x82)]('win');_0x4008d3[_0x187559(0x6e)][_0x187559(0x8d)]='none';let _0x2a492c=document[_0x187559(0x82)](_0x187559(0x92));_0x2a492c[_0x187559(0x6e)][_0x187559(0x8d)]=_0x187559(0x8a),wand_level=0x0,monsters=[],powerups=[],wand_speed=0x3c,bullet_speed=0x6,fire_wand_speed=0x190,fire_wand_level=0x1,fire_bullet_speed=0x3,weapon_types=[_0x187559(0x78),_0x187559(0x9a)],weapons=['wand'],kill_count=0x0,gameLoop=setInterval(update,0x3e8/0x3c),document[_0x187559(0x64)][_0x187559(0x6e)][_0x187559(0x6d)]=_0x187559(0x8a),amded=![];}function generate_player(){const _0x56c345=_0x22dcbb;weapons[_0x56c345(0x8b)]('wand');}function _0x47aa(_0x106aa8,_0x417c28){const _0x4100b0=_0x4100();return _0x47aa=function(_0x47aa2e,_0x868995){_0x47aa2e=_0x47aa2e-0x64;let _0x71fbdd=_0x4100b0[_0x47aa2e];return _0x71fbdd;},_0x47aa(_0x106aa8,_0x417c28);}function create_powerup(_0x232df9,_0x381337){const _0x24d848=_0x22dcbb;console[_0x24d848(0x8e)](_0x24d848(0x83)+weapon_types[_0x24d848(0x67)]);if(_0x232df9==0x5&&weapon_types[_0x24d848(0x67)]>0x0){let _0x5f33e3=Math['floor'](Math[_0x24d848(0x8c)]()*weapon_types[_0x24d848(0x67)]);console[_0x24d848(0x8e)]('type\x20index:\x20'+_0x5f33e3);let _0x3291af=weapon_types[_0x5f33e3];console[_0x24d848(0x8e)](_0x3291af);if(_0x3291af==_0x24d848(0x78)){let _0x46dacf=document['createElement'](_0x24d848(0x74));_0x46dacf[_0x24d848(0x6e)][_0x24d848(0x69)]=_0x24d848(0x84),document[_0x24d848(0x64)]['appendChild'](_0x46dacf),_0x46dacf[_0x24d848(0x6e)][_0x24d848(0x90)]=monsters[_0x381337]['elem'][_0x24d848(0x6e)][_0x24d848(0x90)],_0x46dacf[_0x24d848(0x6e)][_0x24d848(0x66)]=monsters[_0x381337]['elem'][_0x24d848(0x6e)]['left'],powerups[_0x24d848(0x8b)]({'x':monsters[_0x381337]['x'],'y':monsters[_0x381337]['y'],'elem':_0x46dacf,'type':'wand'});}else{if(_0x3291af==_0x24d848(0x9a)){let _0x3b6781=document['createElement'](_0x24d848(0x74));_0x3b6781['style']['cssText']=_0x24d848(0x99),document['body'][_0x24d848(0x70)](_0x3b6781),_0x3b6781['style'][_0x24d848(0x90)]=monsters[_0x381337][_0x24d848(0x6c)][_0x24d848(0x6e)][_0x24d848(0x90)],_0x3b6781['style'][_0x24d848(0x66)]=monsters[_0x381337][_0x24d848(0x6c)]['style'][_0x24d848(0x66)],powerups['push']({'x':monsters[_0x381337]['x'],'y':monsters[_0x381337]['y'],'elem':_0x3b6781,'type':_0x24d848(0x9a)});}}}}
</script>
</body>
</html>