punksta / Cat-or-dog

React-native drag-n-drop game.

Home Page:https://install.appcenter.ms/users/stanislav-shakirov/apps/cat-or-dog/distribution_groups/public

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cat or Dog?

Build Status

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.

No ads, gsm, etc..

To do

  • test app on ios
  • add levels(in progress)
  • refactor drag-n-drop animations with 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
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

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

About

React-native drag-n-drop game.

https://install.appcenter.ms/users/stanislav-shakirov/apps/cat-or-dog/distribution_groups/public

License:MIT License


Languages

Language:JavaScript 91.9%Language:Objective-C 4.0%Language:Java 2.2%Language:Starlark 1.8%