File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,22 @@ function App() {
125
125
126
126
< div className = "card" >
127
127
< div className = "movement-buttons" >
128
- < button onClick = { ( ) => move ( account , Direction . Up ) } >
128
+ < button
129
+ onClick = { ( ) =>
130
+ position && position . vec . y > 0
131
+ ? move ( account , Direction . Up )
132
+ : console . log ( "Reach the borders of the world." )
133
+ } >
129
134
Move Up
130
135
</ button >
131
136
</ div >
132
137
< div className = "movement-buttons" >
133
- < button onClick = { ( ) => move ( account , Direction . Left ) } >
138
+ < button
139
+ onClick = { ( ) =>
140
+ position && position . vec . x > 0
141
+ ? move ( account , Direction . Left )
142
+ : console . log ( "Reach the borders of the world." )
143
+ } >
134
144
Move Left
135
145
</ button >
136
146
< button onClick = { ( ) => move ( account , Direction . Right ) } >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function createSystemCalls(
26
26
entity : entityId ,
27
27
value : {
28
28
player : BigInt ( entityId ) ,
29
- remaining : 10 ,
29
+ remaining : 100 ,
30
30
last_direction : 0 ,
31
31
} ,
32
32
} ) ;
You can’t perform that action at this time.
0 commit comments