﻿ Latest posts of: cypressx1
22 May, 2013, 21:26:36
 OmnomIRC You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

 Show Posts Pages: [1] 2 3 4
 1 Calculator Community / Lua Language / Re: This is my first lua game on: 03 August, 2011, 14:17:56 Er...it's off limits to me
 2 Calculator Community / Lua Language / Re: This is my first lua game on: 03 August, 2011, 13:31:20 what's the score?
 3 Calculator Community / Lua Language / Re: This is my first lua game on: 03 August, 2011, 12:50:21 What?! it really works.l have been uploaded it
 4 Calculator Community / Lua Language / Re: This is my first lua game on: 03 August, 2011, 12:33:49 oh!! thanks for your advice. l'll fix it.
5  Calculator Community / Lua Language / This is my first lua game on: 02 August, 2011, 14:25:53
Since l don't have enough posts to upload the file,l'll upload the code ,if you're interested in it, you can try it.
Code: [lua]
 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 x=0 T,F=0,0  b="" u=0 t=0 aa=math.random(1,10)bb=math.random(1,10)   ab=aa+bbts=0.06 life=10 level="learner"function on.charIn(char) mm=timer.getMilliSecCounter()ch=charif x>130 then u=1 t=t+1 endendfunction loop()if x>220 then x=0 t=0 u=0 aa=math.random(1,10)bb=math.random(1,10)   ab=aa+bbdraw1,draw2=0,0return loop() end enddraw=class() function draw:paint(gc)gc:setPen("thick","dotted")gc:drawRect(60,150,200,50)if draw1==1 then gc:setColorRGB(180,180,180)gc:fillRect(60,150,200,50)if mm+90130 and x<200 and  ab>10 and u==1 then    if ch=="6"  then b="true"     elseif ch~="6" and ch~="a" and ch~="b" and ch~="c" and ch~="d" and ch~="p" then b="false" endendif x>130 and x<200  and  ab<10 and u==1 then    if ch=="4"  then b="true"     elseif ch~="4" and ch~="a" and ch~="b" and ch~="c" and ch~="d" and ch~="p" then b="false" endendif x>130  and x<200 and  ab==10 and u==1 then    if ch=="5"  then b="true"     elseif ch~="5" and ch~="a" and ch~="b" and ch~="c" and ch~="d" and ch~="p" then b="false" endend--if u==0 and t==0 then b="false" t=1 endif b=="true" and t==1 then T=T+1 b="" u=0 draw1=1 endif b=="false" and t==1 then F=F+1 b="" u=0 draw2=1 endendfunction on.paint(gc)draw:paint(gc)gc:setColorRGB(0,0,0)gc:setFont("sansserif","bi",30) gc:drawString(aa.." + "..bb,110,x,"top")--gc:setColorRGB(100,100,100)--gc:drawString(aa.." + "..bb,110,x-30,"top")gc:setFont("sansserif","bi",10) gc:drawString("T: "..T.."  ".."F: "..F,0,15,"top")gc:drawString("u: "..u,0,30,"top")gc:drawString("t: "..t,0,45,"top")gc:drawString("ab: "..ab,0,60,"top")gc:drawString("x: "..x,0,75,"top")gc:drawString("life: "..life,0,90,"top")gc:drawString("level: "..level,0,105,"top")if F>life then highscore()gc:fillRect(0,0,330,250)gc:setColorRGB(255,255,255)gc:setFont("sansserif","bi",30) gc:drawString("You Lost",95,50,"top")gc:setFont("sansserif","bi",15) gc:drawString("your score: "..T,120,110,"top")gc:drawString("highscore: "..var.recall("highscore"),120,130,"top")gc:drawString("Press R to restart",170,180,"top")if ch=="r" then x=300 T=0 F=0return loop() endendtimer.start(ts)if ch=="p" then timer.stop() endif ch=="a" then ts=0.05 life=8 level="easy" endif ch=="b" then ts=0.04 life=6 level="medium"end if ch=="c" then ts=0.03 life=5 level="hard" endif ch=="d" then ts=0.02 life=3 level="extreme" endendfunction on.enterKey()ch="xx" timer.start(ts)platform.window:invalidate()endfunction highscore()if var.recall("highscore")==nil or T>var.recall("highscore")then var.store("highscore",T)endvar.monitor("highscore")end--[[function on.varChange(varlist)  local highscore=var.recall("highscore") if not highscore then return -3 endif type(highscore)~="number" then return -2 endif highscore<0 then return -1 endend]]function on.timer()local ss=0.45*T+3if ss>15 then ss=15 endx=x+(ss)loop()judge()platform.window:invalidate()end
And of course, l didn't finish it,if you have some good ideas,you can tell me.
[4]-----"<10"
[5]-----"=10"
[6]-----">10"
[a\b\c\d]------"change speed"
[p\enter]-------"pause\continue"
 6 Calculator Community / Lua Language / Re: LUA script tool for mac? on: 02 August, 2011, 14:01:17 what a pity, l don't have a Mac
 7 Calculator Community / Lua Language / Re: Sound with nspire Lua on: 02 August, 2011, 13:59:38 sounds great ^^
 8 Calculator Community / Lua Language / Re: How to save high scores in Lua on: 02 August, 2011, 13:51:32 all right
 9 Calculator Community / Lua Language / Re: Permission needed to write Lua Tutorials on: 02 August, 2011, 13:48:03 if anyone can translate it in Chinese,it will be great,haha!
 10 General Discussion / Miscellaneous Discussion / Re: FAIL on: 02 August, 2011, 13:45:14 Oh my G
 11 Calculator Community / Other Calculator Discussion and News / Re: New TI-Nspire CX-C CAS and TI-Nspire CM-C... Poor on: 02 August, 2011, 13:41:20 yes, you're right, l'm a Chinese, in china only a few people use TI's calc，not to mention the CX-C
 12 Calculator Community / TI-Nspire Projects / Re: [Nspire Entry] Falling Blocks on: 02 August, 2011, 13:30:49 good
 13 Calculator Community / Lua Language / Re: How to save high scores in Lua on: 31 July, 2011, 02:07:36 l think var.monitor should also be used.
 14 General Discussion / Humor and Jokes / Re: POKÃ‰MON IN REAL LIFE! on: 27 July, 2011, 13:44:42 WOW
 15 Calculator Community / TI-Nspire Projects / Re: [Lua] RayCaster on: 27 July, 2011, 13:36:24 me too!
 Pages: [1] 2 3 4