Author Topic: Golf Tour 2011 - Not mini golf!  (Read 11294 times)

0 Members and 1 Guest are viewing this topic.

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Golf Tour 2011 - Not mini golf!
« on: September 17, 2011, 03:51:12 pm »
So, you are smart, and finish the BST (Big Standardized Test) at your school with like forty minutes left. You are bored. You aren't in the mood for reading, and definitely not in the mood for the same old calculator game.
How about a round at Pebble Beach? Taking a few swings at the driving range to improve your aim? Playing the Masters with Tiger?

I am planning a golf game in TI BASIC, for ease, or AXE, for the grayscale. I am currently planning. Suggestions, comments, and help is welcome.

Until this can get its own section (like ones in major community projects) Updates will be posted here.

I could also make a level editor due to the flexibility of the program to matrix format.

All ideas and progress is listed below IN THE IDEAS POST.

Happy lazy golfing!
« Last Edit: September 26, 2011, 08:49:29 pm by boot2490 »
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Updates:
Started working on 9-18-2011


Ideas: PLEASE GIVE FEEDBACK?

Idea 1: Structure:

Currently the Basic style psuedocode structure is planned like so:
Spoiler For Spoiler:
Code: [Select]
Run program which stores the 15*23 level into a matrix
While 1
Menu (view map, change club, swing, save, load, quit)
Lbl view map
Loop: check matrix bit by bit, return each value
If value = 1
draw grass 4x4 sprite
If value = 2
draw rough 4x4 sprite
If value = 3 and so on
End
Lbl Change club
Menu (Driver: 1->Z    5->Distance,  Iron: 2->Z    4->Distance,  Wedge:3->Z    2->Distance,  Putter: 0->Z    1->Distance)
Lbl Swing
Draw thermometer
Loop: expand line to match swing power like a normal power bar
If max set variable to down
Loop: Shrink line accordingly
If line reaches bottom, go back to menu
If 2nd pressed
Start new line below first, Going down towards accuracy mark
Test accuracy variable with closeness of line to mark
If 2nd pressed, send variables to shot calculation program
Lbl Save
Save all variables such as position, club, hole, level pack to list
Lbl Load
Load variables from list
Lbl Quit
Goto Lbl Z
Lbl Shot Calculate
Use trig, wind value vs z value, and matrix data to calculate new position
End
Lbl Z
Output "Thanks for playing!
Output (block done token)

Wow it feels good to write that all down.

Idea 2: Structure Idea 2

The releases will be interesting.
I will release each part of the engine written in BASIC and then I will release select parts (such as the level renderer) in AXE with source as well.
That way, You can download individual parts of the engine, or the whole thing, to customize your experience.

Idea 3: Level expansion

I have several ideas here:
1. LEVEL EDITOR
2. some courses to make with it:
  • Pebble Beach
  • Whatever the first course ever is
  • The one from wii sports
  • Wailee Country Club

Please give suggestions for ANYTHING in the form of a reply.
« Last Edit: September 18, 2011, 12:28:13 pm by boot2490 »
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #2 on: September 17, 2011, 07:09:24 pm »
Cool!

Would you mind if, after you finish it, I convert it to Casio Basic? I'll give you all the programming credit, and then just have a little foot note saying I converted it.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #3 on: September 17, 2011, 07:28:36 pm »
Most certainly!! I am glad to help in the battle against boredom.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #4 on: September 17, 2011, 07:34:16 pm »
LOL. We dont have axe in the casio community, and I don't really know C very well, so i'll probably do it in lua or BASIC. Probably BASIC.

And i'm all for something entertaining to do during stand. tests! I was always at least 50 min. ahead. And then you have some kid that still isn't finished at the end of the outrageous time limit. D:



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #5 on: September 17, 2011, 07:48:04 pm »
Sometimes *that kid* spends another hour or two in the library makeup period still doing the test. That's like three hours.

You are free to fill in the posted code structure with actual CASIO basic if you wish.
Anyway, It will be BASIC with a basic renderer, And it will have an optional AXE renderer. How does that sound?
What are some really good/famous golf courses I could include? I have a few ideas:
Pebble Beach
Wii Sports's golf course
Something from Mario Golf
Wailee Country Club
« Last Edit: September 17, 2011, 08:02:37 pm by boot2490 »
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #6 on: September 17, 2011, 08:11:36 pm »
sounds great.

How about St. Andrew's?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #7 on: September 17, 2011, 08:55:16 pm »
Never heard of it.
I'll look it up right now.
I want to give an homage to Pittsburgh, too...


If anyone wants to use the posted code structure for there own golf game,
* boot2490 points to flyingphisch and his CASIO
i will be MORE than glad. It is a lacking genre on the calc. Just don't make it too much better than mine ;)
« Last Edit: September 17, 2011, 09:03:53 pm by boot2490 »
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #8 on: September 17, 2011, 10:03:53 pm »
Quote
If anyone wants to use the posted code structure for there own golf game,
* boot2490 points to flyingphisch and his CASIO
 i will be MORE than glad. It is a lacking genre on the calc. Just don't make it too much better than mine

I can't. LOL.

St. Andrew's is in scotland, I believe, and is probably the most famous or one of the most famous golf courses of all time. According to legend, that's the area where golf originated, and St. Andrew's is arguably the hardest golf course in the world.

*flyingFisch is done teaching history (note the F, not ph)

Please do not take anything in this post personally. ;)

Casio code:
Spoiler For Spoiler:
Code: [Select]
'Run program which stores the 15*23 level into a matrix
While 1
Menu (view map,1,change club,2,swing,3,save,4,load,5,quit,6)
Lbl 1
Loop: check matrix bit by bit, return each value
If value = 1
Then draw grass 4x4 sprite
If value = 2
draw rough 4x4 sprite
If value = 3 and so on
IfEnd
Lbl 2
Menu (Driver:,A,Iron:,B,Wedge:,C,Putter:,D)
Lbl 3
Draw thermometer
Loop: expand line to match swing power like a normal power bar
If max set variable to down
Loop: Shrink line accordingly
If line reaches bottom, go back to menu
If 2nd pressed
Start new line below first, Going down towards accuracy mark
Test accuracy variable with closeness of line to mark
If 2nd pressed, send variables to shot calculation program
Lbl S
Save all variables such as position, club, hole, level pack to list
Lbl L
Load variables from list
Lbl Q
Goto Lbl Z
Lbl X
Use trig, wind value vs z value, and matrix data to calculate new position
IfEnd
Lbl Z
ClrText
"Thanks for playing!
(block done token)
Stop
Lbl A
1->Z:5->D:Goto 3
Lbl B
2->Z:4->D:Goto 3
Lbl C
3->Z:2->D:Goto 3
Lbl D
0->Z:1->D:Goto 3
WOW! a *lot* easier to convert than I thought!
« Last Edit: September 17, 2011, 10:04:26 pm by flyingfisch »



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #9 on: September 18, 2011, 12:16:28 am »
That is pseudo-code, not any real BASIC. That is basically how you write down how the program will do stuff, just the structure. I haven't even started coding yet. It is like a flowchart. I needed to space out my thoughts, and I do that with pseudo-code.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #10 on: September 18, 2011, 12:13:50 pm »
Yeah, I know; its actually called an algorithm. but its easier (for me) to understand if it uses casio BASIC commands :P
« Last Edit: September 18, 2011, 12:14:12 pm by flyingfisch »



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #11 on: September 18, 2011, 12:19:56 pm »
It is also very widely called pseudo-code. The programming teacher at my school yes, I said "The programming teacher at my school".) calls it pseudo-code, and I am sure that many other people do, even on omnimaga. Here is an example: http://ourl.ca/4317
Anyway, I am not sure exactly if Eems called it that, but many people do. I am going to go make a power bar for this, and then a menu.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #12 on: September 18, 2011, 12:26:21 pm »
Oh, I'm not saying its not a word, I just was explaining that I knew what it meant. sorry for not being clear :P



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline boot2490

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 607
  • Rating: +54/-36
    • View Profile
    • Boot2490's Stuff
Re: Golf Tour 2011 - Not mini golf!
« Reply #13 on: September 18, 2011, 12:32:11 pm »
No problem.
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler For Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Golf Tour 2011 - Not mini golf!
« Reply #14 on: September 18, 2011, 12:41:43 pm »
Hey, I'm thinking for matrices:

4x4 sprites

2=green
3=fairway
4=rough
5=trees
6=penalty (pond, rocks)
7=sand bunker
0=hole
1=tee-off area mens'
1.5=tee-off area womens'?





Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0