Skip to content

Commit

Permalink
feat: 플레이어 속도 조절
Browse files Browse the repository at this point in the history
  • Loading branch information
yunuo46 committed May 10, 2024
1 parent 3514488 commit 3217d4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ public MoveUserDto moveUser(MoveUserDto userInfo) {

switch (direction) {
case "up" -> {
y -= 2;
y -= 6;
user.setY(y);
}
case "down" -> {
y += 2;
y += 6;
user.setY(y);
}
case "left" -> {
x -= 2;
x -= 6;
user.setX(x);
}
case "right" -> {
x += 2;
x += 6;
user.setX(x);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spring.jpa.show-sql=true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

# LocalTest
#spring.datasource.url=jdbc:mysql://localhost:3306/getaguitar?useSSL=false&allowPublicKeyRetrieval=true
#spring.datasource.username=root
#spring.datasource.password=8320
spring.datasource.url=jdbc:mysql://localhost:3306/getaguitar?useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=8320

0 comments on commit 3217d4c

Please sign in to comment.