File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44![ commit4] ( https://i.imgur.com/tIruBpP.png )
55
6+ [ 🕹 Play it] ( https://balajmarius.itch.io/commit4 )
7+
68### Start 🏁
79
810``` bash
Original file line number Diff line number Diff line change 22 "name" : " commit-4" ,
33 "version" : " 1.0.0" ,
44 "description" : " Classic LCD game" ,
5- "main" : " index .js" ,
6- "repository" : " https://github.com/balajmarius/commit-4.git " ,
5+ "main" : " src/main .js" ,
6+ "repository" : " https://github.com/balajmarius/commit4 " ,
77 "author" : " Balaj Marius <balajmarius93@gmail.com>" ,
88 "license" : " MIT" ,
99 "scripts" : {
1515 "babel-preset-es2015" : " ^6.24.1" ,
1616 "fuse-box" : " ^2.5.0-beta.1" ,
1717 "uglify-js" : " ^3.2.0"
18- },
19- "dependencies" : {}
18+ }
2019}
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ class Column extends Phaser.Group {
5151 previousBullet . disable ( )
5252 }
5353
54+ // fix collison bug
55+ // refactor this
5456 if ( currentBug . active || nextBug . active ) {
5557 this . hit = true
5658 this . score . add ( )
@@ -59,15 +61,14 @@ class Column extends Phaser.Group {
5961 return currentBug . explode ( )
6062 }
6163
62- // switch bullets
6364 currentBullet . disable ( )
6465 previousBullet . activate ( )
6566
6667 if ( nextBug . active ) {
6768 return nextBug . explode ( )
6869 }
6970 }
70-
71+
7172 if ( nextBullet ) {
7273 this . currentPosition --
7374 } else {
Original file line number Diff line number Diff line change 55 < meta name ="viewport " content ="width=device-width ">
66 < link rel ="icon " type ="image/x-icon " href ="images/favicon.ico ">
77 < title > COMMIT 4</ title >
8- < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Fira+Sans ">
8+ < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Anonymous+Pro ">
99 < link rel ="stylesheet " href ="style/style.css "/>
1010</ head >
1111
1212< body >
13- < a href ="https://github.com/balajmarius/commit4 " class ="fork " target ="_blank ">
14- < img src ="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67 " alt ="Fork me on GitHub " data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png ">
15- </ a >
16-
1713 < div class ="game ">
1814 < div class ="preloader "> Loading, please wait...</ div >
1915 < div class ="case "> </ div >
Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ table {
4040 border-collapse : collapse;
4141 border-spacing : 0 ;
4242}
43+ body {
44+ color : # 000000 ;
45+ font-family : 'Anonymous Pro' , Helvetica, Arial, sans-serif;
46+ font-size : 18px ;
47+ text-transform : uppercase;
48+ }
4349.game {
4450 width : 771px ;
4551 position : relative;
@@ -71,20 +77,13 @@ table {
7177 bottom : 0 ;
7278 background : url ('../images/ui/texture.png' );
7379}
74- .fork {
75- top : 0 ;
76- right : 0 ;
77- border : 0 ;
78- position : absolute;
79- }
8080.preloader {
8181 z-index : 400 ;
8282 position : fixed;
83- color : # 000000 ;
84- font-size : 18px ;
85- font-family : 'Fira Sans' , Helvetica, Arial, sans-serif;
83+ text-transform : uppercase;
8684 background-color : # ffffff ;
8785 display : flex;
86+ flex-direction : column;
8887 align-items : center;
8988 justify-content : center;
9089 transition : 300ms ease-in-out;
@@ -93,7 +92,24 @@ table {
9392 left : 0 ;
9493 right : 0 ;
9594}
95+ .preloader ::before {
96+ content : "/" ;
97+ display : inline-block;
98+ margin-bottom : 30px ;
99+ animation : spinner 500ms infinite;
100+ }
96101.hide {
97102 visibility : hidden;
98103 opacity : 0 ;
104+ }
105+ @keyframes spinner {
106+ 0% {
107+ content : "/" ;
108+ }
109+ 33% {
110+ content : "-" ;
111+ }
112+ 66% {
113+ content : "\\" ;
114+ }
99115}
You can’t perform that action at this time.
0 commit comments