[SensorBall]update SensorBall
authorgs86.lee <gs86.lee@samsung.com>
Thu, 14 Feb 2013 06:41:52 +0000 (15:41 +0900)
committergs86.lee <gs86.lee@samsung.com>
Thu, 14 Feb 2013 07:22:15 +0000 (16:22 +0900)
Change-Id: I0fa29c2d5ea30066a1f84a56a21c738932066f6a

NOTICE [moved from NOTICE.Flora with 66% similarity]
config.xml
index.html
js/main.js

similarity index 66%
rename from NOTICE.Flora
rename to NOTICE
index fdb699a..85044e4 100644 (file)
+++ b/NOTICE
@@ -1,4 +1,4 @@
 Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
 Except as noted, this software is licensed under Flora License, Version 1.
-Please, see the LICENSE file for Flora License terms and conditions.
+Please, see the LICENSE.Flora file for Flora License terms and conditions.
 
index 649d866..7effe0b 100644 (file)
@@ -5,7 +5,6 @@
     <tizen:privilege name="http://tizen.org/privilege/application.read"/>
     <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
     <tizen:privilege name="http://tizen.org/privilege/systeminfo"/>
-    <tizen:privilege name="http://tizen.org/privilege/tizen"/>
     <icon src="icon.png"/>
     <name>SensorBall</name>
     <tizen:setting screen-orientation="portrait"/>
index fdd1808..8d4e8b4 100644 (file)
@@ -21,7 +21,7 @@
    <div data-role="header" data-position="fixed">
     <h1>SensorBall</h1>
    </div>
-   <div data-role="content" class="background background1">
+   <div data-role="content" class="background background1" data-scroll="none">
     <div id="main">
      <img id="image1" class="ball" src="./images/ball1.png" />
     </div>
@@ -37,4 +37,4 @@
    </div>
   </div>
  </body>
-</html>
+</html>
\ No newline at end of file
index 588c49d..7c46e59 100644 (file)
@@ -14,7 +14,6 @@
  *      limitations under the License.
  */
 
-/*jslint devel: true */
 /*global $: false, tizen: false, navigator: false, app: true*/
 
 var app = {
@@ -165,9 +164,7 @@ var app = {
                this.ballX += this.dX;
                this.ballY += this.dY;
 
-               // Waht do it when the earth leaves gravitation of the Sun?;
-               //if ( Math.abs(ballX) > 1000) { dX = 2; ballX = 0 };
-               //if ( Math.abs(ballY) > 1000) { dY = 2; ballY = 0 };
+               // What do it when the earth leaves gravitation of the Sun?;
                if (this.ballX > (this.gameWidth + borderTolerance)) { this.ballX = -borderTolerance; this.deceleration(); }
                if (this.ballY > (this.gameHeight + borderTolerance)) { this.ballY = -borderTolerance; this.deceleration(); }
                if (this.ballX < -borderTolerance) { this.ballX = this.gameWidth + borderTolerance; this.deceleration(); }
@@ -334,6 +331,7 @@ var app = {
 
        startBall: function startBall() {
                "use strict";
+
                $('.ui-content').removeClass('background1 background2 background3').addClass('background1');
                $(':jqmData(role="controlbar")').find('.ui-btn').removeClass('ui-btn-hover-s ui-btn-down-s');
                this.gameHeight = $('.background').outerHeight();
@@ -440,7 +438,6 @@ $(document).ready(function () {
        "use strict";
        var img;
        app.gameWidth = window.innerWidth;
-       //gameHeight = window.innerHeight - 142;
 
        app.ballWidth = parseInt($('.ball').css('width'), 10);
        app.ballHeight = parseInt($('.ball').css('height'), 10);
@@ -465,7 +462,6 @@ $(document).ready(function () {
        });
 
        $('#mainPage').live('pageshow', function () {
-               console.log('pageshow');
                setTimeout(app.startBall.bind(app), 100);
        });