Author Topic: Awesome Omnimaga rickrolling program.  (Read 27687 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Awesome Omnimaga rickrolling program.
« Reply #45 on: July 21, 2010, 05:59:04 pm »
Oh I was asking him because he lives in the same city as me (and close to Quebec city), just like to the extreme opposite side of it.

As for Costco there's one in Quebec city, if I remember, but I don't have a car :( (idk if I want to spend $9.60 in a 3 hour city bus ride in total just to grab a pack of 144 batteries)
« Last Edit: July 21, 2010, 06:00:17 pm by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Awesome Omnimaga rickrolling program.
« Reply #46 on: July 21, 2010, 06:03:29 pm »
Oh I was asking him because he lives in the same city as me (and close to Quebec city), just like to the extreme opposite side of it.

Am I missing something, are you talking about me, or someone else?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Awesome Omnimaga rickrolling program.
« Reply #47 on: July 21, 2010, 06:21:59 pm »
Oh I mean I was asking Juju in particular where he got his set of 144 batteries, because he most likely picked it at a store I have access to.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Awesome Omnimaga rickrolling program.
« Reply #48 on: July 21, 2010, 08:43:22 pm »
So I just realized my Omni chain thing does something that isn't right so now I'm working on fixing it.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Awesome Omnimaga rickrolling program.
« Reply #49 on: July 21, 2010, 08:48:30 pm »
Aaah ok, good luck on fixing it x.x

Btw how big is it so far?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Awesome Omnimaga rickrolling program.
« Reply #50 on: July 21, 2010, 08:52:41 pm »
About 611 bytes. The method I used is probably not the best but the only one I can think of right now.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Awesome Omnimaga rickrolling program.
« Reply #51 on: July 21, 2010, 09:05:39 pm »
Aaah ok. Btw do you use Disp? I am not sure if it would be faster but my concern was about the Coders Of Tomorrow text keeping jumping due to having to be updated every frame due to Disp scrolling it up
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Awesome Omnimaga rickrolling program.
« Reply #52 on: July 21, 2010, 09:24:02 pm »
No, Disp doesn't work because even though you update it every time the left over words will show in the blank spots for a second. You could eliminate that with ClrHome but then you get rid of the chain effect (for the record that is all theory, I haven't actually tested it). I used Output( which is why my code is a bit messy :P

By the way, I fixed the issue :)

Edit:
Ok, so I've basically gotten to the point where in my current state of mind I can't optimize this anymore.

So for those who want to see the code I will provide it.

Code: (Rick Roller's of Tomorrow) [Select]
ClrHome
"σmπimαgα→Str1 //The "i" is the imaginary number "i"
Output(1,9,"The
Output(3,9,"Rick
Output(4,9,"Roller's
Output(6,9,"Of
Output(8,9,"Tomorrow
1→A
2→B
3→C
4→D
5→E
6→F
7→G
6→H
1→I
Ans→J
Ans→K
Ans→L
Ans→M
Ans→N
-Ans→O
Ans→P
Repeat getKey=45
Output(1,A,sub(Str1,A,2
Output(1,B,sub(Str1,B,2
Output(1,C,sub(Str1,C,2
Output(1,D,sub(Str1,D,2
Output(1,E,sub(Str1,E,2
Output(1,F,sub(Str1,F,2
Output(1,G,sub(Str1,G,2
Output(1,H,sub(Str1,H,2
A+I→A
I-2(Ans=7)+2(Ans=1→I
B+J→B
J-2(Ans=7)+2(Ans=1→J
C+K→C
K-2(Ans=7)+2(Ans=1→K
D+L→D
L-2(Ans=7)+2(Ans=1→L
E+M→E
M-2(Ans=7)+2(Ans=1→M
F+N→F
N-2(Ans=7)+2(Ans=1→N
G+O→G
O-2(Ans=7)+2(Ans=1→O
H+P→H
P-2(Ans=7)+2(Ans=1→P
Output(1,1,"________ //8 "_"
Output(2,1,"________
Output(3,1,"________
Output(4,1,"________
Output(5,1,"________
Output(6,1,"________
Output(7,1,"________
Output(8,1,"________
End
ClrHome
Output(1,1,"

If something in the code doesn't make sense just tell me and I'll look it over (I typed it by hand so there may be errors, though there shouldn't be).

I also am providing the file too.

P.S. For the screenshots RRoT4.gif is at a lower frame rate to help accommodate some browsers.
« Last Edit: July 21, 2010, 09:55:49 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Awesome Omnimaga rickrolling program.
« Reply #53 on: July 21, 2010, 09:55:08 pm »
Aaah ok, and good to hear :)

EDIT: OOh nice :D

One thing I wonder is if it would be possible to not refresh the Omnimaga area every frame?
« Last Edit: July 21, 2010, 09:58:05 pm by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Awesome Omnimaga rickrolling program.
« Reply #54 on: July 21, 2010, 09:57:00 pm »
Looks cool! Too bad it's kinda slow...
But it works, so great job! :D
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Awesome Omnimaga rickrolling program.
« Reply #55 on: July 21, 2010, 09:58:38 pm »
Ya, it isn't as fast as nemo's chain effect but it's a hard thing to do while leaving the right half the screen alone. I also think it runs a bit faster on the calculator than in WabbitEmu.

@DJ
Not really because without erasing each time then you are left with the trail and after a full rotation it will just have eight lines of Omnimaga on it.
« Last Edit: July 21, 2010, 10:01:09 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Awesome Omnimaga rickrolling program.
« Reply #56 on: July 21, 2010, 10:02:32 pm »
And it looks too flashy to do
Code: [Select]
Disp "
Output(8,1,Ans
or something to that effect, where you output immediately after the Disp?
But great program, at any rate. :)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Awesome Omnimaga rickrolling program.
« Reply #57 on: July 21, 2010, 10:03:58 pm »
Are you talking about kind of what nemo did in his?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Awesome Omnimaga rickrolling program.
« Reply #58 on: July 21, 2010, 10:06:00 pm »
Barely. I'm more talking about putting the Output( immediately after the Disp to reduce any flashing.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Awesome Omnimaga rickrolling program.
« Reply #59 on: July 21, 2010, 10:09:42 pm »
Oh ok, sorry, remembered his code wrong. The problem with using Disp is that you're shifting the whole screen so you would have to update the "The Rick Roller's Of Tomorrow" section each time, and even then you'd still have some left over stuff in the empty spaces for a second and the only way to really clear that is either add more Output('s with spaces to cover those gaps and then that part becomes flickery.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)