Qbasicnews.com
September 21, 2019, 11:36:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: 1 key challenge revisited  (Read 20414 times)
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #30 on: October 19, 2005, 12:18:03 AM »

Neither of those work for me. The graphics one is still broken the same way and the text one. well nothing shows up. (but when I hit esc it says "q u i t  y / n")



...wait I got it! right before the first DO I put "updateon=timer"
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
urger
Wandering Guru
***
Posts: 337



« Reply #31 on: October 19, 2005, 09:54:37 AM »

Hmm, I wonder why you needed to do that
Updateon should initalize to 0. Since your timer would always evaluate to higher then 0 the update screen code should be tiggered.  What does updateon equal before you set it to equal timer?
Logged

his sig left intentionally blank
j2krei08
Guru
**
Posts: 284



WWW
« Reply #32 on: October 19, 2005, 03:37:40 PM »

Thanks, but I hardly consider it a gem :lol: smilies are back!

I made it fast because anything slower is kinda boring.  Maybe I'll put a skill level on it.
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #33 on: October 19, 2005, 05:49:40 PM »

i guess if it's meant to be fast like that... im just saying the way it is now is almost unplayable.
Logged
Dio
I hold this place together
*****
Posts: 874



« Reply #34 on: October 19, 2005, 09:07:53 PM »

i first thought it was a way to test how fast someone’s computer was. like seeing how many cycles it could do in a second and thru some formula do something or other. geez im a lazy typist.

like this:
Code:
stimer = timer
for i = 0 to 10000000000
    if timer > stimer +1 then :ii = i:exit for
    if timer < stimer then stimer = 86400 - stimer: stimer = 0 - stimer
next
? ii
sleep


hence, the bigger the number, the faster the computer.

edit: regarding my other post, i added a safety net for midnight
Logged

quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Pyrokid
Wandering Guru
***
Posts: 355



WWW
« Reply #35 on: October 30, 2005, 03:10:15 AM »

Quote from: "Dio"
Code:
stimer = timer
for i = 0 to 10000000000
    if timer > stimer +1 then :ii = i:exit for
    if timer < stimer then stimer = 86400 - stimer: stimer = 0 - stimer
next
? ii
sleep

That isnt really needed in fb it would probably be better if you used SLEEP ms
Logged

his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless  effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless
Z!re
*/-\*
*****
Posts: 4599


« Reply #36 on: November 13, 2005, 01:30:12 AM »

Well.. challenge is pretty much over, if you have any entries that you havent sent in for some weird reason, do so now..
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!