how to do a game that is simulated by a loop [closed] - game-loop

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
how to do program a game that is simulated by a loop in which people has to repeat goes for as long as it takes to get out that it reach or pass square 80? I am doing a snake & ladder game and need to write a code that will allow this to happen

You need to use a loop with an exit condition that checks if a player has reached square 80 or otherwise won.
while ( !hasPlayerWon() ) {
//continue game
}
loops in javascript, loops in C++ :D

Related

How to use accelerometer for paint on a screen in iphone? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am new in iPhone development, I am developing an app in which I have to use accelerometer for painting on screen . Please help me out is this can be done-able if so help me.
You are looking for the gyro mouse, 3 lines of code. Watch this video, the gyro mouse is presented at 37:00-38:25.
So long story short, you need the gyroscopes (CMRotationRate).

'accerelate&decelerate scroll' like tiny tower (near lobby) in iphone? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How would I implement the accerelate/decerelating effect when scrolling as you would see near lobby in tiny tower game?
Would it be a scrollview under the hood?
-edit-
Would it be a more interesting question if it needs to be done in cocos2d-x?
http://getsetgames.com/2009/08/21/cocos2d-and-uiscrollview/
I used the above tutorial to successfully implement scrollview like UI with cocos2d-x.

How to create a Dot Lock Screen in iOS application? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
i want to create a Dot Lock Screen in my application similar to present in Android.
This lock screen should remember the previous movement of my finger so that if i perform the same movement again then it show the success message.
How can i do this?
Is there any opensource application available for this?

any idea how to develop Jewel game? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am trying to develop an iphone app in which matrix of jewel. if user alines same type of three or more jewel in a row/column, the lined jewels disappears and other jewels adjusts the space.
Similar to game Call of Atlantis.
Ref : http://imageshack.us/photo/my-images/146/img1253.png/
Can anybody give me how to begin ?
Any help would be appreciated.
Have a look at Geek Game Board. Should get you started.

How can I simulate a moving average model(1) with parameter =0.7? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can I simulate a ma(1) model with parameter =0.7 using matlab?
The Systems Identification Toolbox may have what you need.
If you need or want to do it by hand, however (homework?), I would suggest outlining the steps of what needs to be done (break up the problem in parts, starting from the definition of MA models) and asking a more detailed question when you get stuck.