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.

Work in Progress / Bob and Falling Blobs - DarkBASIC Classic

Author
Message
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 20th Dec 2005 18:54 Edited at: 23rd Dec 2005 15:09
My first program in DB! You just have to avoid the cubes that are falling. It is fully functional but I posted it in WIP because I want suggestions on how to improve as well as bug reports. You can download the .exe version or view the source.

To do list:
Textures - Delayed: Textures made. Problem with loading them.
Music - Delayed: Music made. Problem with loading it.
Sound Effects - Delayed: Effects made. Problem loading them.

Attachments

Login to view attachments
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 20th Dec 2005 19:08
Hi

Just tried the game, it's good for your first game! And it's good that you posted it in the WIP section, so you could improve it. I got a suggestion that could make it better, right now you don't really have anything in the game to go for, you don't have any goals. Why don't you make it so that when you play the game it counts points, until you loose. Then you have a highscore it will save in a file, so when you load up the game again, you will see your latest highscore. Now the goal in the game would be to keep beating your own highscore That can be quite fun sometimes.

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 20th Dec 2005 19:14
I like that idea! I will try to do that. Keep the suggestions comming!
Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 20th Dec 2005 19:15
just an idea post zips so it's smaller for people to download not bad tho

Experienced DB http://www.greatgames3d.com (work in progress site)
zzz
18
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 20th Dec 2005 20:30
It´s very good for being your first game, Egyptian Mua!
Here´s some suggestions!
All things that The Nerd said. + Nice textures, blocks moves more smoothly, Better steering for the ball(smooth moving, speed increasing, etc), music, sound effects, levels.
This game can get pretty good! Keep on coding!

@ DarkBasic Mad: Or just copy the source and paste it in DB...

Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 20th Dec 2005 22:44
Still working on The Nerds ideas.
Darkbasic MAD - I don't like zips. You have to unzip them and so on. Oh well I might post one later.

zzz - Ill do that when I finish with The Nerd's idea.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 20th Dec 2005 22:47
Quote: "Darkbasic MAD - I don't like zips. You have to unzip them and so on"


It's very easy to unzip them

Thanks for implementing my ideas

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
UFO
18
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 20th Dec 2005 22:50
The windows extraction wizard is slow and lame. I like winrar. All I have to do is right click and click on extract to here and it is really fast. I think it is more worth the wait in unzipping it than for the extra time downloading it.

I will try it in a little bit. Sounds cool!

Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 20th Dec 2005 23:10 Edited at: 20th Dec 2005 23:14
Finished The Nerd's idea! New version (1.1) avalible for download on this post. You win it's in a zip. I also included the new code. (Should I put this in the codebase?)

The Nerd - Your welcome

zzz - Can you give me some ideas for music/sound effects? I have Allegro 2000 for music. Can you tell me what to get for sound effects?(preferably free)

Attachments

Login to view attachments
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 20th Dec 2005 23:17 Edited at: 20th Dec 2005 23:18
Just tried it. It's good! Although on my computer the screen quickly flickers when the variable is counting. You should just print the variable on the screen, in the left corner That way, users can also see how many points they have while they're playing.

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 20th Dec 2005 23:26 Edited at: 21st Dec 2005 00:27
I have the same problem. It just uses the print command. If you could tell me how to fix it that would be much appreciated.

EDIT: Another problem: when I try to load the bitmaps for the textures it just stalls forever.
load bitmap "firstlvl.bmp",1

Anyone know how to fix that?
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 21st Dec 2005 16:15
I have made a few changes. You can try it out and it should work. If you are intrested there are some non working lines in there that have rems before them. They are marked by a rem above that says NOT WORKING: bla bla bla. There is now some media with it although none of it will load.

Attachments

Login to view attachments
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 21st Dec 2005 18:42
@Egyptian Mua:

Quote: " I have the same problem. It just uses the print command. If you could tell me how to fix it that would be much appreciated."


I could not really figure out your code, it's rather messy I think
But in the game loop have you tried to print the variable like this?:



-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 21st Dec 2005 19:46 Edited at: 21st Dec 2005 19:47
the set cursor also works on Input command.

[Edit]
btw The Nerd, did u changed MSN or something?

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 21st Dec 2005 20:54 Edited at: 21st Dec 2005 20:56
Quote: "btw The Nerd, did u changed MSN or something?"


Oh, yeah, about that msn...... Oh boy! Is the clock that much! I'd better be going or i'll miss the bus!

*Runs out of thread*

@Egyptian Mua:

If you have any other questions, just ask We will answer you the best we can

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 21st Dec 2005 21:21 Edited at: 21st Dec 2005 21:39
@ The Nerd Thanks! Ill try that. Yeah it is a little messy. Also if you dont mind try to not use the "Code Snipets". Opera does not display them properly.

Also I do need more help. If you look up to my last post in the code there are some areas that are labled rem NOT WORKING: bla bla.

EDIT: ug. It didnt work.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 21st Dec 2005 22:25
Quote: "ug. It didnt work."


You don't place the code I gave you inside any for next loops, that's getting executed by any conditions do you? If you just place the code I gave you outside in the main loop it should work.

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 21st Dec 2005 22:40
Well... each level is within a big for...next loop
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 21st Dec 2005 22:51 Edited at: 21st Dec 2005 23:13
hmmm, I don't really understand why you put every new level in a for next loop. Don't misunderstand me, you can use a for next loop as the main loop. I will take a look at your code and see what I can do about it

[EDIT]:

Just took a look at the code. You seem to do it a special way. You don't need to repeat all code just for swithing level You can do that much easier. I may try to change some of the code. And fix the printing problem, I think I know why you can't get it to work.

[EDIT]:

Okay i've fixed the problem with printing the variable(highscore).
I don't really have any choice but to put it in the code snippets. Just copy it and read it in the IDE. Here it is:


Now I know why you get the flickering screen when counting, the places where you print what level you're at and what your highscore is. You do that each time an object needs to be deleted. You can see where I have placed the code for the highscore now. Also you(as I said before) don't need to repeat everything when coming to a new level, your code could be much smaller than it is. I tried to change that, but I just can't do that Your code is cryptic. But just so you know, changing level in a game like that, is just a matter of changing some numbers here and there

I will try to make a small game to demonstrate it.

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 22nd Dec 2005 00:44 Edited at: 22nd Dec 2005 04:12
Ummm... Did you test that? It adds 5 to your score even when a block does not go off.

Dont bother I think I have an idea of how to do it. I will probley not do it tonight. More likley on thursday.

EDIT: So much for that. Just did it works fine and gets rid of a lot of code. Still no luck on the text staying. Right now I am more concerned with getting the sound and textures to load. I added to this post the code, all the media (except the sound effect that I still need to change format), and a .exe version of it.

Attachments

Login to view attachments
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 22nd Dec 2005 11:11 Edited at: 22nd Dec 2005 11:12
@Egyptian Mua:

I've just finished a small game that shows you what I mean by that you don't have to repeat all the code just to get to a new level. In this game you simply dogde the boxes that are flying down. If you survive all the boxes, it will go to a new level, in each level there will be more boxes. I made it yesterday before going to bed, so the enemies have quite wrong positions Like they only keep to one side of the screen and they position in each other, which makes it look like there aren't much enemies. But please just ignore that, I don't bother to fix it, since the point of it was to show you that you can change level and make the game harder without repeating the whole code. So here it is:



I wrote the code in DarkBasic Pro, but since you use DarkBasic Classic, I needed to change some things to get it work... I have compiled it in DarkBasic Classic now, so it should work.

Hope it helps

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 22nd Dec 2005 15:42 Edited at: 22nd Dec 2005 15:49
Sorry, but it that was just a little late. I fixed the level think last night. The set cursor thing does not work for me. Like you said it may be because of the for...next loops. I have already removed the for...next loops that I can although I could substitute the for...next loops with this:

looptimes = 0
loopname:
code here
looptimes = looptimes + 1
if looptimes = number of times to do the loop
goto place to go after loop is done
else
goto loopname
endif

I dont care as much about the score flashing as I do about loading the textures and sounds. I added to this post the updated .zip with the media and latest code.
Major Changes in latest .zip:
- level codeing changed
- move up and down as well as left to right
- blocks can come in closer to the edges

Attachments

Login to view attachments
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 22nd Dec 2005 17:07
put in a sync rate of say 30

BM

Our aim is to keep the loo's clean, your aim can help.
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 23rd Dec 2005 03:41
I dont know... it seems to work with out that... Ill thin about it. Thanks!
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 23rd Dec 2005 11:11
Oh I didn't even notice that you haven't put a sync rate on! You should do that, else you let your OS decide what the sync rate should be. I have explained how the sync work in another thread, go here and read it:

http://forum.thegamecreators.com/?m=forum_view&t=67568&b=7



-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 23rd Dec 2005 15:08
Ok, I read the tutorials on it and attempted to put it in at first but it worked better without.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 23rd Dec 2005 15:10
What did you put the sync rate too?

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 24th Dec 2005 01:41
30. It seems the same as before.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 24th Dec 2005 01:47
Quote: " 30. It seems the same as before."


Well, even if it looks just like the same, it's good to have it there, else the game will run at a diffrent speed on each computer it runs on.

Also try set it to 60, and see if that would work out or if it goes too fast But you should always lock the framerate at something.

-The Nerd

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 24th Dec 2005 05:42
Yep works at 60. Also works at 600. Speaking of that it even works at 1000.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 24th Dec 2005 11:07
Quote: " Yep works at 60. Also works at 600. Speaking of that it even works at 1000."


Of course it works at those high frame rates Because I don't think your computer can even reach those.... So it will just go to the highest frame rate it can and stop there....

PanzerGameshere
Free Particle Engine For dbpro :
here
Egyptian Mua
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 24th Dec 2005 14:29
Thats what I guessed.

Login to post a reply

Server time is: 2024-09-29 10:22:07
Your offset time is: 2024-09-29 10:22:07