GithubHelp home page GithubHelp logo

android-license-sample's Introduction

Parallax scrolling effect

This sample is the license page in WinTicket app.

gif-license

Stories of each scene

SCENE1

  • Pull the camera angle
  • The road lines move away and move backwards
  • The bicycle does not move because the camera only pulls

SCENE2

  • Pedal the bicycle
  • Move the road line
  • The towers approach (intervals are equal)
  • The trees, the churches and the houses which are randomly generated approach
  • The sun raises

SCENE3

  • Basic movement is the same as second scene
  • The length of the second scene and the third scene is variable
  • The sun changes to the moon

SCENE4

  • It grows dark and it is night
  • The camera is fixed
  • Only the bicycle goes and disappears

SCENE5

  • Tilt the camera from bottom to top
  • Widen the road
  • Make the mountain parallax

SCENE6

  • Scale in the logo
  • Show the credit

ALL SCENE

  • Make the mountains appear closer

Objects

Design drawing

img-design-drawing

Bicycle

The bicycle is switched by the following three images.

Left Center Right
img-bike-left img-bike-center img-bike-right

Lines on road

This lines move along this function.

y=1/(h^n) * x^n

  • Graph

e.g. h(height)=2000, n=6.5

img-graph

  • Spread sheet

You can change values and see how it works.

https://docs.google.com/spreadsheets/d/18L7ELAOvYFlnyRuj-T_5yDBZDgzLFjkvj8rHRkcF230/edit#gid=0

Sun and moon

x=rcosθ, y=rsinθ

Towers, churches, homes

Change a pivot.

  • Left objects: lower right (pivotX, pivotY) = (view.width, view.height)

  • Right objects: lower left (pivotX, pivotY) = (0, view.height)

License

Copyright 2019 CyberAgent, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

android-license-sample's People

Contributors

aakira avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.