Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/punksta/Cat-or-dog
React-native drag-n-drop game.
https://github.com/punksta/Cat-or-dog
android-game animals cat dog ios-game mobile-game pet-project react react-native react-native-animation react-native-game reactjs reactnative
Last synced: 2 months ago
JSON representation
React-native drag-n-drop game.
- Host: GitHub
- URL: https://github.com/punksta/Cat-or-dog
- Owner: punksta
- License: mit
- Created: 2018-09-02T15:14:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:04:45.000Z (over 1 year ago)
- Last Synced: 2024-01-29T11:36:44.529Z (5 months ago)
- Topics: android-game, animals, cat, dog, ios-game, mobile-game, pet-project, react, react-native, react-native-animation, react-native-game, reactjs, reactnative
- Language: JavaScript
- Homepage: https://install.appcenter.ms/users/stanislav-shakirov/apps/cat-or-dog/distribution_groups/public
- Size: 19.1 MB
- Stars: 38
- Watchers: 2
- Forks: 20
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-react-native - Cat-or-dog - Simple game with drag'n'drops and animations. (Open Source Apps / Other Platforms)
- awesome - Cat-or-dog - Simple game with drag'n'drops and animations. (Open Source Apps / Other Platforms)
- awesome-react-native - Cat-or-dog - Simple game with drag'n'drops and animations. (Open Source Apps / Other Platforms)
- awesome-react-native - Cat-or-dog - Simple game with drag'n'drops and animations. (Open Source Apps / Other Platforms)
- awesome-react-native - Cat-or-dog - Simple game with drag'n'drops and animations. (Open Source Apps / Other Platforms)
- awesome-react-native - Cat-or-dog - Simple game with drag'n'drops and animations. (Open Source Apps / Other Platforms)
README
# Cat or Dog?
[![Build Status](https://travis-ci.org/punksta/Cat-or-dog.svg?branch=master)](https://travis-ci.org/punksta/Cat-or-dog)Mobile game where you need swipe photos of animals to match categories. I've made it just for fun and as some `Animated` api practice.
youtube video:
### build with
react-native, redux, [react-native-gesture-handler](https://github.com/kmagiera/react-native-gesture-handler).No ads, gsm, etc..
## To do
- test app on ios
- add levels(in progress)
- refactor drag-n-drop animations with [react-native-reanimated](https://github.com/kmagiera/react-native-reanimated)
- add action game objects: extra live, speed slower, etc...## Contribution
make sure ci is green#### adding\changing photos
1) add photo file to `src/img`
2) add new item to `src/data/index.js`
```javascript
const photoExample = {
resource: require("../img/fat_cat_1.jpg"),
source: "url to photo source, if required",
tags: ["cat", "fat cat"]
}
```
#### adding\changing levels.
you change levels here `src/data/levels.js`
```javascript
const levelExample = {
name: "name of level",
passingScore: 50, // score to pass level
leftCategory: "sad dog",
rightCategory: "dressed cat",
newItemProvider: x => 5000 - x * 10, // time of item number x producing
fallingIntervalProvider: x => 4000 - x * 5 // duration of item number x falling down
}
```
### License
- source code: MIT
- assets: Creative Commons### Sponsors
![]()