File tree Expand file tree Collapse file tree 6 files changed +35
-29
lines changed
Expand file tree Collapse file tree 6 files changed +35
-29
lines changed Original file line number Diff line number Diff line change 1212°Player dash animation
1313°Coin particles after enemy defeat
1414°Text-box when player reaches certain dominants in a scene
15- °Cutscenes
15+ °Cutscenes
16+
17+ FIXES
18+ °Touch control auto movement
Original file line number Diff line number Diff line change 6464 < div id ='leftControlButtons '>
6565 < button id ='left ' class ='playButtons '> l</ button >
6666 < button id ='right ' class ='playButtons '> r</ button >
67+ < button id ='down ' class ='playButtons '> d</ button >
6768 </ div >
6869 < div id ='rightControlButtons '>
69- < button id ='special ' class ='playButtons ' > y</ button >
7070 < button id ='rangedShot ' class ='playButtons '> a</ button >
7171 < button id ='up ' class ='playButtons '> u</ button >
72- < button id ='down ' class ='playButtons '> d</ button >
7372 < button id ='slash ' class ='playButtons '> s</ button >
7473 </ div >
7574 < div id ="go-to ">
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ class Input{
1818 this . keypressed = true ;
1919 }
2020 } ) ;
21+ btn . addEventListener ( 'touchmove' , ( e ) => {
22+ if ( this . keys . indexOf ( e . target . id ) > - 1 ) {
23+ this . keys . splice ( this . keys . indexOf ( e . target . id ) , 1 ) ;
24+ this . lastKey = "" ;
25+ this . keypressed = false ;
26+ }
27+ } )
28+
2129 btn . addEventListener ( 'touchend' , ( e ) => {
2230 if ( this . keys . indexOf ( e . target . id ) > - 1 ) {
2331 this . keys . splice ( this . keys . indexOf ( e . target . id ) , 1 ) ;
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ export class PlayScene extends BaseScene{
393393 //cam.roundPixels = false;
394394 //lerp
395395 cam . setLerp ( 0.1 , 0.1 ) ;
396- cam . fadeIn ( 6000 ) ;
396+ cam . fadeIn ( 1000 ) ;
397397 // cam.rotateTo(0.1)
398398
399399 return cam ;
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export class PlayerIdle extends PlayerState{
6565 this . player . stateMachine . setState ( new PlayerJump ( this . player ) ) ;
6666 myInput . keypressed = false ;
6767 }
68+
6869 //climb
6970 if ( this . player . canClimbUp || this . player . canClimbDown ) {
7071 this . player . body . setAllowGravity ( false )
Original file line number Diff line number Diff line change @@ -139,22 +139,22 @@ section#playScreen{
139139
140140# leftControlButtons
141141{
142- /* border: 2px solid white; */
142+ /* border: 2px solid white; */
143143 position : absolute;
144- bottom : 2 % ;
145- left : 3 % ;
144+ bottom : 6 % ;
145+ left : 4 % ;
146146 width : 30% ;
147- height : 30 % ;
147+ height : 35 % ;
148148 display : flex;
149149 align-items : center;
150150 justify-content : center;
151151}
152152# rightControlButtons
153153{
154- /* border: 2px solid white; */
154+ /* border: 2px solid white; */
155155 position : absolute;
156- bottom : 2 % ;
157- right : 3 % ;
156+ bottom : 6 % ;
157+ right : 4 % ;
158158 width : 30% ;
159159 height : 40% ;
160160 display : flex;
@@ -174,7 +174,7 @@ section#playScreen{
174174}
175175
176176# rightControlButtons button {
177- width : 25 % ;
177+ width : 40 % ;
178178 height : 40% ;
179179 color : white;
180180 background : transparent;
@@ -188,46 +188,41 @@ section#playScreen{
188188# left
189189{
190190 position : absolute;
191+ top : 0 ;
191192 left : 0 ;
192193}
193194# right
194195{
195196 position : absolute;
197+ top : 0 ;
196198 right : 0 ;
197199}
198-
199- /*right control buttons*/
200- # special
200+ # down
201201{
202202 position : absolute;
203- top : calc (50% - 20% );
204- left : calc (50% - 12.5% );
203+ bottom : 0 ;
204+ left : calc (50% -40% );
205+
205206}
207+ /*right control buttons*/
206208# up
207209{
208210 position : absolute;
209211 top : 0 ;
210- right : 0 ;
211- }
212- # down
213- {
214- position : absolute;
215- bottom : 3% ;
216- right : 0 ;
217-
212+ left : calc (50% -40% );
218213}
214+
219215# rangedShot
220216{
221217 position : absolute;
222- bottom : 3 % ;
223- left : 0 ;
218+ bottom : 0 ;
219+ right : 0 ;
224220}
225221# slash
226222{
227223 position : absolute;
228- top : 0 ;
224+ bottom : 0 ;
229225 left : 0 ;
230-
231226}
232227/* LEVEL-COMPLETE */
233228section # levelCompleteScreen {
You can’t perform that action at this time.
0 commit comments