https://github.com/delight-hk3/pickupgame
I tried to implement as much as possible the gacha that can be found in mobile games.
https://github.com/delight-hk3/pickupgame
c-plus-plus visual-studio
Last synced: about 2 months ago
JSON representation
I tried to implement as much as possible the gacha that can be found in mobile games.
- Host: GitHub
- URL: https://github.com/delight-hk3/pickupgame
- Owner: delight-HK3
- Created: 2021-12-27T03:57:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-23T04:43:31.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T10:30:54.245Z (over 1 year ago)
- Topics: c-plus-plus, visual-studio
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pickupgame
>사용한 프레임워크 : 없음
>사용한 언어 : C
>사용한 DB : 없음
>개발 Tool : Visual Studio 2017
>테스트한 OS : Window 10
* 기능
* 1회 뽑기 , 연속 뽑기
* 필요없는 아이템을 원하는 수량만큼 정리
* 지금까지 얻은 아이템 확인
제작한 목적 : 모바일 게임 등에서 볼 수 있는 뽑기를 최대한 구현해 보았습니다.
### 아이템 품급 확률 지정 코드
```c
int pickup(int su1);
int pickup(int su1) {
int su2;
if (su1 <= 49 && su1 >= 1) {
su2 = 1;
}
else if (su1 >= 50 && su1 <= 69) {
su2 = 2;
}
else if (su1 >= 70 && su1 <= 84) {
su2 = 3;
}
else if (su1 >= 85 && su1 <= 94) {
su2 = 4;
}
else {
su2 = 5;
}
return su2;
}
```
### 아이템 삭제 코드
```c
int elimination(int array[],int gogosu1,int savesu2) {
if (array[savesu2 - 1] < gogosu1) {
return 0;
}
array[savesu2 - 1] = array[savesu2 - 1] - gogosu1;
return array, gogosu1, savesu2;
}
```
### 게임 화면
