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.

Newcomers DBPro Corner / Help with basic 2D line runner project "Drunk Viking Run"

Author
Message
Drunk Viking Run
12
Years of Service
User Offline
Joined: 25th Oct 2012
Location:
Posted: 25th Oct 2012 17:13
Hi
We are three students that have planned to make a 2d line runner game in darkbasic for a school project, and after many hours on google we could still not find any information which we could have use of.

Or goal is to create a line runner game, with a Viking that is constantly running faster and faster in one direction, and the goal is to survive as long as possible (Avoiding obstacles) and collecting mead (A Viking can’t be sober, right?).

We have basic knowledge in c++ but none in DBp. Where do we start? What should we search for? Is there any guide out there that we haven’t found that is about basic 2D games?

Even though it’s going to be a “basic game” it’s still a serious school project. We have 5 months from now on to complete it. But we are standing still at the moment, so all help would be appreciated.
No fancy graphics or anything like that is needed; we just want to get a working game with jump/roll functions.

Cheers // Drunk Viking Team
darkvee
19
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 26th Oct 2012 06:14 Edited at: 26th Oct 2012 06:15
Hi Drunk Viking Run,

I put together a small demo showing how the viking speeds up and has meads that go past you. I added a lot of comments so you see how it works. Press the right arrow key to move the viking. The viking is green and the meads are yellow. I hope this helps you out.

Here is the code:



darkvee
Drunk Viking Run
12
Years of Service
User Offline
Joined: 25th Oct 2012
Location:
Posted: 8th Nov 2012 16:32
Hi, darkvee!

Thanks for your quick answer. We have modified the code slightly so the meads move on a constant Y axsis. By doing so the meads and the viking is lined up on the same Y coordinate.

Now, we would like to change the way the viking accelerates in speed, based on distance traveled. For instance when you have traveled 20 meters we want him to accelerate in speed automatically as if we pressed the "rightkey" once.

After this step we would also like to make it possible for the viking to jump and roll to avoid obstacles.

Here is a game similar to the one we are trying to develop:
http://www.youtube.com/watch?v=0Yo8dWGdQVA

Thank you in advance for taking your time to answer and help us with our little problems

Login to post a reply

Server time is: 2024-11-23 17:54:40
Your offset time is: 2024-11-23 17:54:40