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 Professional Discussion / - DBPro Coding Challenges -

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Jun 2011 00:06 Edited at: 18th Jun 2011 00:11
Quote: "It doesn't have to be a US flag"

Oh yes it does!

Can I use the one I made 6 years ago?
http://dbcodecorner.com/?page=demos


acelepage, what are those physics commands you're using? They work, but I can't find anything about them in the help files.

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Jun 2011 00:12
Hi there.

Quote: "acelepage, what are those physics commands you're using? They work, but I can't find anything about them in the help files."

@acelepage

I`m in the same boat as Phaelax....your code works awesome in my PC, but now I`m not sure if I have installed any plug-in Some time ago or if this physics commands come with Darkbasic Pro...where can I get the help files? it`s very interesting.

Cheers.

I'm not a grumpy grandpa
Jimmy
20
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 23rd Jun 2011 04:05 Edited at: 23rd Jun 2011 04:36
They are DarkPhysics commands.

Edit:

FAIL

acelepage
19
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 23rd Jun 2011 04:27
@chafari
They are Cloth & Particle commands. Their used to be a Cloth & Particle physics add-on to DBPro. I bought it many years ago. Since then, DBPro has included this package as part of the base install. However, they never put the commands into the help files.

So, the code runs without any additional plug-ins. Although, I still feel I was cheating because the true point of these challenges is to perform the task with raw code.

( 2b || !2b ), that is the question. The answer: true
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Jun 2011 05:02
stupid worthless DB help file, im gonna make a new one!

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Jun 2011 14:40
Quote: "They are DarkPhysics commands"


That's what I thought but could not understand how it worked if I have not darkphysics. Thanks Jimmy


Quote: "However, they never put the commands into the help files."


That's what I feared ... I think I`m gonna do the same as Phaelax

Cheers.

I'm not a grumpy grandpa
acelepage
19
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: Plattsville
Posted: 23rd Jun 2011 15:41
Here is the help file for Cloth & Particles. I had to find the file first. It was on another computer (I would have posted it earlier if I could have found it). It is a Windows help file, so it does not integrate with the DBPro help screen. It is basic syntax help, so not much in the way of applying the commands. There are some examples around the site of cloth & particles code, which help one learn how to implement the commands.

( 2b || !2b ), that is the question. The answer: true

Attachments

Login to view attachments
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 23rd Jun 2011 17:03
Quote: "stupid worthless DB help file, im gonna make a new one!"

We should work on that darn wiki, I filled in a lot of the commands on it a while back. Could be a great way to have some actually good help files for everything.

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Jun 2011 20:45
Thanks acelepage. The help file is fine, although it doesn`t work on windows Vista when it works perfectly in windows XP...but it`s ok...it`s gonna be a question of copy & paste


Cheers.

I'm not a grumpy grandpa
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Jun 2011 08:31
thanks ace.

What I'd like to do is gather up the help files and keyword INI files then store those modules on my web server. Then, using a form, the user can select which packages they have installed and a new keyword download file is dynamically generated for the user.

David Gervais
Retired Moderator
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 6th Jul 2011 15:56
Seems Quiet here so I'm gonna post a challenge, see what you can come up with and I might make some graphics to enhance the winning entry as voted by you all. turn it into a demo.

Challenge: Make a way-point navigation system.
Notes: basic stuff. place a sprite on the left, some obstacles in the middle, and an end point/target on the right. set way points then hit 'Go'. Can do it in 3D if you want, but I think a 2d challenge will be easier for most.

the challenge will run to July 15th.

Ready! Set! GO!!

Cheers!

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 7th Jul 2011 01:15
Ack! I totally forgot I was supposed to judge the last challenge.

Sorry all!

Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 7th Jul 2011 19:35
I'm in. Been a while since I've entered one of these anyways--not to mention I love pathfinding, even though I may not be the best at it, lol.
Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 23rd Jul 2011 03:11
What happened? Where are all the entries? Since it's a week past the dead line, is it ok if I come up with a challenge?
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Jul 2011 18:03
Quote: "is it ok if I come up with a challenge?"


I think that anyone could set up a new challenge if date has passed and if you have a brilliant idea in which people want to participate . Come on !! make yourself a new challenge

Cheers.

I'm not a grumpy grandpa
David Gervais
Retired Moderator
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 25th Jul 2011 23:38
Sorry I got busy and forgot about this, but seems there were no entries, so anyone else care to set a challenge?

Cheers!

Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 26th Jul 2011 00:41 Edited at: 26th Jul 2011 00:45
Alright, the next coding challenge will be Tank Wars! If you don't remember it, look it up on Google, or YouTube it. It's an old DOS game. Here's a Wikipedia article. Not much there, but every little bit of research counts.

Scores will be based on:

Completeness(Doesn't have to be 10 players, or 100 weapons. Just make it feel whole.)
Playability(Simple. Does it work?)
Efficiency(Does it have lots of extra lines of code that seem to be unnecessary?)

I'm not going to judge graphics as these challenges are not graphics based, but I need to at least be able to tell what it is, and what's going on. Though, please don't use eye bleeding colors, or rapidly flashing textures. I say this because the original was prone to epilepsy inducing backgrounds and patterns. If you give me a headache, I won't judge your entry. Not kidding! This isn't 1986!

Okay. Challenge will end August 19th, 2011. Go!
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 26th Jul 2011 02:42
You can get the original here and play it with DOSBox: http://www.download-central.ws/DOS/Games/T/Tank-Wars/

Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 26th Jul 2011 07:27
Thank you, BMac.

Also, forgot to say: You don't have to base yours on the DOS version. There are other versions.

Also, bonus points to anyone who can at least stuff 5 completely different weapons into their version! Of course, I guess I could just lump those bonus points in to the completeness category, and make those points worth more.

Quote: "Marty: Well, why don't you just make it go to 10, and make 10 louder?

Nigel: ... ... ...But, this amp goes to eleven."

Sorry! Couldn't resist! XD

Good luck!
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 3rd Aug 2011 06:46
Figured I'd post a screenie of what I got going on so far in the hopes of sparking some competitive spirit

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Aug 2011 18:11
You going for a 'gorillas' type game?

Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 6th Aug 2011 18:38
Looking good, Coldfire!

I don't quite get that comment, Phaelax. Maybe it's because I just woke up... Did you mean 'guerrilla?'
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 8th Aug 2011 04:48
He actually meant an old tutorial basic game from MS QBasic, http://en.wikipedia.org/wiki/Gorillas_(video_game). I remember that quite well actually. It was very similar to Tank Wars except you controlled gorillas that threw bananas, lol. The Landscape was also made of random sized buildings instead of a fractal terrain.
Zaxtor99
12
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 9th Aug 2011 16:00
I just discovered this thread, very cool indeed!

I doubt I will be able to even come close to matching up with some of the stuff all the experienced DB'ers are throwing up here, but this actually was always one of my favorite type of games as a kid back on my old trusty Commodore 64.

Here is my version so far.. This is 2 hrs of work already so I plan to keep it VERY simple and get it working good before I add anything fancy (like better graphics or multiple weapons, 10 players, etc)

Anyhow, that's where I am at so far....
It draws a completely random mountain each game, trust me that's a lot for me right there! lol.


- Zaxx




[img]null[/img]

Attachments

Login to view attachments
Zaxtor99
12
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 9th Aug 2011 16:10
Here is the very next game, showing the difference in random terrain.

- Zaxx

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Aug 2011 19:11
Gorillas



Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 14th Aug 2011 04:29
Wow! That's looking pretty good Zaxtor.

@Phaelax: Sorry, see I had just woken up! Haha. That screen reminds me of that old game Rampage!
David Gervais
Retired Moderator
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 14th Aug 2011 13:24 Edited at: 14th Aug 2011 13:26
@Zaxtor99

You sparked a bit of creative ideas in my head..

Attached is a quick sample of what exploded in my brain. I have the tank sprites (Red, Yellow, Green, Blue and Purple versions 64x32 alpha channel .png's) and I can make you a few nebula backgrounds if you would be interested in taking this project a bit further after this challenge.

I like the idea of giving this a retro feel with a little bit of 'splash'

Keep up the good work!

Cheers!

Attachments

Login to view attachments
Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 15th Aug 2011 05:19
Wow, I would like to see how that turns out. No pressure Zaxtor...
Zaxtor99
12
Years of Service
User Offline
Joined: 27th Jul 2011
Location: Boise, Idaho, USA
Posted: 15th Aug 2011 11:01 Edited at: 15th Aug 2011 11:07
WoW David, that is a VERY nice effect indeed. I love it. Also your tanks are much more detailed then mine which i pretty much just scribbled out freehand in like 30 seconds. Pathetic, I know. :-(

I like the effect as well... but I am probably in over my head with this game... not sure. I can likely get the tanks to shoot okay, and get the game to "work", but to make this game good, you'd need to have collisions from missles hitting the mountain or ground actually leave holes/marks in the terrain. I am without a clue of how to actually implement that aspect of the game. I could do it, but there has to be a better way then to have a ton or arrays (or big multi-dimension array) keeping the coords of the current drawn mountain and terrain so as to adjust those coords to leave impact marks from missiles.

If anyone has some advice on how to implement that aspect effectively then I'll continue my work on this retro game, but without that aspect of the game, I have a feeling it's just gonna feel like something is "missing".


- Zaxx
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 18th Aug 2011 02:39
Well, I probably won't have time to finish mine due to work, but the way I did it, was with a 2d array of booleans. I'm sure you could use integers to if you really wanted. Since I was going to use some simple 2d physics and would no right where and when a collision took place, I could update the map only when necessary.
Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 19th Aug 2011 06:45
Well, the dead line is tomorrow. Hope a few people post some entries soon! Good luck!
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 19th Aug 2011 10:05
Tank Wars, fun fun stuff. I'm almost done, hope I can fix some of the glitches and put some finishing touches on it by tomorrow.

So far so good, it is very much playable, but I don't think that I have time to make AI for computer players by tomorrow.

I like games, and stuff.

Attachments

Login to view attachments
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 20th Aug 2011 01:55
Well here is my entry.
2-4 players, no computer players.
Didn't make any AI.
Didn't make sound effects.
Didn't use any media.
And didn't put any comments.



I hope that it works alright, I only tested it on one computer.



I hope that you like it.

I like games, and stuff.
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 20th Aug 2011 06:36
Where is everybody else? I thought that today was the dead line.

I was just joking about not putting any comments!

Does my code run on anybody else's computer?
Why isn't anybody else posting theirs?

I thought that there were a few others working on a tank wars game.

Well, I'm gonna go work on my platform game.



I like games, and stuff.
Non Sequitur M
15
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 20th Aug 2011 18:22
I don't know. I was hoping for more, also. Anyway, I guess you win by default. Although, you did have a very good entry. The only downside was that it can't be played from an exe. It had to run from the editor. Other than that. Very nice job!

Completeness - 3/3 - 4 players, multiple weapons, ground deformation. Nice job.
Playability - 2.5/3 - Very playable! As long as you run it in the editor.
Efficiency - 3/4 - Accomplishes what it needs to. The only drawback was, there were no functions or user defined types, which when used properly could really squash this code a bit. Also, there were quite a few gotos. You should really look into some of the alternatives to that.

Overall - 8.5/10 - Nice work. I would have loved to see some more entries though. But, you still would have done well! Hopefully, the next challenge will have more entries. Good luck, Webber. You set the next challenge.
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 20th Aug 2011 20:01
Yeah, I wasn't aiming for efficiency much, just tried getting it as complete as I could within the time limit. Hahaha, a lot of gotos, its true. I might clean it up a bit someday, and add it to the code base.

So the next challenge will be... I'll have to think about it.

Here is an exe for those who don't want to run it in the editor.

I like games, and stuff.

Attachments

Login to view attachments
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 20th Aug 2011 22:46
Do people win by default a lot?

I don't usually have much free time myself.
I guess that everybody else was busy.




I like games, and stuff.
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 20th Aug 2011 23:56


Ok, the next challenge will be to create a seamless painter that could be used for creating your own simple textures. I think that this could be a useful coding exercise.

This could be as simple as one tool for seamless drawing, and a save button.
Or as complex as as as... well there is no limit to how complex this project could be.
The more drawing tools the better, and the more creative it is the better.
It would also be nice to have something for color selection.

Scores will be based on:

Completeness (Can it create, and save seamless textures?)
Graphics (How graphic of textures can the user create?)
Neatness (Is it easy to use, and is it easy to add new tools to the code?)
Speed (Does the program run fast?)

Basically, whoever creates the most useful seamless painting tool wins.

There are virtually no limits to what you can do with this challenge, other than no media, and I want to see some nice programs, so the challenge will end next year, just joking the challenge will end 9/10/11 or September 10th, 2011.

Hopefully more than one person enters; I don't want somebody to win by default again.
I can't wait to see what comes up, so good luck, and get coding!

I like games, and stuff.
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 21st Aug 2011 06:34
Quote: "Do people win by default a lot?

I don't usually have much free time myself.
I guess that everybody else was busy."

It's weird, you'll have periods like this where nobody seems to have time and then you'll have a challenge or two with 6 or 7 entries.

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 29th Aug 2011 09:53
and to think that this started back in 2005... I am keeping posted

Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 9th Sep 2011 21:13
Well, tomorrow is the dead line.
Hope there are some entries soon!
GOOD LUCK!

I like games, and stuff.
Webber
12
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 11th Sep 2011 20:34
NO ENTRIES!!!

I like games, and stuff.
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Sep 2011 05:44 Edited at: 17th Dec 2011 19:21
What about a seamless wood texture creator


Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-04-19 01:18:14
Your offset time is: 2024-04-19 01:18:14