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.

Code Snippets / Very basic box game (DB)

Author
Message
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 29th May 2005 05:08 Edited at: 29th May 2005 05:09
This is a very basic game made for the complete NEWBIE as a little helping hand. Don't get your hopes up, but see what you think. Please reply



Trying is the first step towards failure.
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 30th May 2005 01:29
Please

Trying is the first step towards failure.
Xenocythe
20
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th May 2005 02:01
Hhahaha i added it to the end of this program that i made!



this is awesome! lol

Enjoy Life while your still alive.
Enjoy a recees anytime!
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 30th May 2005 04:10
lol! That is pretty awsome. Oh well, at least you replied.

Trying is the first step towards failure.
Xenocythe
20
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th May 2005 07:11
Actually I added it because i thought it was good. I mean, i have trouble making those kind of things! Lol.

I need to learn how to make keyboard movements like that....
And the waypoint and object collision stuff... way ahead of my newbie league

Enjoy Life while your still alive.
Enjoy a recees anytime!
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 30th May 2005 18:14
Oh rite, if ur being serious. Thanks. I thought I wos goin 2 get a load of people saying "I could make that with my eyes closed" and "my sister could make that." Thanks.

Trying is the first step towards failure.
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 30th May 2005 18:16
Quote: "I need to learn how to make keyboard movements like that....
"


Actually, I suppose you wuld have done as u joined 4 days ago! Thanks again.

Trying is the first step towards failure.
Freddy 007
20
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 30th May 2005 21:47
Quote: "I thought I wos goin 2 get a load of people saying "I could make that with my eyes closed" and "my sister could make that." Thanks."


My sister could make that with her eyes closed

Well, I don't have a sister...

But this is certainly well done for a newbie Just keep it up!

*** PANZERGAMES ***
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 30th May 2005 23:19
Thanx. My sister wouldn't know how to start up DarkBASIC let alone use it. But yehr. Thanx.

Trying is the first step towards failure.
The Nerd
21
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 31st May 2005 02:18
Thats a pretty good game

But i think it would be coolor if you made a matrix to walk on

Here's the code with matrix. I have commented it so you should understand how it works. Also i added a timer so you gonna lose if the time is = 0

But i haven't played the game with the new time.
But i have also commented it so you can make more time with ease


The code :



Enjoy!

Visit PanzerGames here
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 31st May 2005 04:33
Thanx for re-plying but I've just realised what I've done. I meant the game was FOR newbies. I'm not a newbie, well to a certian extent Im not. Yehr, Ive been doing games for bout 2 or three years. I only made this game very quickly to help newcomers. It was a piece of cake, just thought it would hep some people. But yehr thanx for re-plying you lot. Its really nice of you. I hate it when people dont reply. Rite, im getting to emotional here, Im goin 2 shut up.

P.S - Take a look at the screenie. I got carried away. Ignore the crowd, I couldnt be bothered to make a proper crowd. Very basic, only took bout 4 hours.

Trying is the first step towards failure.
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 1st Jun 2005 02:07
Sorry, the website wont allow me to upload screenies yet but I will soon. Trust me, you have to see how its turned out. Im really proud of it.

Trying is the first step towards failure.
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 1st Jun 2005 06:24 Edited at: 1st Jun 2005 06:27
Sorry, my fault, no the sites. Attached is a screenshot... I've removed the crowd texture!

Trying is the first step towards failure.

Attachments

Login to view attachments
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 1st Jun 2005 06:28
PHP? Why. Sorry. here it is again... (If you want to delete the message above edited 23:27 feel free)

Trying is the first step towards failure.

Attachments

Login to view attachments
Xenocythe
20
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 5th Jun 2005 03:16
Yo.. that's pretty cool (I looked at the screenie). But I'm back again, and I changed it so theres no time limit, and you turn and go faster, and when you hit the right box, the box dissapears instead of turning green.



Maybe you can change it so when you hit the right box, that box explodes (your gonna have to use a bitmap for the explosion) and dissapears!

Enjoy Life while your still alive.
Enjoy a recees anytime!
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 5th Jun 2005 18:13
cool idea. yehr i might try that. thanx greenfox.

Trying is the first step towards failure.
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 6th Jun 2005 07:42
pretty awesome
[offtopic]
We badly need an official naming system so instead of plain oh user we could have n00b or expert or something besides boring user
[/]

formerly shadows of emptiness
Da_Zippa
20
Years of Service
User Offline
Joined: 5th Jun 2005
Location:
Posted: 7th Jun 2005 05:28
hey
i am very new at Dark Basic

But i've got a problem perhaps you can help me !

When i run the code for your game ich have a red box and the rest is also there the white boxes and so on

but if i hit the arrow keys the red box starts spinning arround an nochtin else happens... i am not able to move in an other direction with the red box

i think there is something wrong with the Dark Basic
any one some ideas what i can do ??

Sry for my english i am a stuoid german and i know a lot of stupid german teachers who never were able to teach me english correctly !!! sry for that!!!
Cloggy
20
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 7th Jun 2005 06:22
Pretty good effort.

Maybe you could create a high score table to store the top ten quickest times and display it at the end of the game. You could store these out to file.

It would give you a reason to keep playing. Everyone always wants just one more go to beat their best time

Keep up the good work,

Cloggy
Xenocythe
20
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 8th Jun 2005 05:51 Edited at: 8th Jun 2005 05:55
why not add a car texture to the red box? lol.. that'll be hard.

Quote: "It would give you a reason to keep playing. Everyone always wants just one more go to beat their best time
"


Then make it a quarter a turn

Enjoy Life while your still alive.
Enjoy a recees anytime!
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 10th Jun 2005 06:33 Edited at: 10th Jun 2005 06:40
I simplified your code a lot; you were checking for collision with each box, but what if you had like 100 boxes, that'd be a lot of code. I added a for statement to take care of it in a few lines. I also added in some 3rd Person View Camera Movement, made the system a bit more efficient, added some text to the screen so you can see where you ar at so far with the waypoint collection, and made it so that the boxes aren't only positioned on the positive side of the axis.



As you can see the new code is still much less than your code, with a lot more of commands in it.

To change the difficulty, increase or decrease the TotalWaypoints# Variable. I've set it to wait for an answer to either restart or end the program but I have to leave some of the work for you. Basicially to work in restarting delete every object made, then go back to the beginning of the program with gosub. Goodluck and Goodjob with the snippet.

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 10th Jun 2005 14:23
wow after i actually figrued out how to play it it was pretty fun
nice job but soem instructions would be nice and something besides randomly placed would be cool cause then it requires skill instead of guesswork maybe make a map or something and then add a highscore system

formerly shadows of emptiness

Login to post a reply

Server time is: 2025-06-08 05:54:13
Your offset time is: 2025-06-08 05:54:13