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.

The 20 Line Challenge / 20 line RPG battle

Author
Message
Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 3rd Dec 2004 05:31
It's pretty bad.... and this is the first thing i ever made myself in darkbasic. None the less i'm proud of it


thats 20 lines

Please don't make fun of it, it's the first thing i made

A one that is not cold is scarcely a one at all
Robot
14
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 4th Dec 2004 01:44
I like it. I think you should add magic points or something so you can't heal indefinatly also the "you win" just flashes on the screen. I like the way you see them attack each other

The happenings of tommorow are behind us now
Lynx
14
Years of Service
User Offline
Joined: 28th Jan 2004
Location: IRC chat
Posted: 4th Dec 2004 15:00 Edited at: 4th Dec 2004 15:00
Great job!

I see a great future ahead of this one .

Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 4th Dec 2004 20:58
Quote: "-robot- I like it. I think you should add magic points or something so you can't heal indefinatly also the "you win" just flashes on the screen. I like the way you see them attack each other"

i agree i tried adding in magic, But it became really confusing, and i'm new to darkbasic so i'm not sure how to make it so you can't heal any more then 300

thanks for the comments by the way

A one that is not cold is scarcely a one at all
BaZko
14
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 6th Dec 2004 04:59
this program is great!!!
Dylnuge
15
Years of Service
User Offline
Joined: 4th Dec 2003
Location: In a dark room in front of a glowing LCD
Posted: 6th Dec 2004 05:01
Fun, but its actually 21. No other complaints.

Tranzerk Technologies Current Project: Action Bum (credit to Raffael Coronelli)
Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 6th Dec 2004 20:43
i was hoping no one would notice, i messed up when typing it in , I meant to compress the camera lines, i just forgot


thanks for the replies, But does anyone know how i could make YOU WIN or GAMEOVER stay on the screen untill someone pesses a key? and how would i make it so i can't heal any more then max hp?

A one that is not cold is scarcely a one at all
DB Maniac 164
15
Years of Service
User Offline
Joined: 3rd Nov 2003
Location:
Posted: 7th Dec 2004 00:00 Edited at: 7th Dec 2004 00:01
To keep the Game over or You win messages from flashing on then off, just add the sync statement after the text statement. This refreshes the screen until the next sync statement. But as the suspend for key and end are the last statements, it stays until you push any key. I changed the two lines for your copying and pasting pleasure. Hope this helps


Visit my site for information on Games and Consoles.
Please note that it is still under construction!
Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 7th Dec 2004 00:48
ummm, that's exactly what i have... what do you mean by the sync statement after the text? something like



or do you mean


thanks again

A one that is not cold is scarcely a one at all
RalphY
14
Years of Service
User Offline
Joined: 6th Sep 2004
Location: 404 (UK)
Posted: 7th Dec 2004 02:21
click the source button on his post
Quote: "if h1=<1 then text 100,100,"GAME OVER" ; sync ; suspend for key ; end
if h2=<1 then text 100,100,"YOU WIN" ; sync ; suspend for key ;end
"
Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 7th Dec 2004 04:36
none of those are working, Maybe case i only have DBC and not DBP
not sure.....

A one that is not cold is scarcely a one at all
Cian Rice
14
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 7th Dec 2004 06:02
It didn't work for me.

Have a heart and join my message board.
Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 7th Dec 2004 06:38
Quote: "-anime blood-
It didn't work for me."
on the very first line put a space between hide and mouse
hidemouse = hide mouse

A one that is not cold is scarcely a one at all
DB Maniac 164
15
Years of Service
User Offline
Joined: 3rd Nov 2003
Location:
Posted: 7th Dec 2004 07:11
The updated lines with the sync statement worked fine for me in dbp 5.7. Can't test with dbc though. How about changing the whole thing to something like this


This is what I did in dbc when I had problems. It puts text on the screen, refreshes everything then keeps going. Then if you press anything, inkey$() not= "" so it exits.

RPG Battle demo - Hmm gives me ideas.....

Visit my site for information on Games and Consoles.
Please note that it is still under construction!
Cian Rice
14
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 7th Dec 2004 08:14
Tried that after I posted then I got an error on line 32 because an image does not exist.

Have a heart and join my message board.
Proton blast
14
Years of Service
User Offline
Joined: 30th Nov 2004
Location: London ontario canada
Posted: 7th Dec 2004 09:14
the image is the attachment

A one that is not cold is scarcely a one at all

Attachments

Login to view attachments
Shadowed Lightning
14
Years of Service
User Offline
Joined: 10th Nov 2004
Location:
Posted: 8th Dec 2004 09:09
thats cool, mind if i mess around with it for a while?

The Uknown Element Gaming Group
http://www.freewebs.com/tuegames/home.htm
Los
13
Years of Service
User Offline
Joined: 3rd Jan 2005
Location:
Posted: 8th Jan 2005 15:55
I'd be very strict and say it was 43 lines. Excluding the texture to matrix bits (3 lines).
I still havn't figured out DB yet to get text to appear. Something I need to find out why it's being such a pest, so I couldn't see the health, and when I did hit key 1 or 2 it ended the program! sheesh.

Nice program anyway.. seems to work for some people. I have DBC.
Robot
14
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 2nd Feb 2005 03:47
i have dbc and it worked for me

The happenings of tommorow are behind us now
CHECK
14
Years of Service
User Offline
Joined: 15th Dec 2004
Location:
Posted: 16th Feb 2005 02:40
hey i liked ur game

CHECK
JARS
14
Years of Service
User Offline
Joined: 15th Jul 2004
Location:
Posted: 22nd Mar 2005 03:28
if you don't want to heal over 300, just use the very overused :

if life greater than 300, then life = 300... and u can make a condition that checks life

J.A.R.S.
Robot
14
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 23rd Mar 2005 00:14
i think you need to use two syncs one after the other to make the text stay on screen for some reason

The happenings of tommorow are behind us now
Game pro
14
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Usa
Posted: 30th Apr 2005 05:06
Dam you stole my idea but good program anyways!!! keep up good work

I have nothing to say to the likes of you.
LordoFire
14
Years of Service
User Offline
Joined: 14th Feb 2004
Location: United States
Posted: 28th May 2005 06:05
instead of using syncs, You could just turn the backdrop off. Then when the stext goes up, it stays. Just put
Quote: "backdrop off : print"game over" : suspend for key : end"

But the inkey Idea also works very well. Its what I usually use Neat game though.

When it comes to programing, I'm on fire!
Formerly known as flame master...Changed name because I do not flame
Killonyas Slayer
13
Years of Service
User Offline
Joined: 13th Apr 2005
Location: Mozerok,Eartreg
Posted: 6th Jun 2005 12:00 Edited at: 6th Jun 2005 12:01
nice, I'm adding to it. I do that to every code I see(its now about 113 lines, and not all of it works). If you would like to see it just tell me.

-"I'm over twice as strong as I was when we last met"-
-"Good, Twice the fall, double the glory"-
DrewG
13
Years of Service
User Offline
Joined: 25th Aug 2005
Location:
Posted: 26th Aug 2005 21:26
Read this i know how to stop after 300
put something like this:
if H1=300 then H1=H1+0


that should stop it.

Login to post a reply

Server time is: 2018-12-17 02:11:43
Your offset time is: 2018-12-17 02:11:43