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
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Jan 2006 16:44
Yay I won... I think I'll participate more often from now...

I guess I'll start thinking about the next challenge...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 26th Jan 2006 17:59 Edited at: 26th Jan 2006 17:59
Best use of the ODE commands to make stuff do cool things

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jan 2006 18:55
I was thinking maybe a cool 2D texture maker/image editor?

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 26th Jan 2006 19:41
1) Maybe a program to solve SuDoKu puzzles

or...

2) I like the ODE idea alot, I would love to learn to use ODE!

This one might be a lot of fun!
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Jan 2006 20:23
Okay, you guys get to vote:

- Texture maker
Memblocks, layers, effects, filters, ... Could be something cool!

- ODE bounce ball
You are a ball, and you have to cross obstacles.

- Sudoku
Maybe a sudoku generator? Or at least the game.

Cheers!

Sven B

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 26th Jan 2006 21:02
Quote: "I love the running around, and I noticed yours is the only 3rd person game around, great work"

And he won? I thought the challenge was an FPS, that is FIRST person shooter!


Deadly Night Assassins
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Jan 2006 21:10
We had already decided that it could be FIRST or THIRD person shooter.

I vote ODE ball bounce (I'm fickle, I know I suggested the texture maker.. )

WarGoat
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 26th Jan 2006 23:45
I vote Sudoku, but why a puzzle game competition. Like, tetris, or another, just an idea like that.


Windows XP,pentium IV, 3.0 MGZ, 1024 mb memory, 256 mb video card ATI Radeon XPRESS 200 'sett squadron back on the assault'
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 27th Jan 2006 00:18
well... i've already written a sudoku solver in C++... but i could always abstain from entering (it's not like i usually enter anyway )

"We make the worst games in the universe..."
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Jan 2006 00:33
Argh - sudokus do my head in! I do feel I should at least have a look at the new physics commands, although I much prefer coding my own physics. Or how about a challenge that makes use of the createsound function? Like to make a Tracker program - like in the good ol' days! Anywhichway, we'll need a decision on the new challenge pretty soon - some people get withdrawal symptoms with no challenge on the go ...... (not me, of course - I have a life, honest.)

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 27th Jan 2006 00:39
I vote ODE! ofcourse I would

qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 27th Jan 2006 05:05
i vote sudoku! i know i havent done any compos but ive been reading this thread occasionally and im entering this one if its sudoku

If you want anything DB related hosted, log in (with ws ftp or something) www.lysergium.net with username public@lysergium.net and password public. you'll be directed to lysergium.net/public
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 27th Jan 2006 06:24
@Peter - you can enter anyway, there will be many people that write solving programs.

I suspect we would be writing programs that will solve puzzles, as well as make Sudoku puzzles from scratch to play on its own.

So I vote Sudoku this time.
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 27th Jan 2006 07:01
Sudoku? Isn't that the bloody sliding number thingy? C'mon, that's not entertainment, that's more like something a newbie would need to practice programming skills on, just like pong

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Jan 2006 08:04
Soduku is the one with a grid of numbers you have to fill in.

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 27th Jan 2006 08:57 Edited at: 27th Jan 2006 08:57
Quote: "And he won? I thought the challenge was an FPS, that is FIRST person shooter!"


Page 64, sec post

Actually, I have to agree (partly) with Image All. I already tried once to create a Sudoku game, and in 30 minutes, I already created a decent grid, locking numbers that you get and disable incorrect moves(move not allowed if the number already exist in the row, column, or its 3x3 grid). BUT! I do like them, and I think they're pretty entertaining.
Besides, if someone found a decent engine to create Sudoku puzzles, there won't be much other code solutions left.
So maybe it's a little too easy compared to the previous challenges...

So I think I'll go for the ODE bounce, which has alot of possibilities. Like tiled worlds, enemies, bonusses, and maybe a storyline(which would be alot of work though)...

Everyone ok with this?

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 27th Jan 2006 09:43 Edited at: 27th Jan 2006 09:44
I'm OK with an ODE challenge.

I haven't used it yet, but do want to learn to use it in my games.

I guess using ODE needs to be a KEY component in our game, not just used once just to qualify for this compo. There should be some interesting entries!

This will need to be a longer challenge I suspect, there may be some painful learning invoved.........Let the pain begin!

Now, If only a great idea would pop into my head.......nothing yet....hmmm, we will see.

Also, if anyone has some usefull pointers for using ODE better, and things to be careful with or avoid, or to watch out for...PLEASE share them with the rest of us....THANKS!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Jan 2006 09:57
One possible idea could be those arcade machines where you slot in a coin and it bounces down the pins and lands on the platter and gets swept to a second level which gets swept again and you sometimes end up with 3x2p coins OR (for the rich kids) 10p coins!

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 27th Jan 2006 11:18
Or else, I make it an ODE challenge Impress me with your ODE skills...

But the contest would maybe be a little too subjectif then...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 27th Jan 2006 11:48
I've looked at the ODE tutorial in the newsletter, and that was a great start!

But is there anywhere else that describes all the other ODE commands and how to use them?

I found a list of the commands in the "ode physics.ini" file, a help file would really be...a...helpfull!
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 27th Jan 2006 13:52 Edited at: 28th Jan 2006 15:47
BillR, try searching the forums a bit. Maybe you'll find some things...

Ok everyone, I have decided:

ODE Bounce Ball

GamePlay
Create a game, where a ball plays a big role in the game. The style doesn't matter. It can be a big bouncing shooting ball, just a ball crossing levels, or maybe a puzzle game with a ball. You choose.

rules
ODE HAS to be used, which is a good opportunity to learn and understand the ODE commands.

Deadline
The deadline is in 2 weeks [edit]Strict! (10 feb 2006)

Let the coding begin!

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Jan 2006 15:40
Ok - good decision. Lets keep it to a strict 2 weeks, though - we can't have things dragging on past the deadline.

I'd quite like to see if I can get a tenpin bowling sim working - or a pool table. If you look back through the challenges, there is already some nice code for creating the balls and table - all that needs doing is adding in the ode physics.

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 27th Jan 2006 16:08
How do I use data statements to make a mesh? o.0

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Jan 2006 16:46
you want a 3D Mesh created by something like a memblock? Its quite long winded - but once you get your head around it, its not too bad. The knack is to not think so much in polygons, but more in vertices. Break your imaginary mesh into polies (maybe squares). Each sqaure gets made of 2 triangles. Each triangle is 3 vertices. Each vertice has a number of values, such as x,y,z coords, x,y,z normal (which way its facing, basically... Eg, a table top has a normal of 0,1,0 as its facing upwards) and finally u & v coord.

I used a memblock to create a mesh for my maze. ITs not quite what you want - but its not bad... Alternatively, I have a terrain generating program on my website which uses memblock -> mesh -> object...

http://www.thingy-ma-jig.co.uk/new/index.php?page=project&id=6



Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 27th Jan 2006 18:00
OH SH*T!!!
Sorry RiiDii and Segan for not mentioning you, I just haven't seen yours in ages and I guess I forgot...

Here are you reviews:

Riidii:

It's good, though I find it hard to play, and takes a while to load on my machine. Otherwise it's a very well coded game

Segan:

It feels like doom, which is cool. Next time try it in 2d , heheheh, good work

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 27th Jan 2006 19:07
i like the ball idea, but does it have to be ode?

New site!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Jan 2006 19:46
Quote: "ODE HAS to be used"


hehe...

I think the priority is ODE over ball, not ball over ODE...

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 27th Jan 2006 19:51
ODE is a physics engine, and physics are fun to look at

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 27th Jan 2006 20:36
i can do ball phys if im given the engine does it do collision too?

New site!
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 28th Jan 2006 07:03
sounds cool. to bad im a nube and dont even know how to do phisics =(

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 28th Jan 2006 07:37
Quote: "though I find it hard to play"

It can be very difficult until you figure out the "trick", then it's a cake-walk I'm afraid.


Open MMORPG: It's your game!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Jan 2006 23:03
Quote: "and dont even know how to do phisics"


Thats the point of ODE - does the physics for you. Just look for some commands to enabled ODE (make sure you're running 5.9) and it should all work!

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Jan 2006 03:01 Edited at: 29th Jan 2006 03:02
So is that the challenge then? ODE


OOO, i know! How about instead of using ODE, lets see who can make their own physics package!


Deadly Night Assassins
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 29th Jan 2006 05:00 Edited at: 29th Jan 2006 05:01
Quote: "How about instead of using ODE, lets see who can make their own physics package!"


=.=

^ I tried posting with just that emote and the thing tells me "TURN YOUR CAPS LOCK OFF"

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 29th Jan 2006 17:04
Just incase anyone fancied joining me in trying to use the ode physics to perform billiard ball collisions, here is the starting point I'll be using - its a set of racked pool balls and table coded by Coding Fodder, which I tweaked with nice lighting and shadows, from a challenge long ago. Pool balls are objects 1-15, cue ball is object 16, and shadows are the same numbers plus 30. Just add physics!





Alexb Orsova
18
Years of Service
User Offline
Joined: 6th Dec 2005
Location:
Posted: 29th Jan 2006 19:13
@Ric
wow, that's some amazing pool code, I've been trying to make a pool game in DBPro for a while now.
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 29th Jan 2006 21:20
@Ric wow coooooooooool i usally get distracted by compos tho

Fps world of mayhem 10%
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 29th Jan 2006 23:59
@Ric:
I think there's a problem with spheres in ode, because they tend to slide, not roll.

formerly xMik
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Jan 2006 00:04 Edited at: 30th Jan 2006 00:17
Hehe - yeah, so I just discovered! I'm sure there's a way to do it, as I can see there are a number of angular momentum commands, just not sure that it will do it automatically.

Anyhoo, heres what I've managed so far - I'm pretty impressed how quick it is to get the physics up and running once you know the commands. It kind of works, although the balls do seem to stick to the cushions a bit, and as I said they don't rotate even though I added friction to the balls and the table.



Use arrow keys to aim and space to shoot.

If anyone has any info on the commands, please share - all I've found so far is a list of commands and their syntax, and Batvinks tutorial - they've got me this far, but I think I'm going to need more info soon!

<edit> Just posted a general request on the dbp board for anyone with ode expertise to come and take a look at this challenge. I'd really like to know how to get my pool balls rotating!

Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 30th Jan 2006 02:46 Edited at: 30th Jan 2006 02:48
holy mikrikey! thats awesome one thing. if you accelerate it all the way and shoot full speed at an edge the screen goes black

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 30th Jan 2006 04:10
I think i'm gonna sit this one out..being a newbie and all.
Maybe i'll look at the physics and try to figure them out

(PS For the next challege i vote for a board game!)

[bold]Bmaczero[/bold]
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Jan 2006 11:18
Well, you probably whacked the ball off the table!

Nobody else partaking in this challenge, then?

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 30th Jan 2006 11:24
I really want to - its just a matter of finding a little time :-(

I MIGHT have time tonight as I SHOULD be leaving work early today...

Tachyon
19
Years of Service
User Offline
Joined: 15th Sep 2005
Location: four-momentum imaginary proper time
Posted: 30th Jan 2006 13:47
I made ODE bowling game some time ago, there is ODE and ball plays big role:
http://forum.thegamecreators.com/?m=forum_view&t=69198&b=5
But you guys dont accept media, right, so that wont be qualified entry?
Whole source code is there...
Here is the main loop code, just in case someone could get some use from it:


Incase no-one is interested in looking my whole code, you can get ball rotating by putting (this is example):

The thing that matters is:
ode setsurface mode contact approx1

I think...

(2b)||C!(2b) (It's C++) vs. TO B OR NOT 2B (It's DarkBasic!)
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Jan 2006 17:34
Hmm - useful to know. I added that line, and the balls do rotate now, but when a force is applied to the cue ball it rotates the wrong way - as if you play the shot with massive backspin! Will have a bit more of a play with it when I get home.

Tachyon
19
Years of Service
User Offline
Joined: 15th Sep 2005
Location: four-momentum imaginary proper time
Posted: 30th Jan 2006 18:24
I think I might have something to do with

I used to have that problem, but it was gone when I used ODE ADD FORCE RELATIVE and used 0,0,0 cordinates as first (or last, cant remember) parametres.
Im in linux right now, and I cant boot becouse Im downloading kubuntu DVD, so I cant go to windows to check it out.

(2b)||C!(2b) (It's C++) vs. TO B OR NOT 2B (It's DarkBasic!)
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 30th Jan 2006 18:47 Edited at: 30th Jan 2006 19:02
That must be an extra command someone else has written since 5.9 - it's not recognised on my system.

<edit>

Ah - I changed 'add force' for 'set linear velocity', and I seem to have something that works - including rotation. Still needs a lot of tweaking to get the feel of it right, but I'm impressed with the way it all works so far.



Tachyon
19
Years of Service
User Offline
Joined: 15th Sep 2005
Location: four-momentum imaginary proper time
Posted: 30th Jan 2006 19:47
great you got it working, ianM published a post with newest ode dll in playing with ode thread, now there is a new thread about it:
http://forum.thegamecreators.com/?m=forum_view&t=70582&b=18
That *should* recognize the command

(2b)||C!(2b) (It's C++) vs. TO B OR NOT 2B (It's DarkBasic!)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 30th Jan 2006 20:16
My concern is this now means that people have to download the DLL which is a form of media. The line becomes ever more blurred

Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 30th Jan 2006 20:29
are the dbp default fx files aloud?

Fps world of mayhem 10%

Login to post a reply

Server time is: 2024-11-24 10:58:28
Your offset time is: 2024-11-24 10:58:28