User prompt
give the camera an update function which sets the moon's scale to the zoom
User prompt
create an empty "camera" class that contains only "var zoom = 1.0;" and initialize an instance after the moon
User prompt
Create a moon asset in the middle of the screen
User prompt
Remove all game logic and classes
Initial prompt
Swing Frog
===================================================================
--- original.js
+++ change.js
@@ -1,5 +1,13 @@
/****
+* Classes
+****/
+var Camera = Container.expand(function () {
+ var self = Container.call(this);
+ var zoom = 1.0;
+});
+
+/****
* Initialize Game
****/
//<Assets used in the game will automatically appear here>
var game = new LK.Game({
@@ -14,5 +22,6 @@
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
y: 2732 / 2
-}));
\ No newline at end of file
+}));
+var camera = game.addChild(new Camera());
\ No newline at end of file
fireCrackle
Sound effect
frogTongue
Sound effect
frogDeath
Sound effect
lilypadBounce
Sound effect
noTarget
Sound effect
backgroundAmbient
Sound effect
fireCrackling1
Sound effect
fireCrackling2
Sound effect
fireCrackling3
Sound effect
fireCrackling4
Sound effect
frogBounce
Sound effect
pickupCaught
Sound effect