I didn't know where to post this but...
It was just an idea, but I wanted to start an AGS Golf game, like the old NES golf games. But as I started thinking about it, I don't think it's possible. I was going to use a top-down view and use 1 slider for the power meter.
But I don't think AGS can create dynamic wind systems or affect the ball when it is in the rough or in the sand. I also couldn't dictate how AGS would handle hills on the green and realistic putting physics. Can AGS actually do any of this?
The question is not whether AGS can do it or not (it can), the question is whether you can do it. Do you feel comfortable enough with AGS coding yet? Then go ahead. You should look into the sine and cosine functions to simulate ball movement, the rest is pretty simple maths.
It's been done already :D
I don't know if anyone's hosting it but it has been done.
AGS has SIN and COS functions? I've never seen them before.
Believe it or not... ;D
How do I use these functions?
You could look it up in the manual pretty easy.
To save you some time: (AGS 2.7)
int cosine = Maths.Cos ( 1.0 );
This will store the cosine of 1.0 radians into the variable "cosine".
I assume you know what functions like cosine "do".
Will that work for 2.62.?
I don't think so.
Here's a great old "MiniGolf" game/demo thingy that was made way back when.Ã, I uploaded the file HERE (http://www.bushidokai.ca/bigdon/files/MiniGolf.zip)
(It's 916 KB in ZIP format):
It really shows some great potential of what you can do with this kind of idea.Ã, You can probably kindly ask the author(s) for some of the source code and/or some suggestions and advice about making a golf type of game.
(according to the scrolling credits on the main screen, it was programmed by Steve McCrea along with help/input from several other AGS members).
[off-topic] Well, almost.
I used to find golf extremly boring. Keep in mind that I grew up in Greece, where there is sun and sea, and no green at all. Anyway I used to think that golf is boring as hell. Then I decided to watch a little in the TV. I found the technicality behind the sport facinating. And I talked to some people who play golf, and told me that one of the things that keep them going to play golf, is the walking. You are in a beautifull park, you are wlking miles and miles, and you are fighting to be the first to reach the 18nth hole. Plain and simple. Now, if you take out the walking and replace the fighting, with a friend usually, to fighting with a computer with little IQ, you get... nothing. It is like swimming perhaps. Great to do in real life, but the last game I remember about summer in generall is Sumer Games (198something). I feel that it is the same with golf. [/off-topic]
I don't know. Golf is one of those games that I'm embarrassed to admit I like playing on the computer. It's easy, it's relaxing, it's satisfying, it's fun.
Quote from: Rap4Life42o on Mon 24/10/2005 20:19:47
Will that work for 2.62.?
Not directly, but you can always implement a "Sine Table" (which I think was the technique widely used by old 8/16 bit console games), and simulate the precense of Sine and Cosine with only integer variable types.
Here's an example (http://www.2dadventure.com/ags/clock3src.zip), which was just my clock (originally made to test AGS V2.7), now modified to work with V2.62.
And no, no plugins, I would never ever touch these evil bastards! :=