Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 10:53:16 *
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.

Poll
Question: Format? read http://www.omnimaga.org/index.php?topic=10450.msg192651#msg192651 first
AXE - 8 (72.7%)
BASIC with graph screen - 1 (9.1%)
BASIC with homescreen - 0 (0%)
BASIC with Libs - 2 (18.2%)
Total Voters: 11

Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Golf Tour 2011 - Not mini golf! -  (Read 2453 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« on: 17 September, 2011, 21:51:12 »
+2

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: 27 September, 2011, 02:49:29 by boot2490 » Logged

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.
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #1 on: 17 September, 2011, 22:05:00 »
0

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 Hidden:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: 18 September, 2011, 18:28:13 by boot2490 » Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #2 on: 18 September, 2011, 01:09:24 »
0

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.
Logged




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
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #3 on: 18 September, 2011, 01:28:36 »
0

Most certainly!! I am glad to help in the battle against boredom.
Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #4 on: 18 September, 2011, 01:34:16 »
0

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. Big frown
Logged




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
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #5 on: 18 September, 2011, 01:48:04 »
0

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: 18 September, 2011, 02:02:37 by boot2490 » Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #6 on: 18 September, 2011, 02:11:36 »
0

sounds great.

How about St. Andrew's?
Logged




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
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #7 on: 18 September, 2011, 02:55:16 »
0

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 Wink
« Last Edit: 18 September, 2011, 03:03:53 by boot2490 » Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #8 on: 18 September, 2011, 04:03:53 »
0

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. Wink

Casio code:
Spoiler for Hidden:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
'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: 18 September, 2011, 04:04:26 by flyingfisch » Logged




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
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #9 on: 18 September, 2011, 06:16:28 »
0

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.
Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #10 on: 18 September, 2011, 18:13:50 »
0

Yeah, I know; its actually called an algorithm. but its easier (for me) to understand if it uses casio BASIC commands Tongue
« Last Edit: 18 September, 2011, 18:14:12 by flyingfisch » Logged




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
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #11 on: 18 September, 2011, 18:19:56 »
0

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://www.omnimaga.org/index.php?topic=1720.0
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.
Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #12 on: 18 September, 2011, 18:26:21 »
0

Oh, I'm not saying its not a word, I just was explaining that I knew what it meant. sorry for not being clear Tongue
Logged




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
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Topic starter
Total Post Ratings: +18

View Profile WWW
« Reply #13 on: 18 September, 2011, 18:32:11 »
0

No problem.
Logged

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.
flyingfisch
I'm 1337 now!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 21:54:36
Date Registered: 26 August, 2011, 21:18:14
Location: OH, USA
Posts: 1497


Total Post Ratings: +74

View Profile WWW
« Reply #14 on: 18 September, 2011, 18:41:43 »
0

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'?


Logged




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
Pages: [1] 2 3 ... 5   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.283 seconds with 33 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.