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 / This was my first attempt at creating anything all by myself...

Author
Message
Mawoose
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location:
Posted: 22nd Jan 2005 08:00
I have always been interested in games design and always been interested in computer programming too. So when I found Dark Basic I ordered it straight away.
When it finally arrived I spent about a day going through all the tutorials and stuff, and also I had been reading the online help files on this website before hand to try and give myself some knowledge of it before I began. By the end of the day I was eager to experiment with what I may or may not have learned,(having been trying snippets of code all day), and so I made this simple number guessing game all by myself!I was determined to see what I had learned and what I could remember so I did not copy any code from tutorials or anything it is all my own stuff!Any way I know it's gonna look really pants and simple to most of you guys but I just wanted to post it to see what you think considering this was my first attempt at coding or programming anything ever!
By the way try typing 'frank' or 'jo' as names at the beginning. its more of a personal joke for me just to get a laugh but you'll see it in the code anyway.
I am now on to 3d stuff but am stuck on collision so help with that would be welcome also!
Hope to get some feedback on all this...
Matt
p.s
dark basic is a brilliant program. i'm hooked already!
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 22nd Jan 2005 19:10
Your code is not there. Use one of these



Thanks to Animeblood for the Logo!
Mawoose
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location:
Posted: 23rd Jan 2005 06:40
oops ok thanks for telling me.
im not sure how to do that but i'll try this...


hope it works!
matt
Mawoose
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location:
Posted: 23rd Jan 2005 07:54
While I'm here I would also like to post this code. I am working on a simple football(soccer?) game (probably more like air hokey but not so fast and you can go over the half way line!). It's supposed to be a two player game on one computer. Just something simple to start with 3d. I have made the pitch, the ball and the players(though very simple and i'm going to something else with them at some point.)I have also enabled movement of the players-arrow keys and wasd.
Anyway I was wondering if any one could help with collision detection? I don't understand any of the collision detection stuff yet and I basically want to be able to push the ball around with the players. I would also like to put invisible walls around the edge of the pitch to stop the ball or the players going off into space. It would be good if the ball can still actually go hrough the goals though.
The code probably generally needs tidying up too.
Help would be really appreciated on this and please look at my previous posts too!(Nothing too complicated please though if poss!)

Thanks guys.
Matt
Drew Cameron
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 25th Jan 2005 02:46
Not bad! It's nice to see a new user who doesn't jump in at the deep end

Drews free DB games - http://www.drewsgames.com/
Time Ship : out now! Check out the link above!
Foxy
20
Years of Service
User Offline
Joined: 4th Jan 2005
Location: The Dale, South Australia
Posted: 27th Jan 2005 12:13
...and drown a horrible deterred-from-programming death.

If you send me an email I could prob give you some help with that collision - durdge39(at)hotmail.com - replace the (at) with a @

If I were you and you were me, then you'd be yourself 'cos you are me and I am you.
Mawoose
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location:
Posted: 30th Jan 2005 18:45
Thanks guys thats cool.
I'll send you that email right after finishing this post!
matt
Mawoose
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location:
Posted: 12th Feb 2005 23:12
hi durdge.I dont know if you have replied to my last email or not but unfortunately i can't access my email account at the moment for some reason so am unable to read and reply! Just thought I'd let you know in hope that you might check this forum post again!
Matt
Random 69
20
Years of Service
User Offline
Joined: 24th Aug 2004
Location: Marshmellowland
Posted: 13th Feb 2005 00:33
Just a tip use gosub instead of goto works exactly the same but for some reason poeple say it works better


Try Chronic Basic the new programming langauge -- 5% Done
mathkid
20
Years of Service
User Offline
Joined: 1st Feb 2005
Location: Central Massachusetts
Posted: 22nd Feb 2005 00:56
gosub isn't exactly the same.

it go through some lines of code and then return to where you started.

(code)
gosub Math
(more code)
gosub Math
end

Math:
(even more code)
Return

The above would execute as (code),(even more code),(more code),(even more code).
mathkid
20
Years of Service
User Offline
Joined: 1st Feb 2005
Location: Central Massachusetts
Posted: 22nd Feb 2005 00:57
oops, sorry about that horrible grammar. I don't check that much for typos.
Foxy
20
Years of Service
User Offline
Joined: 4th Jan 2005
Location: The Dale, South Australia
Posted: 22nd Feb 2005 19:30 Edited at: 22nd Feb 2005 19:43
Hey, I finally checked back again, Yeah I've been having trouble with hotmail lately aswell - weird . Anyhoo here's the file I sent you. That is some simple ball hitting code.

Cheers.

[McEdit]: @Marsh: Gosub is just easier to use (if it's in your main loop) as you dont have to have another label right after your gosub/to statement. Goto I guess would be used to it's potential when making menus and things.

If I were you and you were me, then you'd be yourself 'cos you are me and I am you.

Attachments

Login to view attachments
Mawoose
20
Years of Service
User Offline
Joined: 22nd Jan 2005
Location:
Posted: 23rd Feb 2005 07:03
thanks for the code. I have tried briefly to put it in my football game. It's not really working for me right now but I will have another, more in detail look at it in a few days. I have my cousin staying the week so I dont really have time to do so this week! It's good to see it working so well in the code you sent me. Thats exactly what I want! Thanx again, will get back to you soon, keep checking this thread as the only place I can get my email to work is at college and I cant download there, also the only way to get data to and from college is via email! How ironic. Cheers,
Matt
Monty87
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 25th Feb 2005 04:06
try a pong game next. everyone should do a pong game when they start. the fun of writing a pong game will wash over you like a warm yak butter bath. this i garantee, or you yak butter back.

Monty

Login to post a reply

Server time is: 2025-05-23 19:28:29
Your offset time is: 2025-05-23 19:28:29