我是一个初级程序员,我有我正在制作的这款游戏,但我的问题是,在我的游戏中,用户有可以在战斗中花费的点数。它会根据你花了多少钱来更新积分变量。
global Points
Points = int(100)
def Combat():
print('how much points would you spend(higher points = higher chance of winning')
a9 = int(input('>'))
Points = int(Points)- int(a9)
global Poin
我正在尝试制作一个传送游戏,我的角色需要有一些速度和重力,有人知道我需要多少钱才能完成这个吗?
这是我到目前为止的代码:
var char = this.addChild(new Char());
char.width = 20;
char.height = 20;
char.x = startPos.x; //startPos is an invisible movieclip that I can move around to make the starting position
char.y = startPos.y; // accurate
var vx:Num
我在做一个简单的彩票系统。我来到这里,我需要弄清楚在平局中总共赢了多少钱。
我的想法是制作一个名为won = 0的变量,并在每次它找到赢家时将奖金乘以这个变量。它似乎不想乘到变量won。
为什么它不添加到变量won中呢?还有更简单的方法吗?也许有办法?
bought[i].lotterynumber是它查找彩票号的数组。
draw[x][0]是赢家的数字。
。
won = 0
for x in 0..4
for i in 0..11
if bought[i].lotterynumber == draw[x][0]
if x == 0
ParseQuery<ParseObject> query = ParseQuery.getQuery("Money");
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> objects, ParseException e) {
if (e == null) {
int total=0;
for (ParseObject p : obje
我看到了这个,它是一条死线。我正在尝试实现这一点,但是eclipse遇到了问题。
The App Engine SDK JAR appengine-endpoints.jar is missing in the WEB-INF/lib directory lib /gaeminer-master/war/WEB-INF Unknown Google App Engine Problem
The App Engine SDK JAR appengine-jsr107cache-1.7.7.jar is missing in the WEB-INF/lib directory