Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 01:25:18 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-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.

Pages: [1] 2   Go Down
  Print  
Author Topic: Nibbler-Snake -  (Read 3664 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 11 June, 2013, 05:10:51
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5688


Topic starter
Total Post Ratings: +360

View Profile
« on: 18 November, 2009, 23:17:43 »
+2

I made a snake game in the past 24 hours!  Cheesy

Use right (clockwise) and left (counter-clockwise) to steer.  Press clear for quick quit.


* Nibbler.gif (58.6 KB, 96x64 - viewed 328 times.)
* NIBBLER.8xp (0.8 KB - downloaded 106 times.)
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:54:15
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50621


Total Post Ratings: +2636

View Profile WWW
« Reply #1 on: 18 November, 2009, 23:54:25 »
0

oooh nice that seems pretty fast considering it does that many directions! I wonder what kind of code peopl use in BASIC to calculate the snake direction that quick? I never messed with maths enough to discover myself x.x
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 11 June, 2013, 05:10:51
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5688


Topic starter
Total Post Ratings: +360

View Profile
« Reply #2 on: 19 November, 2009, 00:00:55 »
0

Mostly I'm using sin and cosine.  I use two lists and four variables to track where the snake is.

If anybody wants the code, it's yours.  Just post here so I can smile. Smiley
Logged

jsj795
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 03:43:03
Date Registered: 28 July, 2009, 22:10:35
Location: __̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.___
Posts: 1087


Total Post Ratings: +81

View Profile
« Reply #3 on: 19 November, 2009, 05:05:28 »
0

wow! that seems pretty nice! and you did that in 24 hours??? Impressive!
How big is the file tho??
Logged



Spoiler for funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
Eeems
THE GAME
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 01:14:11
Date Registered: 14 March, 2009, 03:32:57
Location: Edmonton, Alberta
Posts: 5103


Total Post Ratings: +231

View Profile WWW
« Reply #4 on: 19 November, 2009, 05:24:12 »
0

Its 0.8KB I'd you look at the sizething next to the attachment.
Logged

jsj795
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 03:43:03
Date Registered: 28 July, 2009, 22:10:35
Location: __̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.___
Posts: 1087


Total Post Ratings: +81

View Profile
« Reply #5 on: 19 November, 2009, 05:27:30 »
0

oh... thx Eeems, didn't notice that haha  Shocked
Logged



Spoiler for funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
Eeems
THE GAME
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 01:14:11
Date Registered: 14 March, 2009, 03:32:57
Location: Edmonton, Alberta
Posts: 5103


Total Post Ratings: +231

View Profile WWW
« Reply #6 on: 19 November, 2009, 05:51:36 »
0

Np :p glad I could help Smiley
Logged

Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 07:32:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5645


Total Post Ratings: +589

View Profile
« Reply #7 on: 19 November, 2009, 06:16:02 »
0

Wow, thats really impressive!  Especialy the collision detection with so many directions!  Major props to the Trumpet!! Grin
Logged

Ti-newb
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 18 March, 2013, 23:39:36
Date Registered: 19 November, 2009, 06:47:22
Posts: 177

Total Post Ratings: +3

View Profile
« Reply #8 on: 19 November, 2009, 06:50:17 »
0

thats very cool =D
Logged
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 11 June, 2013, 05:10:51
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5688


Topic starter
Total Post Ratings: +360

View Profile
« Reply #9 on: 19 November, 2009, 18:48:51 »
0

Smiley

Oh yeah, I forgot to mention: Enter Pauses.
Logged

JoeyBelgier
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 05 June, 2013, 03:50:28
Date Registered: 21 June, 2009, 14:51:20
Location: Flanders - Belgium
Posts: 524


Total Post Ratings: +4

View Profile
« Reply #10 on: 21 November, 2009, 04:02:13 »
0

Again, nice work ztrumpet Cheesy
Logged

Formerly known as NecroF-_-ckk
Yeah, it has been a while.
Galandros
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 27 March, 2011, 01:13:41
Date Registered: 18 October, 2008, 14:21:07
Location: dead end of Europe
Posts: 1150

Total Post Ratings: +32

View Profile
« Reply #11 on: 21 November, 2009, 14:38:24 »
0

Great work in a good timing.
Amazing speed. Never underestimate TI-BASIC...
Logged

Hobbing in calculator projects.
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 07:32:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5645


Total Post Ratings: +589

View Profile
« Reply #12 on: 21 November, 2009, 18:03:25 »
0

I remembers seeing this as an assembly program "uncle worm" and thinking to myself, this is one of those assembly programs that just can't we converted to basic.  Grin
Logged

ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 11 June, 2013, 05:10:51
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5688


Topic starter
Total Post Ratings: +360

View Profile
« Reply #13 on: 22 November, 2009, 03:57:18 »
0

Builderboy, that is an awesome post. Grin
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:54:15
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50621


Total Post Ratings: +2636

View Profile WWW
« Reply #14 on: 22 November, 2009, 07:36:40 »
0

That's funny how many ASM games thought that way were recently written in BASIC, some without libs
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.3 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.