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.

Lists

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:


video link

### 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