Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Community Project

Author
Message
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Sep 2007 21:42 Edited at: 4th Sep 2007 21:52
I'm not completely happy with it but here's the update


I've added three functions:
@iso_tile(x#,z#,fgcol,bgcol) draws a tile centred on the co-ordinate you supply using two colours to show hi-light on top and left sides
@iso_screenx(x#,z#) returns the x screen position of a 3D co-ordinate (y isn't required)
@iso_screeny(x#,y#,z#) returns the y screen position of a 3D co-ordinate

I am currently using the centre of the screen as point 0,0,0 and movement is controlled isometrically (you'll see when you run the program). If you would like me to change either of these let me know
All your AI can be programmed as normal and the functions will convert the data to isometric

[edit]
I'm going to get some advice about this because I have a feeling I'm not doing it the best way. TDK, Phaelax, Latch or any other experienced programmers, if you happen to read this could you give me some advice.
The next step is making hills and getting the character to respond to the ground height. Wish me luck
Can you guys make some tiles and isometric objects for me to do tests with please

In programming, nothing exists
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 4th Sep 2007 22:14 Edited at: 5th Sep 2007 03:51
It looks good so I'll get started with this then. But the tiles shouldn't overlap at the edge like they do. So really each gridline should be 2 lines where the different tiles sit next to each other unless there is going to be black lines dividing up the map in the actual game.

Edit: Ok I've got my pathfinding function working in the isoworld obese made without making any changes to his code except to add the include# line and to dimension some arrays. I only had to change the way my node path to real function converted the tile numbers into screen coordinates.

Edit: Sorry, I had to leave before I could finish posting the scripts.

Here they are:

"Astar.DBA"



The isoworld:

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 5th Sep 2007 16:56
I've neatened things up a bit but I can't get the tiles to tessellate properly
Thanks to my RUP function the height line is always right in the middle of the circle and everything is positioned better
Any idea what I'm doing wrong with the tiles? Have I got the isometric calculations wrong?


In programming, nothing exists
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 5th Sep 2007 23:04
MAN I hate SCHOOL!! I CANT WORK ON ANY THING!!! i might be able to do somthing today though....
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 5th Sep 2007 23:08
Schhol just started for me as well... we have an american exchange teacher.

Acording to Grandma, I am now enemy of the evil republic, who captured Paris Hilton and couldn't manage it.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 5th Sep 2007 23:46 Edited at: 5th Sep 2007 23:52
Hmmm lets see...ive got a french teacher!
but i just cant seem to get the hang of the it! just use the other one i made...
excuse me, my jpg stinks.

Attachments

Login to view attachments
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 6th Sep 2007 03:24
I get most of my work done in school, i just finish my work then program on my laptop. Or write on paper.


http://www.freewebs.com/zornoxstudios/
Learning C++ thanks DGDK
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 6th Sep 2007 03:26
I believe this is the problem:



This is what it should be:

Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Sep 2007 03:29
hmmm...
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 6th Sep 2007 03:43
hmmm.. what?
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Sep 2007 03:51
just gazing at the code
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 6th Sep 2007 04:26 Edited at: 6th Sep 2007 04:28
I think Luke is right. hmmm... Dark Dragon hmmm...
Quote: "just gazing at the code"

Whats the need to post then?


http://www.freewebs.com/zornoxstudios/
Learning C++ thanks DGDK
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 6th Sep 2007 04:45
Quote: "just gazing at the code"


And you had to gaze it it verbally?
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Sep 2007 04:49
yup.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Sep 2007 12:51
Thanks Luke that seems to have fixed it
I'll work on it this evening.

In programming, nothing exists
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 7th Sep 2007 03:14
I'm going to try and get some basic AI chase stuff down now, but since schools started, I am gone from 7:00am - 7:30pm on Mondays and Wednesdays because of my math classes, so I won't get anything done those days.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Sep 2007 15:00 Edited at: 9th Sep 2007 01:11
OK I'll get to work on hills.

[edit]
I've written some music for the game: a town tune that reminds me of Discworld lol, and another piece that could be the main theme.
I'll post them when I'm happy with them

In programming, nothing exists
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Sep 2007 19:20
Has anyone done any artwork?
I'll post a basic tile up here for you guys to work with.

In programming, nothing exists
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 14th Sep 2007 20:28
I don't have the time, sorry guys just post stuff

In programming, nothing exists
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 14th Sep 2007 23:08 Edited at: 14th Sep 2007 23:08
man! school's been heavy on homework! At least i'm getting some good grades! well, i can get some stuff up by tomorrow.
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 16th Sep 2007 04:37
srry, but i think i might have to drop out of this project. im working hard on a game that i intend to sell and it and school(mega homework - try 5 pages of math + spelling + history DD ) im REALLY busy. Sorry.


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Sep 2007 22:58
yeah. with school now, i'll barely get to work on this(Let alone my projects!!)......i'm gonna postpone until my winterbreak......srryy...
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 19th Sep 2007 23:57
Well I for one am still interested in working on this.
I've been going through a very lazy period and have hardly coded at all. This is a big project so I don't mind if you guys are working on other stuff as well as this, that's cool

Where are we now? What needs to be done?
Oh yeah I was working on Iso-hills, damn tricky

In programming, nothing exists
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 20th Sep 2007 03:38
I've still been doing some work on the AI, just not alot last week. I'm almost done with the alpha version of my map editor as you probably know, and I've been working on it with most of my free time. And if you want tiles obese you can just use the grass one and the building I made. You're going to have to position the tiles based on their height so that we don't get a two tile building centered over 1 tile and have it not line up right. Do you know how you're doing the texturing on the hills yet? That's going to be hard.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 20th Sep 2007 04:09
yeah i guess i shouldn't give up.after all i'm the one that started all this! well i guess we should get some coding done.All we have done is gather media..
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 20th Sep 2007 05:28
Quote: "All we have done is gather media.. "


With the exception of Obese> He's done everything up to now
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 20th Sep 2007 18:24
Somehow all of you other lot strike me as 'media makers' with skill in graphic art, and OBese seems to be able o get into the codingside a lot easier.

Our home is our world, our life, home is our world...
Homeworld: The ladder
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 20th Sep 2007 23:43
thats me

In programming, nothing exists
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 21st Sep 2007 22:01
Quote: "With the exception of Obese> He's done everything up to now "
yup.yup,yup,yup and yup. i guess i've been slacking around....

Login to post a reply

Server time is: 2025-06-02 08:17:36
Your offset time is: 2025-06-02 08:17:36