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 Feb 2005 03:54 Edited at: 18th Feb 2005 04:01
mario can be considered a side-scroller or platform game.

If you wanna make a game challenge, say an atari game. Graphics are no more than circles and blue squares, so no media is needed. But no parachute clones, since I have a tutorial on the forums about that.

Here's a challenge: write a program to find vampire numbers.

Quote: "Vampire numbers are four digit numbers in which the two numbers multiplied are in the product - for example, 15 x 93 = 1395"


"eureka" - Archimedes
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Feb 2005 04:23
DesertEagle - That is really quite good!
BillR - You can't reach the shots on the right.

[url]andrewneale2004@yahoo.com[/url]
http://www.freewebs.com/elbsoftware/index.htm
NathanF
20
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 18th Feb 2005 05:16
Sorry for the confusion.
By graphics, I mean, how well everything is presented, and the quality of the graphics created in-game.
And by side-scrolling, I mean something like Mario, but obviously much simpler. Its a bit of a challenge, but it shouldn't be too hard.
You can make pretty much anything based around a side view.

Im willing to change all this, if you guy's dont like it...


"Blame yourself, or God." - Delita
DesertEagle
19
Years of Service
User Offline
Joined: 7th Feb 2005
Location:
Posted: 18th Feb 2005 05:48
@andrew neale: Thanks for the comment!
@NathF: This challenge is quite good, don't change it. When I asked about the media files - I meant sounds, but now I see you've already edited your post....Thanks.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 18th Feb 2005 06:20 Edited at: 18th Feb 2005 06:26
Well done Nath for winning the AI challenge, and good reviews, Rii. A side scrolling game is a nice challenge - should be fun, and is reasonably specific as CF suggested. I'm away from home atm, so expect a late entry from me on Saturday night!

And for the sake of making if official ..... >>


Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 18th Feb 2005 06:24
Challenge 3:

* Write a side-scrolling game

* Time Limit: Saturday night (19/2/05)

___________________________________________________________________

Challenge setter: NathF


Chris64
20
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 18th Feb 2005 10:17 Edited at: 21st Feb 2005 08:10
WooHoo! First Entry.

It still needs a little work...If you lose all your lives it will just start over and there's a couple ladders that get a little "picky"

Since I was thinking Super Mario Bros... I made a side scrolling Donkey Kong (except no monkey, fire balls, hammers...hey! Gimme a break).
Edit:
Controls...arrow keys and space to jump


I'll still be working on it but that was the basic idea of what I wanted to do.
Edit2: I think I fixed all the For-next loops...I always forget to put the variable after the Next command...sorry.
Edit3: Fixed a couple of the ladders and added some score features.
Edit4: Added SyncRate so it would run a constant rate and modified speeds/gravity so now runs right at a constant 60fps.
Edit5: Small mods to difficulty...gets harder faster! and slowed the camera down.
Edit6: Added fire to start barrel. It flairs up when the balls hit it(trying to stay a little true to the original game). Better Difficulty progression.
Edit7: More work on the fire. I like it better like that.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Feb 2005 20:38
your game is impossible Chris

"eureka" - Archimedes
Chris64
20
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 18th Feb 2005 23:30
I got to about level 7. What part of it was impossible? I could make it easier.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Feb 2005 23:59
Got to level 11 this time, then quit. I set a sync rate because it went way to fast before, and I found out you can jump which made it a whole lot easier.


I started a shoot em up space game, but got bored. Here's as far as I got, not sure if I'll finish it or not.



"eureka" - Archimedes
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 19th Feb 2005 04:15
That is absolutely brilliant!
I'll start my entry now!

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.tk
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 19th Feb 2005 17:33 Edited at: 20th Feb 2005 04:03
Adventure Bot! (wip)

Comments, suggestions, critisisms, etc. all welcome.

Use the arrow keys to move the bot around. Use the mouse to move the targeting cursor. Left click to fire.

As levels progress more bots come after you and they are tougher (more shots to kill).

Skill Shot = hitting an enemy bot with the explosion (instead of the bullet): Worth more points and does more damage. At early levels, a skill shot will kill an enemy bot outright.

Goal, don't let the enemy bot's get you.

WIP List: Add scrolling background (scrolls down). Add more weapon types. Player will be able to carry two weaps, left click and right click. Add stats for player bot. As bot progresses can collect special items - does more damage, moves faster, more health, etc. Enemy bots will shoot (shots will damage, but a tag will still kill). Specials like: Shields, Armor, and Ablative Armor, maybe a 'smart bomb'. Add a store to "buy" specials and weapons. Add money (to collect). Add obsticals (walls, lamp posts, cars, etc). Lives.

Enjoy:



Edit: Added scrolling background, enemy's shoot, and sped things up a little.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Monsieur Mort
19
Years of Service
User Offline
Joined: 12th Feb 2005
Location:
Posted: 19th Feb 2005 22:46
I think there's something wrong with my DB Setup (I posted in the newbie forum but no-one replied, so I have no idea what it might be) but as in most other snippets none of the objects are colored or textured. I have white robots, a white targetting cross, white shots and white explosions which isn't the way it should be. Apart from that the games ok - it 's a bit easy though. I just sat my robot at the bottom of the screen in the middle and held the mouse button down while pointing at any robots coming.

Why do you sink I ave zees outRAGEOUS accente?!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Feb 2005 22:54
A little too easy. Is that even a side scroller?

"eureka" - Archimedes
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 19th Feb 2005 23:43
It is definately not a side scroller!
Not bad though.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.tk
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Feb 2005 01:57 Edited at: 20th Feb 2005 02:05
Quote: "it's a bit easy though."

Quote: "A little too easy."

Agree: Enemy bots shooting (WIP List) I think will increase the challenge (no more sitting around). I appreciate the feedback and will definately strive to make the final product challenging.
Btw, what levels? Or did it get boring? By level 7 or 8, I couldn't 'just sit' any more.

Quote: "It is definately not a side scroller!"

If it's scrolling down, I agree that 'technically' it's not a "side scroller." Donkeykong was more vertical scrolling than side-scrolling. If I add some side-to-side scrolling, will that work then?
If it has to be from the side view, I can easily change the robots to ships viewed from the side, have the enemies come in from the left or right, and now I have a defender clone.

My point is, I was thinking this was in-line with the overall concept; a 2D challenge with scrolling. Are we being that technical in the definition? Please let me know.

Edit: Thanks for the comments.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Monsieur Mort
19
Years of Service
User Offline
Joined: 12th Feb 2005
Location:
Posted: 20th Feb 2005 04:42
Just one more point - I don't know if it's a bug or intentional, but you move faster diagonally than in horizontally/vertically because you simply added the same constant to the x and y numbers of the player robot position as when moving horizontally/vertically instead of adding 1/sqrt(2) * the constant.

Why do you sink I ave zees outRAGEOUS accente?!
Chris64
20
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 20th Feb 2005 04:58 Edited at: 20th Feb 2005 05:21
Quote: "My point is, I was thinking this was in-line with the overall concept; a 2D challenge with scrolling. Are we being that technical in the definition? Please let me know."


I agree...The "side scrolling" title to me would mean any game that follows the older 2d style games even if it's in a 3d realm. Games like Super Mario Bros, scramble, Castlevania or the original 1942. Up/down vs left/right shouldn't matter. Of course that's just my opinion...I don't even know if my game qualified...it was just an idea I had for a long time anyway.

Edit: Nice game BTW. I didn't seem like I could dodge the enemies bullets so I could only make it to level 2. Very nice modeling.
DesertEagle
19
Years of Service
User Offline
Joined: 7th Feb 2005
Location:
Posted: 20th Feb 2005 05:03
Hi everybody....
sorry I didn't post here, but I didn't have time to start this challenge..... I had lots of homework to finish....
I hope I could finish the next challenge
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Feb 2005 07:05 Edited at: 20th Feb 2005 10:34
Still 54 minutes to go according to my clock ..... plenty of time to get started

(....quickly gets back to frantic coding)


<edit>

Here's my last minute defenderish entry - was a real rush job to get it done before midnight, but I'll try to keep working on it for a bit anyway ....



Mouse controls the ship, left mouse button to fire - shoot the red aliens, but collect the green fuel pods - you know how it works.

<edit> Worked on a few finishing touches - did go over the deadline a bit though.


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Feb 2005 08:51
ric.. This is hardly a side scroller:
Quote: "text screen width()/2-70,210,"Out of fuel!""


My Website:
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 09:32
@Ric or any1 else who can answer....
How come on your GREAT pong game it comes up all cool 3d etc but only if i take out the endif on the comp. paddle collision which is odd cause than there is no endif if, if i dont take that out i get the "Command out of place" on the endif command also what does the gravity feature do (i would probably know but i can't get the game to work )

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 20th Feb 2005 10:23
Well here is my entry. It could have been so much more with time.. try to collect as many gems as you can before you finnish the board.
arrow keys to control. space to land. use the left side of the screen to get bouncing agian if there are no ramps nearby.



Have fun!!

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 10:40
cool but kinda pointless hehe you should really add more to that it is pretty cool

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Feb 2005 10:42
not bad!

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Feb 2005 10:42
Quote: "ric.. This is hardly a side scroller:

Quote: "text screen width()/2-70,210,"Out of fuel!""

"


lol - you caught me mid-edit!

I've just updated it.

@Kimo - not sure, I'll take a look at it, right after trying out CF's entry .......


Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 20th Feb 2005 10:46
Kimo good to see you back. Yah it needs some baddies, and some reason. but I am done for now me thinks.

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 10:48
alright thx

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 10:51
ya i wasn't codding dbpro for a while because no1 was rly giving me support (dark weeks lol) so I kinda stopped for awhile and im also teaching myself C++ so ya I have been busy (sry for the pointless post not related to subjec )

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Feb 2005 10:55
CF: That's really nice - great foundation for others to build a game out of, and I'm sure if you stick it in the codebase it will get tons of use.

Kimo: I had a look, and it seems to work fine - and all the if/endifs seem to be in place. Check you copied the whole of the code before pasting it into your editor.


Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 20th Feb 2005 10:57
1450 is my high score

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 11:01
@Codding Fodder - Nice!!!
@Ric - nope i did WHOLE code and it not work try copying what you posted into editor and see if it works (maybe you missed something) i dont know (Page 2 BTW )

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Feb 2005 11:09
That's what I did, and no problems. Can you tell me exactly where it gets to, and which line number the error message refers to?


KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 11:11
ok....
It is on line 297 and...
If I take out the endif than i can play the game but the ball goes straight down and goes right through the wall (strange lol)

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 20th Feb 2005 11:16
NathF's posted has the deadline edited to sunday at midnight. Which is it? If it is tomorrow I need to do much more lest I be shellacked by ric...

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 11:17
hmmmm... yes i saw that GET TO WORK CODDING FODDER (lol jk)

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Feb 2005 11:57 Edited at: 20th Feb 2005 12:03
Kimo: It's a mystery. Have one last go with this code:



You using the standard DBP editor, by the way?

@ CF:
Quote: "NathF's posted has the deadline edited to sunday at midnight"


Well spotted. I might add some more stuff to my game tomorrow, then.


KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Feb 2005 12:02
yes i am using the standard dbpro and now it says there is an error on 296 (although it highlights in red line 297)

I must say I am quite a »»ç¶´¬¬Géñíú§¬¬´¶««
NathanF
20
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 20th Feb 2005 14:18
Quote: " NathF's posted has the deadline edited to sunday at midnight."

That's right. I though the deadline was a little short to make a nice game in, so I added a day. By my time (Here in Aus), it is currently 5.17pm sunday. I'll rate them tommorow at school, or after it.


"Blame yourself, or God." - Delita
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Feb 2005 14:32 Edited at: 21st Feb 2005 10:09
Adventure Bot Updated:

Updates:
1) Added specials (power-ups)
2) New attributes: Range, Damage, Armor, Speed
3) Adjusted player diagonal movement (thanks Mort)
Edit:
4) Adjust Enemy Fire Rate
Edit2:
5) Adjusted play difficulty and special arrival
6) Adjusted game balance
7) Added a menu. Select Player Bot Color
8) Added Accuracy rating. Arrival of specials is based on Accuracy and Level.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 20th Feb 2005 14:46
That's a tight game!

www.war3forums.net
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Feb 2005 00:24 Edited at: 21st Feb 2005 06:17
Here's an update to my entry - given the extra day, I thought I'd have a play with some sound generation:

<edit> and I added some vapour-like effects for level 3 upwards. That's it, now .... finito.



By the way, I've managed to get to level 5.


Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 21st Feb 2005 00:44
I like those entries. This comp is tight. Of course mine is still my personal favorite.

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 21st Feb 2005 04:37
These compos have brought out some really good code. My personal favourite is Ric's.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.tk
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Feb 2005 11:17
nice graphics ric, although the reflections confused me at first

"eureka" - Archimedes
Chris64
20
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 22nd Feb 2005 08:50
So...who won? What's the new Comp? Don't drop the ball on this thread...this has been keeping me pretty entertained. I do wish more people would submit programs though.
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Feb 2005 09:36
Same here. Maybe the challenges need to be smaller, like the first one.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 22nd Feb 2005 10:12
And the winner is ............


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Feb 2005 10:25
Who'd the judge this time?

"eureka" - Archimedes
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Feb 2005 10:39
Wow ric thats really cool


"Lets migrate like bricks" - Me

Login to post a reply

Server time is: 2024-11-21 18:00:29
Your offset time is: 2024-11-21 18:00:29