Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ruler501

Pages: 1 ... 75 76 [77] 78 79 ... 184
1141
Miscellaneous / Re: YAOYT (Yet Another One Year Topic)
« on: June 03, 2011, 07:20:56 pm »
Man I wish I had been here for 5 months more so I could have a 1 year topic also

1142
Wow have fun in china. How is it over there really. I hear horrible things and am wondering whats true

1143
there are some hardware differences that make them not quite the same

1144
Miscellaneous / Re: OmnimagaOS
« on: June 03, 2011, 05:29:43 pm »
I occasionally will add time limits, but only for projects I have announced and have people expecting them

1145
News / Re: TI-Nspire SDK expected for release in 2012
« on: June 03, 2011, 05:13:56 pm »
2012 till a SDK is available :O. I wish we didn't have to wait that long but the only reason they released it I bet was to make themselves look better and because we hacked into it in 3.0.1. I bet it was very unplanned

1146
TI-Nspire / Re: [Lua] Space Invaders
« on: June 03, 2011, 04:59:16 pm »
that looks evil Levak

1147
Miscellaneous / Re: Bitcoin - the currency of the internet.
« on: June 03, 2011, 04:58:03 pm »
It sucks for people now but it was a smart if very unfair idea to do this

1148
Miscellaneous / Re: Bitcoin - the currency of the internet.
« on: June 03, 2011, 04:54:59 pm »
its an easy way for a few people to get really rich

1149
TI-Nspire / Re: [Lua] Space Invaders
« on: June 03, 2011, 03:58:05 pm »
I believe this code should run a little faster. I haven't tested it yet though
Spoiler For Hopefully faster non buggy code:
Code: [Select]
function on.charIn(ch)
   if ch=="r" then
      game="notfinished"
      score=0
      player=100
      shotX=0
      shotY=0
      wait=0.04
      aliensDir="right"
      down="no"
      aliensX={}
      aliensY={}
      shotsX={}
      shotsY={}
      lives=3
      for i=1,21,1 do
         aliensX=(i-1)%7*31+1
         aliensY=math.floor((i-1)/7)*25+10
         shotsX=aliensX
         shotsY=200
      end
   end
end


on.charIn("r")


function on.arrowLeft()
   if player>0 then
      player=player-10
   end
end
function on.arrowRight()
   if player<290 then
      player=player+10
   end
end
function on.arrowUp()
   if shotY<=0 then
      shotY=195
      shotX=player+13
   end
end


function on.paint(gc)
   gc:setColorRGB(0,0,0)
   gc:setPen("thin","smooth")
   gc:setFont("sansserif","r",8)
   gc:drawString("Lua Alien Invaders - Par Loic Pujet",10,200,"top")

   if game=="notfinished" then
      gc:setColorRGB(200,0,0)
      if aliensY~=0 then
         gc:drawArc(aliensX+4,aliensY-9,10,10,0,360)
         gc:fillArc(aliensX-5,aliensY-4,28,8,0,360)
      end

      gc:setColorRGB(0,0,200)
      if shotsY<200 then
         gc:fillRect(shotsX,shotsY,2,5)
      end
      if shotY>0 then
         gc:fillRect(shotX,shotY,4,6)
      end

      gc:setColorRGB(100,0,255)
      gc:fillRect(player,195,30,10)
      gc:fillRect(player+13,191,4,4)
      gc:setFont("sansserif","r",10)
      gc:drawString("vies:"..tostring(lives).." score:"..tostring(score),0,0,"top")
   else
      gc:setColorRGB(0,0,0)
      gc:setFont("sansserif","b",15)
      gc:drawString("Score : "..tostring(score),100,50, "top")
      gc:setColorRGB(0,0,255)
      gc:drawString("Appuyez sur R pour rejouer",50,150,"top")
   end

   timer.start(wait)
end


function on.timer()
   timer.stop()
   
   if game=="notfinished" then
      if aliensDir=="right" then
         if aliensY>0 then
            aliensX+=1
         end
      else
         if aliensY>0 then
            aliensX-=1
         end
      end

      if aliensDir=="right" then
         if aliensX>305 then
            down="yes"
         end
      else
         if aliensX<15 then
            down="yes"
         end
      end

      if down=="yes" then
         down="no"
         if aliensY>0 then
            aliensY+=25
         end
         if aliensDir=="left" then
            aliensDir="right"
         else
            aliensDir="left"
         end
      end

      if aliensY>200 then
         game="finished"
      end

      if shotsY>=200 and aliensY~=0 then
         if math.random(1,100)==5 then
            shotsY=aliensY+math.random(1,10)
            shotsX=aliensX
         end
      else
          shotsY+=3
      end
      if shotY>=0 then
         shotY-=5
      end

      if shotsY<200 then
         if shotsY>195 and shotsX>player and shotsX<player+30 then
            lives-=1
            shotsY=200
         end
      end
      if lives==0 then
         game="finished"
      end
     
      if shotY>0 then
         if shotY>0 and shotY>aliensY-5 and shotY<aliensY+5 and shotX>aliensX-15 and shotX<aliensX+15 then
            aliensY=0
            aliensX=100
            shotY=0
            score+=1
         end
      end

      wintest=0
      wintest=wintest+aliensY
      if wintest==0 then
         if wait>0.02 then
            wait-=0.005
         end
         aliensDir="right"
         down="no"
         for i=1,21,1 do
            aliensX=(i-1)%7*31+1
            aliensY=math.floor((i-1)/7)*25+10
            shotsX=aliensX
            shotsY=200
         end
      end
   end

function on.arrowKey(key)
   platform.window:invalidate()
end

1150
TI-Nspire / Re: [Lua] Space Invaders
« on: June 03, 2011, 03:40:20 pm »
you use the drawimage function with the image screen. Thats the limit of my knowledge unfortunately

1151
TI-Nspire / Re: [Lua] Space Invaders
« on: June 03, 2011, 03:18:00 pm »
Sounds good I use OS 2.0.1 so unfortunately I won't be able to play this. I refuse to upgrade to 3 till downgrading and Ndless become possible.
You should start an introduction topic in the intro board so you can get your peanuts to make your calc run faster.
Your English seems almost as good as mine and I live in America and thats my first language.

1152
Other / Re: My Computer Security Essay
« on: June 03, 2011, 01:13:37 pm »
I think its a bit to compact, pushed together. I think you should have divided it in more paragraphs.

But thats just my opinion. :)

Quote
The only really bad thing about open source operating system's security is that unless it is an extremely serious problem like easy, anyone can do it from anywhere, complete takeover of computers or networks the fixes for it will not be released till the next development cycle is over.

This isn't true, security fixes have a very high priority, and are pushed out as updates daily.
If there is for example a security hole in Firefox 4, they will not wait till Firefox 5 before its fixed. Ubuntu for example get constantly security updates (they are pushed much much faster than Windows).
I didn't see any good ways to divide the paragraphs up more.

That was just what I read from my sources. they are obviously wrong and I know that now but I didn't when I wrote the paper

1153
Other / My Computer Security Essay
« on: June 03, 2011, 12:42:40 pm »
I had to right an essay on power and persuasion in relation to a topic of my choosing in my English class and i chose computer security. I had originally written a very in depth paper, but my teacher told me it was too complicated so I had to rewrite it the night before It was due. This is what my paper ended up being(attached). Could you tell me what you think of it please. I'd like to hear what people here say about it. The other student that reviewed it said it was too dry.

1154
Humour and Jokes / Re: Winning The Game Has Never Been So Much Easier
« on: June 03, 2011, 11:49:15 am »
Dang it I clicked on the links

1155
Site Feedback and Questions / Re: Random Topic Button
« on: June 03, 2011, 11:18:17 am »
I know but I still clicked on it to see what it would do

Pages: 1 ... 75 76 [77] 78 79 ... 184