pacman.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. #playgroundContainer {
  2. width: 448px;
  3. height: 512px;
  4. background-color: black;
  5. margin-left: auto;
  6. margin-right: auto;
  7. }
  8. .actor {
  9. width: 32px;
  10. height: 32px;
  11. position: relative;
  12. margin-top: -16px;
  13. margin-left: -16px;
  14. }
  15. /** TILES **/
  16. .tile {
  17. width: 16px;
  18. height: 16px;
  19. float: left;
  20. margin: 0px;
  21. padding: 0px;
  22. }
  23. .corner1 {
  24. background-image: url('../img/sprite.png');
  25. background-position: -0px -0px;
  26. }
  27. .corner2 {
  28. background-image: url('../img/sprite.png');
  29. background-position: -16px -0px;
  30. }
  31. .corner3 {
  32. background-image: url('../img/sprite.png');
  33. background-position: -32px 0px;
  34. }
  35. .corner4 {
  36. background-image: url('../img/sprite.png');
  37. background-position: -48px 0px;
  38. }
  39. .horizontalMidUp {
  40. background-image: url('../img/sprite.png');
  41. background-position: -96px -0px;
  42. }
  43. .horizontalMidDown {
  44. background-image: url('../img/sprite.png');
  45. background-position: -112px -0px;
  46. }
  47. .verticalMidLeft {
  48. background-image: url('../img/sprite.png');
  49. background-position: -64px -0px;
  50. }
  51. .verticalMidRight {
  52. background-image: url('../img/sprite.png');
  53. background-position: -80px -0px;
  54. }
  55. .squareCornerTopLeft {
  56. background-image: url('../img/sprite.png');
  57. background-position: -128px -0px;
  58. }
  59. .squareCornerTopRight {
  60. background-image: url('../img/sprite.png');
  61. background-position: -144px -0px;
  62. }
  63. .squareCornerBottomLeft {
  64. background-image: url('../img/sprite.png');
  65. background-position: -160px -0px;
  66. }
  67. .squareCornerBottomRight {
  68. background-image: url('../img/sprite.png');
  69. background-position: -176px -0px;
  70. }
  71. .gate {
  72. background-image: url('../img/sprite.png');
  73. background-position: -192px -0px;
  74. }
  75. .dot {
  76. background-image: url('../img/sprite.png');
  77. background-position: -208px -0px;
  78. }
  79. .bigDot {
  80. background-image: url('../img/sprite.png');
  81. background-position: -208px -16px;
  82. }
  83. .ghost {
  84. width: 32px;
  85. height: 32px;
  86. float: left;
  87. }
  88. .blinky {
  89. background-image: url('../img/sprite.png');
  90. background-position: -160px -48px;
  91. }
  92. .pinky {
  93. background-image: url('../img/sprite.png');
  94. background-position: -160px -80px;
  95. }
  96. .inky {
  97. background-image: url('../img/sprite.png');
  98. background-position: -160px -112px;
  99. }
  100. .clyde {
  101. background-image: url('../img/sprite.png');
  102. background-position: -160px -144px;
  103. }
  104. .cherries {
  105. background-image: url('../img/sprite.png');
  106. background-position: -208px -32px;
  107. }
  108. .strawberry {
  109. background-image: url('../img/sprite.png');
  110. background-position: -208px -48px;
  111. }
  112. .peach {
  113. background-image: url('../img/sprite.png');
  114. background-position: -208px -64px;
  115. }
  116. .apple {
  117. background-image: url('../img/sprite.png');
  118. background-position: -208px -80px;
  119. }
  120. .grapes {
  121. background-image: url('../img/sprite.png');
  122. background-position: -208px -96px;
  123. }
  124. .galaxian {
  125. background-image: url('../img/sprite.png');
  126. background-position: -208px -112px;
  127. }
  128. .bell {
  129. background-image: url('../img/sprite.png');
  130. background-position: -208px -128px;
  131. }
  132. .key {
  133. background-image: url('../img/sprite.png');
  134. background-position: -208px -144px;
  135. }
  136. .description {
  137. padding-left: 40px;
  138. line-height: 3em;
  139. vertical-align: middle;
  140. }
  141. /** HUD **/
  142. #message {
  143. position : absolute;
  144. left : 50%;
  145. top : 50%;
  146. }
  147. #level {
  148. position : relative;
  149. top: -10px;
  150. left: 5px;
  151. }
  152. #levelNumber {
  153. position : relative;
  154. top: -14px;
  155. float: left;
  156. margin-left: 100px;
  157. }
  158. #lives {
  159. position: absolute;
  160. top: -1px;
  161. right: 10px;
  162. }
  163. #scoreMessage {
  164. position: absolute;
  165. right: 0px;
  166. }
  167. .life {
  168. width: 32px;
  169. height: 32px;
  170. float: left;
  171. background-image: url('../img/sprite.png');
  172. background-position: 0px -16px;
  173. }
  174. /** SCOREBOARD**/
  175. .clock {
  176. background : transparent url("../img/font.png") no-repeat top left;
  177. height:32px;
  178. width:32px;
  179. float:left;
  180. }
  181. .clock.red {
  182. background : transparent url("../img/font-red.png") no-repeat top left;
  183. }
  184. .clock.yellow {
  185. background : transparent url("../img/font-yellow.png") no-repeat top left;
  186. }
  187. .clock.small {
  188. position: relative;
  189. top: 45%;
  190. height: 16px;
  191. width: 16px;
  192. }
  193. .n0 {
  194. background-position : 0px 0px;
  195. }
  196. .n1 {
  197. background-position : -32px 0px;
  198. }
  199. .n2 {
  200. background-position : -64px 0px;
  201. }
  202. .n3 {
  203. background-position : -96px 0px;
  204. }
  205. .n4 {
  206. background-position : -128px 0px;
  207. }
  208. .n5 {
  209. background-position : -160px 0px;
  210. }
  211. .n6 {
  212. background-position : -192px 0px;
  213. }
  214. .n7 {
  215. background-position : -224px 0px;
  216. }
  217. .n8 {
  218. background-position : -256px 0px;
  219. }
  220. .n9 {
  221. background-position : -288px 0px;
  222. }
  223. .hiddenDot {
  224. visibility: hidden;
  225. }