styles.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. html {
  2. padding : 0;
  3. background-color : black;
  4. }
  5. body {
  6. margin : 0;
  7. padding : 0;
  8. -webkit-touch-callout:none;
  9. -webkit-tap-highlight-color: rgba(0,0,0,0);
  10. -webkit-text-size-adjust: none;
  11. -webkit-user-select:none;
  12. -moz-user-select:none;
  13. -ms-user-select:none;
  14. user-select:none;
  15. width : 100%;
  16. height : 100%;
  17. }
  18. .load-progress {
  19. position : absolute;
  20. left : 0;
  21. bottom : 0;
  22. height : 5px;
  23. width : 0;
  24. background-color : #666;
  25. }
  26. #main {
  27. position : absolute;
  28. left : 0;
  29. top : 0;
  30. width : 640px;
  31. height : 400px;
  32. left : 50%;
  33. top : 50%;
  34. margin-left : -320px;
  35. margin-top : -200px;
  36. overflow : hidden;
  37. }
  38. #game, #menu, #title-screen {
  39. position : absolute;
  40. left : 0;
  41. top : 0;
  42. width : 100%;
  43. height : 100%;
  44. display : none;
  45. background-repeat : no-repeat;
  46. }
  47. #title-screen {
  48. background-image : url(art/title.png);
  49. display : block;
  50. }
  51. #game {
  52. background-color : rgb(0,56,56);
  53. background-image : url(art/gamebg.png);
  54. }
  55. #game .loading {
  56. background-color : rgb(0,56,56);
  57. display : none;
  58. position : absolute;
  59. left : 0;
  60. top : 0;
  61. width : 100%;
  62. height : 320px;
  63. z-index : 60;
  64. }
  65. #game .loading img {
  66. position : absolute;
  67. left : 50%;
  68. top : 50%;
  69. margin-left : -224px;
  70. margin-top : -48px;
  71. }
  72. #game .renderer {
  73. z-index : 50;
  74. background-color : #222;
  75. overflow : hidden;
  76. position : absolute;
  77. left : 16px;
  78. top : 8px;
  79. cursor : crosshair;
  80. }
  81. #game *,
  82. #game .renderer div,
  83. #game .renderer div img,
  84. #game .renderer .sprite,
  85. #game .renderer .sprite img {
  86. image-rendering : optimizeSpeed;
  87. image-rendering : -moz-crisp-edges;
  88. image-rendering : -o-crisp-edges;
  89. image-rendering : optimize-contrast;
  90. image-rendering : -webkit-optimize-contrast;
  91. -ms-interpolation-mode: nearest-neighbor;
  92. }
  93. #game .renderer .player-weapon {
  94. z-index : 100000000;
  95. width : 256px;
  96. height : 256px;
  97. position : absolute;
  98. bottom : 0;
  99. left : 50%;
  100. margin-left : -128px;
  101. background-image : url(art/attack.png);
  102. background-repeat : no-repeat;
  103. }
  104. #game .renderer .overlay {
  105. z-index : 200000000;
  106. width : 100%;
  107. height : 100%;
  108. position : absolute;
  109. top : 0;
  110. left : 0;
  111. display : none;
  112. }
  113. #game .renderer .damage-flash {
  114. background : rgba(255,0,0,0.25);
  115. }
  116. #game .renderer .bonus-flash {
  117. background : rgba(255,255,128,0.20);
  118. }
  119. #game .renderer .death {
  120. background : rgba(255,0,0,0);
  121. }
  122. #game .renderer .pause {
  123. background : rgba(32,32,32,0.5);
  124. }
  125. #game .renderer .pause img {
  126. position : absolute;
  127. left : 50%;
  128. top : 50%;
  129. margin-left : -64px;
  130. margin-top : -32px;
  131. }
  132. #game .ceiling, #game .floor {
  133. position : absolute;
  134. z-index : 0;
  135. left : 0;
  136. width : 100%;
  137. height : 50%;
  138. }
  139. #game .ceiling {
  140. top : 0;
  141. }
  142. #game .floor{
  143. top : 50%;
  144. }
  145. #game .hud {
  146. position : absolute;
  147. z-index : 100;
  148. bottom : 0;
  149. width : 640px;
  150. height : 80px;
  151. background-image : url(art/hudbg.png);
  152. }
  153. #game .hud .bj {
  154. position : absolute;
  155. width : 48px;
  156. height : 64px;
  157. left : 273px;
  158. top : 9px;
  159. overflow : hidden;
  160. background-image : url(art/bj.png);
  161. }
  162. #game .hud .key1,
  163. #game .hud .key2 {
  164. position : absolute;
  165. width : 16px;
  166. height : 32px;
  167. left : 480px;
  168. overflow : hidden;
  169. background-image : url(art/hudkeys.png);
  170. }
  171. #game .hud .key1 {
  172. top : 8px;
  173. }
  174. #game .hud .key2 {
  175. top : 40px;
  176. background-position : -16px 0;
  177. }
  178. #game .hud .weapon {
  179. position : absolute;
  180. width : 96px;
  181. height : 48px;
  182. left : 512px;
  183. top : 16px;
  184. overflow : hidden;
  185. background-image : url(art/hudweapons.png);
  186. }
  187. #game .hud .number-container {
  188. position : absolute;
  189. height : 32px;
  190. top : 32px;
  191. }
  192. #game .hud .floor {
  193. left : 48px;
  194. }
  195. #game .hud .score {
  196. left : 96px;
  197. }
  198. #game .hud .lives {
  199. left : 224px;
  200. }
  201. #game .hud .health {
  202. left : 336px;
  203. }
  204. #game .hud .ammo {
  205. left : 428px;
  206. }
  207. #game .hud .number {
  208. display : inline-block;
  209. width : 16px;
  210. height : 32px;
  211. overflow : hidden;
  212. margin : 0;
  213. background-image : url(art/hudnumbers.png);
  214. background-repeat : no-repeat;
  215. }
  216. #game .fps {
  217. position : absolute;
  218. display : none;
  219. z-index : 1000;
  220. left : 20px;
  221. top : 15px;
  222. font-family : courier new;
  223. font-size : 16px;
  224. width : 70px;
  225. height : 16px;
  226. background : rgba(0,0,0,0.3);
  227. color : rgb(200,200,200);
  228. padding : 5px;
  229. }
  230. #text-screen {
  231. background-color : #8a0000;
  232. position : absolute;
  233. height : 100%;
  234. width : 100%;
  235. left : 0;
  236. top : 0;
  237. z-index : 500;
  238. display : none;
  239. }
  240. #game .intermission,
  241. #game .gameover {
  242. position : absolute;
  243. height : 100%;
  244. width : 100%;
  245. left : 0;
  246. top : 0;
  247. background-color : #004141;
  248. display : none;
  249. }
  250. #game .gameover {
  251. background-image : url(art/intermission_gameover.png);
  252. }
  253. #game .intermission > div {
  254. position : absolute;
  255. }
  256. #game .intermission .background,
  257. #game .intermission .background-secret,
  258. #game .intermission .background-victory {
  259. position : absolute;
  260. background-image : url(art/intermission.png);
  261. height : 100%;
  262. width : 100%;
  263. left : 0;
  264. top : 0;
  265. z-index : 0;
  266. display : none;
  267. }
  268. #game .intermission .background-secret {
  269. background-image : url(art/intermission_secret.png);
  270. }
  271. #game .intermission .background-victory {
  272. background-image : url(art/intermission_victory.png);
  273. }
  274. #game .intermission .bj {
  275. left : 40px;
  276. top : 32px;
  277. width : 162px;
  278. height : 174px;
  279. background-image : url(art/intermissionbj.png);
  280. overflow : hidden;
  281. z-index : 10;
  282. }
  283. #game .intermission .stat,
  284. #game .intermission .victory-stat {
  285. z-index : 10;
  286. }
  287. #game .intermission .bonus {
  288. left : 412px;
  289. top : 108px;
  290. }
  291. #game .intermission .floor {
  292. left : 412px;
  293. top : 32px;
  294. }
  295. #game .intermission .total-time-minutes {
  296. top : 128px;
  297. left : 224px;
  298. }
  299. #game .intermission .total-time-seconds {
  300. top : 128px;
  301. left : 306px;
  302. }
  303. #game .intermission .time-minutes,
  304. #game .intermission .par-minutes {
  305. left : 412px;
  306. }
  307. #game .intermission .time-seconds,
  308. #game .intermission .par-seconds {
  309. left : 498px;
  310. }
  311. #game .intermission .time-minutes,
  312. #game .intermission .time-seconds {
  313. top : 152px;
  314. }
  315. #game .intermission .par-minutes,
  316. #game .intermission .par-seconds {
  317. top : 184px;
  318. }
  319. #game .intermission .kill-ratio,
  320. #game .intermission .secret-ratio,
  321. #game .intermission .treasure-ratio {
  322. left : 492px;
  323. }
  324. #game .intermission .kill-ratio {
  325. top : 224px;
  326. }
  327. #game .intermission .secret-ratio {
  328. top : 256px;
  329. }
  330. #game .intermission .treasure-ratio {
  331. top : 288px;
  332. }
  333. #game .intermission .avg-kill-ratio,
  334. #game .intermission .avg-secret-ratio,
  335. #game .intermission .avg-treasure-ratio {
  336. left : 384px;
  337. }
  338. #game .intermission .avg-kill-ratio {
  339. top : 224px;
  340. }
  341. #game .intermission .avg-secret-ratio {
  342. top : 256px;
  343. }
  344. #game .intermission .avg-treasure-ratio {
  345. top : 288px;
  346. }
  347. #game .intermission .digit {
  348. display : inline-block;
  349. width : 32px;
  350. height : 32px;
  351. background-image : url(art/intermissionfont.png);
  352. background-repeat : no-repeat;
  353. background-position : 32px 0px;
  354. }
  355. #game .intermission .num-0 {
  356. background-position : 0px 0px;
  357. }
  358. #game .intermission .num-1 {
  359. background-position : -32px 0px;
  360. }
  361. #game .intermission .num-2 {
  362. background-position : -64px 0px;
  363. }
  364. #game .intermission .num-3 {
  365. background-position : -96px 0px;
  366. }
  367. #game .intermission .num-4 {
  368. background-position : -128px 0px;
  369. }
  370. #game .intermission .num-5 {
  371. background-position : -160px 0px;
  372. }
  373. #game .intermission .num-6 {
  374. background-position : -192px 0px;
  375. }
  376. #game .intermission .num-7 {
  377. background-position : -224px 0px;
  378. }
  379. #game .intermission .num-8 {
  380. background-position : -256px 0px;
  381. }
  382. #game .intermission .num-9 {
  383. background-position : -288px 0px;
  384. }
  385. #menu div.menu {
  386. width : 100%;
  387. height : 100%;
  388. }
  389. #menu div.menu.main {
  390. background-image : url(art/menubg_main.png);
  391. }
  392. #menu div.menu.episodes {
  393. background-image : url(art/menubg_episodes.png);
  394. }
  395. #menu div.menu.levels {
  396. background-image : url(art/menubg_levels.png);
  397. }
  398. #menu div.menu.skill {
  399. background-image : url(art/menubg_skill.png);
  400. }
  401. #menu div.menu.sound {
  402. background-image : url(art/menubg_sound.png);
  403. }
  404. #menu div.menu.control {
  405. background-image : url(art/menubg_control.png);
  406. }
  407. #menu div.menu.customize {
  408. background-image : url(art/menubg_customize.png);
  409. }
  410. #menu ul {
  411. list-style : none;
  412. margin : 0;
  413. padding : 0;
  414. position : absolute;
  415. }
  416. #menu div.menu.main ul {
  417. left : 196px;
  418. top : 118px;
  419. width : 330px;
  420. height : 232px;
  421. }
  422. #menu div.menu.sound ul {
  423. left : 150px;
  424. top : 87px;
  425. width : 330px;
  426. height : 232px;
  427. }
  428. #menu div.menu.episodes ul {
  429. left : 44px;
  430. top : 100px;
  431. width : 550px;
  432. height : 240px;
  433. }
  434. #menu div.menu.skill ul {
  435. left : 144px;
  436. top : 186px;
  437. width : 384px;
  438. height : 128px;
  439. }
  440. #menu div.menu.levels ul {
  441. left : 90px;
  442. top : 110px;
  443. width : 256px;
  444. height : 240px;
  445. }
  446. #menu div.menu.control ul {
  447. left : 160px;
  448. top : 156px;
  449. width : 350px;
  450. height : 100px;
  451. }
  452. #menu div.menu.customize ul {
  453. left : 116px;
  454. top : 192px;
  455. width : 512px;
  456. height : 96px;
  457. }
  458. #menu ul.two-column{
  459. position : relative;
  460. float : left;
  461. width : 256px;
  462. }
  463. /* menu items */
  464. #menu ul li div.button {
  465. display : block;
  466. height : 24px;
  467. cursor : pointer;
  468. margin-bottom : 8px;
  469. background-image : url(art/menuitems.png);
  470. }
  471. #menu li.newgame div.button {
  472. background-position : 0 0;
  473. }
  474. #menu li.active.newgame div.button {
  475. background-position : -384px 0;
  476. }
  477. #menu li.sound div.button {
  478. background-position : 0 -32px;
  479. }
  480. #menu li.active.sound div.button {
  481. background-position : -384px -32px;
  482. }
  483. #menu li.control div.button {
  484. background-position : 0 -64px;
  485. }
  486. #menu li.active.control div.button {
  487. background-position : -384px -64px;
  488. }
  489. #menu li.readthis div.button {
  490. background-position : 0 -96px;
  491. }
  492. #menu li.active.readthis div.button {
  493. background-position : -384px -96px;
  494. }
  495. #menu li.resumegame div.button {
  496. background-position : 0 -128px;
  497. }
  498. #menu li.active.resumegame div.button {
  499. background-position : -384px -128px;
  500. }
  501. #menu li.baby div.button {
  502. background-position : 0 -160px;
  503. }
  504. #menu li.active.baby div.button {
  505. background-position : -384px -160px;
  506. }
  507. #menu li.easy div.button {
  508. background-position : 0 -192px;
  509. }
  510. #menu li.active.easy div.button {
  511. background-position : -384px -192px;
  512. }
  513. #menu li.medium div.button {
  514. background-position : 0 -224px;
  515. }
  516. #menu li.active.medium div.button {
  517. background-position : -384px -224px;
  518. }
  519. #menu li.hard div.button {
  520. background-position : 0 -256px;
  521. }
  522. #menu li.active.hard div.button {
  523. background-position : -384px -256px;
  524. }
  525. #menu li.sfxoff {
  526. margin-bottom : 58px;
  527. }
  528. #menu li.sfxon div.button,
  529. #menu li.musicon div.button,
  530. #menu li.sfxoff div.button,
  531. #menu li.musicoff div.button {
  532. margin-left : 48px;
  533. width : 256px;
  534. }
  535. #menu li.sfxon div.button,
  536. #menu li.musicon div.button {
  537. background-position : 0 -288px;
  538. }
  539. #menu li.active.sfxon div.button,
  540. #menu li.active.musicon div.button {
  541. background-position : -384px -288px;
  542. }
  543. #menu li.sfxoff div.button,
  544. #menu li.musicoff div.button {
  545. background-position : 0 -320px;
  546. }
  547. #menu li.active.sfxoff div.button,
  548. #menu li.active.musicoff div.button {
  549. background-position : -384px -320px;
  550. }
  551. #menu li.mouseenabled div.button {
  552. background-position : 0 -352px;
  553. }
  554. #menu li.active.mouseenabled div.button {
  555. background-position : -384px -352px;
  556. }
  557. #menu li.customize div.button {
  558. background-position : 0 -384px;
  559. }
  560. #menu li.active.customize div.button {
  561. background-position : -384px -384px;
  562. }
  563. #menu div.menu.episodes ul {
  564. height:230px;
  565. width:570px;
  566. overflow-y:scroll;
  567. overflow-x:hidden;
  568. }
  569. #menu div.menu.episodes li div.button {
  570. height : 56px;
  571. width : 550px;
  572. background-image : url(art/menuitems_episodes.png);
  573. }
  574. #menu div.menu.episodes li.episode-0 div.button {
  575. background-position : 0 0;
  576. }
  577. #menu div.menu.episodes li.active.episode-0 div.button {
  578. background-position : 0 -56px;
  579. }
  580. #menu div.menu.episodes li.episode-1 div.button {
  581. background-position : 0 -112px;
  582. }
  583. #menu div.menu.episodes li.active.episode-1 div.button {
  584. background-position : 0 -168px;
  585. }
  586. #menu div.menu.episodes li.episode-2 div.button {
  587. background-position : 0 -224px;
  588. }
  589. #menu div.menu.episodes li.active.episode-2 div.button {
  590. background-position : 0 -280px;
  591. }
  592. #menu div.menu.episodes li.episode-3 div.button {
  593. background-position : 0 -336px;
  594. }
  595. #menu div.menu.episodes li.active.episode-3 div.button {
  596. background-position : 0 -392px;
  597. }
  598. #menu div.menu.episodes li.episode-4 div.button {
  599. background-position : 0 -448px;
  600. }
  601. #menu div.menu.episodes li.active.episode-4 div.button {
  602. background-position : 0 -504px;
  603. }
  604. #menu div.menu.episodes li.episode-5 div.button {
  605. background-position : 0 -560px;
  606. }
  607. #menu div.menu.episodes li.active.episode-5 div.button {
  608. background-position : 0 -616px;
  609. }
  610. #menu div.menu.levels li div.button {
  611. width : 256px;
  612. margin-bottom : 16px;
  613. background-image : url(art/menuitems_levels.png);
  614. }
  615. #menu li.level-0 div.button {
  616. background-position : 0 0;
  617. }
  618. #menu li.active.level-0 div.button {
  619. background-position : -256px 0;
  620. }
  621. #menu li.level-1 div.button {
  622. background-position : 0 -32px;
  623. }
  624. #menu li.active.level-1 div.button {
  625. background-position : -256px -32px;
  626. }
  627. #menu li.level-2 div.button {
  628. background-position : 0 -64px;
  629. }
  630. #menu li.active.level-2 div.button {
  631. background-position : -256px -64px;
  632. }
  633. #menu li.level-3 div.button {
  634. background-position : 0 -96px;
  635. }
  636. #menu li.active.level-3 div.button {
  637. background-position : -256px -96px;
  638. }
  639. #menu li.level-4 div.button {
  640. background-position : 0 -128px;
  641. }
  642. #menu li.active.level-4 div.button {
  643. background-position : -256px -128px;
  644. }
  645. #menu li.level-5 div.button {
  646. background-position : 0 -160px;
  647. }
  648. #menu li.active.level-5 div.button {
  649. background-position : -256px -160px;
  650. }
  651. #menu li.level-6 div.button {
  652. background-position : 0 -192px;
  653. }
  654. #menu li.active.level-6 div.button {
  655. background-position : -256px -192px;
  656. }
  657. #menu li.level-7 div.button {
  658. background-position : 0 -224px;
  659. }
  660. #menu li.active.level-7 div.button {
  661. background-position : -256px -224px;
  662. }
  663. #menu li.level-8 div.button{
  664. background-position : 0 -256px;
  665. }
  666. #menu li.active.level-8 div.button {
  667. background-position : -256px -256px;
  668. }
  669. #menu li.level-9 div.button {
  670. background-position : 0 -288px;
  671. }
  672. #menu li.active.level-9 div.button {
  673. background-position : -256px -288px;
  674. }
  675. /* menu toggle light */
  676. #menu div.light {
  677. width : 42px;
  678. height : 16px;
  679. margin-left : -48px;
  680. margin-top : 4px;
  681. overflow : hidden;
  682. display : inline-block;
  683. background-image : url(art/menulight.png);
  684. }
  685. #menu div.light.on {
  686. background-position : 0 24px;
  687. }
  688. /* menu selector gun */
  689. #menu ul.selector li.active::before {
  690. display : block;
  691. width : 46px;
  692. height : 24px;
  693. position : absolute;
  694. left : -50px;
  695. content : "";
  696. background-image : url(art/menuselector.png);
  697. }
  698. #menu div.menu.control ul.selector li.active::before {
  699. left : -100px;
  700. }
  701. /* customize keys menu */
  702. #menu div.menu.customize ul.selector li.active::before {
  703. left : -96px;
  704. }
  705. #menu div.menu.customize li div.button {
  706. margin-bottom : 28px;
  707. background : none;
  708. }
  709. #menu div.menu.customize li div.button span {
  710. position : relative;
  711. display : inline-block;
  712. width : 122px;
  713. height : 28px;
  714. background-image : url(art/control_keys.png);
  715. background-position : 0 -128px;
  716. margin-right : -6px;
  717. }
  718. #menu div.menu.customize li div.button span.k1 {
  719. }
  720. #menu div.menu.customize li div.button span.k2 {
  721. }
  722. #menu div.menu.customize li div.button span.k3 {
  723. }
  724. #menu div.menu.customize li div.button span.k4 {
  725. }
  726. #menu div.menu.customize li div.button span:hover {
  727. }
  728. /* skill menu face */
  729. #menu div.menu.skill div.face {
  730. width : 48px;
  731. height : 64px;
  732. left : 460px;
  733. top : 210px;
  734. position : absolute;
  735. background-image : url(art/skillfaces.png);
  736. }
  737. #menu div.menu.skill div.face.gd_baby {
  738. background-position : 0 0;
  739. }
  740. #menu div.menu.skill div.face.gd_easy {
  741. background-position : -48px 0;
  742. }
  743. #menu div.menu.skill div.face.gd_medium {
  744. background-position : -96px 0;
  745. }
  746. #menu div.menu.skill div.face.gd_hard {
  747. background-position : -144px 0;
  748. }
  749. /* menu confirm box */
  750. #menu .message {
  751. position : absolute;
  752. z-index : 1000;
  753. left : 0;
  754. top : 0;
  755. width : 100%;
  756. height : 100%;
  757. display : none;
  758. }
  759. #menu .message.confirm-newgame div.box {
  760. position : absolute;
  761. width : 460px;
  762. height : 100px;
  763. left : 50%;
  764. top : 50%;
  765. margin-left : -230px;
  766. margin-top : -50px;
  767. overflow : hidden;
  768. background-image : url(art/confirm_newgame.png);
  769. }
  770. #menu .message.confirm-newgame div.box.blink {
  771. background-position : 0 100px;
  772. }