SRL Archive - News and General

JADQuest! (A Java GAME i made)


JAD

2008-02-19 20:35:52

Hey all. As some of you may have figured out by looking at the java help section, I've started to learn java, and I'm a total noob :p I just started learning about a month and a half ago, and I started learning about applets and thought "what better way to improve my java skills than make a game?". So I decided I'd start to make a game and it's kind of playable now so I thought I'd show everybody.

WARNING: you will probably think that this is the gayest game you've ever seen (:p). But I'm proud it and I'm aware it sucks lol. just thought I'd show you all it so that maybe (?) some java people would have some advice on what I could do better.

Well, here's the link. Check it out and post comments :)

http://www.freewebs.com/jadquest


Thanks,

~JAD

P.S. When you kill a monster it says you gained experience. Ignore that for now because experience isn't being used for anything yet.

Cazax

2008-02-19 20:42:48

i like the graphics :rolleyes:

malotthouse

2008-02-19 20:43:09

rofl i pwnzr this game. its a decent start in java, its very simple but hey, you can learn alot from simple programming :)


edit: caz… why do i always run into you? like everywhere i post, you post. its like our minds are fused :P

JAD

2008-02-19 20:44:53

From: cazax
i like the graphics :rolleyes:


Dude… I used some like 500000$ 3d graphics painting program to make those graphics. Don't be dissing.

Lol I actually used paint if you couldn't tell :p I don't have an artistic bone in my body and I have no clue how people make those crazy sigs with photoshop when I have all the buttons memorized on photoshop and still couldn't make anything with it :p

lakerzz8

2008-02-19 20:55:31

It is a good start and I can see how it can be developed to a mini-RPG game in the future. Sometimes the fights can take a while so make you can add a skip option which just summarizes the damage you dealt, the damage you took, and the exp/gold you gained. Obviously it is a work in progress but a great start. I look forward to playing more revisions in the future. Maybe even runescape 3, haha.

JAD

2008-02-19 20:57:52

From: lakerzz8
It is a good start and I can see how it can be developed to a mini-RPG game in the future. Sometimes the fights can take a while so make you can add a skip option which just summarizes the damage you dealt, the damage you took, and the exp/gold you gained. Obviously it is a work in progress but a great start. I look forward to playing more revisions in the future. Maybe even runescape 3, haha.


Yeah, I was definitely planning on shortening that or something because it can get quite a bit boring :p

osmm

2008-02-19 21:52:37

Its a prety good start, I hope on acomplishing something like that starting in Spring Brake. Right now my goal is to finish Pascal. I think alone adding more items to the merchant would make this game a lot better.

Really, nice job.

[-jesus-]

2008-02-19 22:01:46

Interesting….

Harry

2008-02-19 23:42:13

Nice dude! Very good for a first game.

Can this run offline? I would use it a lot if it could :)

coole8

2008-02-20 00:14:03

Rofl… this graphics OWNS!!!!

Thanks for the most helpful post ever created =D

BobboHobbo

2008-02-20 00:24:39

I died from the circle dude :( how sad :( i had 10 gold to :(

BTW, goodstart do u use java to animate? or something else?

Da 0wner

2008-02-20 04:21:35

Hehe i was beta tester with this. Look at his thread in Java Help. Lol but i died on 1st fight. :( But then i won 2-4. Then i died again. :( :(. But still good game. I'm gonna try to make something like this. But it will be noob. :p I'm only 12 though. :). Thanks,

~Kyle~

Markus

2008-02-20 05:15:31

Use double buffering next time please (that you first draw on a seperate canvas, and then that canvas on the applet canvas to remove flickering).

Negaal

2008-02-20 06:14:53

Funny, I don't complain about graphics but moving and other animated things are blinking, and move in like 5 frames per second.

Gj though…:p

nippy

2008-02-20 06:28:15

well java is quiet hard to learn, and for a first i think you did pretty well. Nicely done :D

Scaper

2008-02-20 06:30:50

wow nice man to say you have jus recently been learning keep it up ;)

JAD

2008-02-20 10:51:28

From: Hy71194
Nice dude! Very good for a first game.

Can this run offline? I would use it a lot if it could :)


Yes, you can :) I was having trouble putting it online… I used BlueJ Applet viewer to run it offline.

@BobboHobbo to animate all I did was uploaded an image I made in paint and I just minus and add to the x coordinate position for it. Is there any other way to animate in java? Like using flash or something?

@Markus, I was having trouble with double buffering and I posted asking for help with it in the java help section. But I tried it already, I just couldn't get it to work.


BTW, it should be very rare that you die when you started with 10/10 health. Make sure you use your gold to buy health at the merchant :p

Dumpin

2008-02-20 11:47:40

sweet lol nice.

P1nky

2008-02-20 11:48:36

lol nice! but wish we could do the fighting part (like move by arrows and attack?)

Wade007

2008-02-20 11:49:16

Cool game, It flickers though… I think this could be a very good game in the future!

Rikje

2008-02-20 14:43:29

It looks funny! :)
Nice graphic and stuff :p

Skeletor

2008-02-21 05:57:43

Cant run this… all I get is a X in red when I try to run it.. it might be cuz the school computers dont have newest adobe..

Swift

2008-02-21 18:12:20

It's not adobe, it's java. You don't have java installed on the school computers…

Mountain Lions Own?

2008-02-22 13:39:02

it reminds me a lot of games i used to play on my calculator in math class

IEatJ00erBaybees

2008-02-22 23:30:12

ROFL JAD!

I r totaly biying membrz 4 dis 1337 game! H0w many gp/USD per month?

Da 0wner

2008-02-22 23:33:23

Na on my school computers I have java installed so i can use this. :p. Anyway, I own at this game! I had lke 80 gold. But i didn't buy ant more health =/. Thanks,

~Kyle~

Davis_223

2008-02-23 01:16:07

This is the best game ever WAAY better then Rs im pwning that green blob!

lakerzz8

2008-02-23 01:20:28

How soon can this become multiplayer? I can't wait to kill green circles with my friends?!? But really, let me know when you update the game.

JAD

2008-02-23 12:44:26

From: lakerzz8
How soon can this become multiplayer? I can't wait to kill green circles with my friends?!? But really, let me know when you update the game.


I'm working on it (slowly) now :)

Thanks everyone!

Torrent of Flame

2008-02-23 12:45:58

Oh man after I stopped laughing at the Graphics it was actually addictive 0_o

How come the big green thing hits two but I cant :[

JAD

2008-02-23 12:52:37

From: Torrent of Flame
Oh man after I stopped laughing at the Graphics it was actually addictive 0_o

How come the big green thing hits two but I cant :[


Because you only have a dagger and he's bigger :)

Just wait until the super spear and stuff comes out :p

Torrent of Flame

2008-02-23 13:09:02

XD I cant wait!!

Dis iz like teh l33t JAD ima get this game wen itzz avalible in teh st0r3zz

exppo

2008-02-23 13:14:21

Good luck.

cmd19872002

2008-02-23 13:49:53

not a bad start, im guessing you didn't know much about programming before that applet, so thats really good for your first program.

I have been programming in GW-Basic and vb6 mostly for around 10 years (on and off in spare time) and started my first flash mx project around a monthago

link here (note if its not found, my server isn't running)

http://66.227.194.84:7235/

any way good luck with your java, im sure you enjoy java more than me :D

Dynamite

2008-02-23 14:00:33

i think you should make it so that when you have fought it say 5 times you can hit 2's then 10 you hit 3's and so on

T ~ M

q3ick

2008-02-23 14:11:28

It's a start :P I personally love the monsters!

Pure1993

2008-02-23 14:58:06

Jad Jad Jad, there isn't a single anti-bot thing in there… tzzzz…
Lol, I am just joking, you are doing great, I have no clue of Java, but I thought to myself: what is a good Java program without the corresponding Scar script to beat it? So, I just put one together ;):

program JadQuestBot;
{.include srl/srl.scar}
var
x,y,Died,Won,did: Integer;
attack, merchant, BuyHealth, over, back, WinBMP, full, lost, outofcashbmp: Integer;
JMSX1,JMSY1,JMSX2,JMSY2: Integer;
const
HowOftenDoYouWantToRunThis = 3;

procedure JADGlobals;
begin
JMSX1:=0;
JMSY1:=0;
JMSX2:=799;
JMSY2:=549;
end;

procedure LoadJadBitmaps;
begin
attack := BitmapFromString(17, 23, 'beNr7/588wMCAgsjQNaoFa0iimYb' +
'HFlxW49dCkl/w+A6PFlK9T3yIERPgmOFJUBcuW0jyPhlaCOoiJsGQ' +
'FJXEJz+SApDKAADmXYWl');
merchant := BitmapFromString(26, 23, 'beNr7/5+egIEBO0JWQKo5+K0g3ig' +
'y7CLVKOKVkeEFIsOciqYRH+lUcRhJSWvUNCqahivbEsyAVLea8iwz' +
'mJURqZLU2Mevnry0RHx6GOwAAETn1HI=');
BuyHealth := BitmapFromString(100, 101, 'beNrt3UEKwCAMAMH+/' +
'9O24EmxkINixFnyABkEvaUUSTqxR6P+rFyYoEkKq+8MdVgFodJwsW' +
'LFihUrVqxYsWLFihUrVqxYsWLFihUrVqxYsWLFihUrVqxYsWLFihU' +
'rVqxYsWLFihUrVmdYdWe+beJWl0O1XKxYbbDC5R30Z2DFihUrVqxY' +
'sWLFihUrVqxYsWLFihUrVqxYsWLFihUrVqxYsWLFihUrVqxYsWLFi' +
'hUrVqyWcuXI3qUpVgru85KkvL3emwjY');
back := BitmapFromString(21, 25, 'beNr7/3/IAwYGEhCR5uAxn1T' +
'txMhSrmAYayfbcDIijorJhkgHEO93ygMHvwtHtVMl5PEnHqqUVPQH' +
'AMeCqJA=');
WinBMP := BitmapFromString(42, 35, 'beNrtl0sKwCAMRL3/pZVuXF' +
'RJ40SJlDdkOeaJP8Za0c0q5alVf68g199kNGtzeM3fM3xqljss0Q2' +
'ns0k3pNDllbedwiGEfj/90xm8vNChQ4eu0Xnnf0PPzTbp9C2Z1k62' +
'R/O8EaflXYj8ZRDarwaA8M7o');
lost := BitmapFromString(32, 50, 'beNrtl0kSABAMBPP/T3N1U' +
'rGEEd33aUlRQikA8BBmgWbkV+RB/jNyNb8zOOdvU53sluKz+j0FrG' +
'zcon+0R/z4j51P7p8tftn5ojPfc7QQ/X5jCZ3/C3xHBYKTObY=');
Full := BitmapFromString(56, 29, 'beNrtlkEKwCAMBP3/p+3Bi1Cz' +
'aoxF6gw9aVwGS5PmDAAAkaSktsoze3wxs1lvHam3RE14phVoXUi9L' +
'srCM6degcMzKnPc873erBQy7kw8D/fUXzSev/R0jJsdnt1e5xuL3/' +
'f5czzFLO7+luyb7/oGRtrmYiYA3MkDQqn55w==');
OutOfCashBMP := BitmapFromString(92, 29, 'beNrtl0sOgCAMBbn/pev' +
'OhQT6AUs1M2FFAOmjPIsIAABUonXt7g+ssDLG/qEENdY3b5myGFHs' +
'vHZpXlCTx8Q3ssWY6mjSj7F7gqV/flVdu91uLAHH6O1X3eRoSnFNw' +
'qkrZk3slv4tTSyxqIm0EgiaVPOTNm0/1kRdMxAgmiRrklOfeOvYs/' +
'+dNE3EU4DtrU9ityDhvTP3VZc5q/G28eG6LlTCuxgAAAAATnABq27' +
'B1g==');
over := BitmapFromString(32, 33, 'beNrtllEOADAEQ93/0nYD2mLx' +
'QfY5T1pJN/erDWUGHaq3cjPuZYVQJgheTfPxLnndjXBBAsunRgjwD' +
'3xwhAxHFl2EpxLq/EBCCzyNvtF0HU3v6Qfi+Mc//uZ8AD917V4tqg' +
'eluowB');

end;

function OutOfCash: Boolean;
begin
if FindBitmap(OutOfCashBMP,x,y) Then
Result := True;
end;

function FullHealth: Boolean;
begin
if FindBitmap(Full,x,y) Then Result := True else
Result := false;
end;

function FightOver: Boolean;
begin
if FindBitmap(over,x,y) Then Result := True else
Result := false;
end;

procedure PrepareForNextFight;
begin
if not FullHealth then
if FindBitmap(merchant,x,y) then
begin
Mouse(x,y,0,0,true);
Wait(1000);
if FindBitmap(BuyHealth,x,y) then
begin
repeat
Mouse(x+20,y+20,0,0,true);
Wait(1000);
until FullHealth or OutOfCash;
if FindBitmap(back,x,y) then
Mouse(x,y,0,0,true);
end;
end;
end;

procedure NextFight;
begin
if Findbitmap(attack,x,y) Then
begin
Mouse(x,y,0,0,true);
Wait(1000);
if FindColor(x,y,26112,JMSX1,JMSY1,JMSX2,JMSY2) Then
begin
Mouse(x+10,y+20,0,0,true);
repeat
wait(3000);
until FightOver;
Did := did + 1;
end;
end;
end;

procedure ClaimFameOrLose;
begin
If FindBitmap(winbmp,x,y) then
begin
Writeln('Hooray, we won, we gained exp and gold :)');
Won := won + 1;
end else
begin
Writeln('Oh damn it, we died and lost all our gold :(');
Died := Died + 1;
end;
repeat
wait(100);
until FindColor(x,y,65535,JMSX1,JMSY1,JMSX2,JMSY2)
Mouse(x,y,0,0,true);
end;

procedure proggy;
begin
Writeln('==============================================');
Writeln('This bot was brought to you by Stur Pure');
Writeln('The game was created by JAD');
Writeln('I hope you enjoyed both these programs ;)');
Writeln('==============================================');
Writeln('You have died ' +IntToStr(died)+ ' times');
Writeln('You have won ' +IntToStr(won)+ ' times');
Writeln('This means that you won '+IntToStr((won / (won + died) * 100))+ '% of all the battles');
Writeln('==============================================');
end;

begin
MouseSpeed := 12;
wait(2000);
JadGlobals;
LoadJadBitmaps;
repeat
PrepareForNextFight;
NextFight;
ClaimFameOrLose;
Until (Did = HowOftenDoYouWantToRunThis)
proggy;
end.
enjoy. :D
EDIT: My Best proggy so far:
==============================================
This bot was brought to you by Stur Pure
The game was created by JAD
I hope you enjoyed both these programs ;)
==============================================
You have died 0 times
You have won 4 times
This means that you won 100% of all the battles
==============================================
Successfully executed
EDIT :
well, while I was eating, I ran it again, here is my new proggy:

Successfully compiled
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
Hooray, we won, we gained exp and gold :)
==============================================
This bot was brought to you by Stur Pure
The game was created by JAD
I hope you enjoyed both these programs ;)
==============================================
You have died 0 times
You have won 21 times
This means that you won 100% of all the battles
==============================================
Successfully executed
By the way, I just realized that I didn't say anything about where to start it: just have the window open on which your person is standing there, with the merchant and attack options, make the scar window so small that you can see the hp points, and the merchant and attack options. then just drag the crosshair onto the screen, and press play. Also, choose how often you want to repeat it on line 8.

rockman

2008-02-23 23:07:38

Lol pretty sweet, better graphics than rs

Reminds me of how you attack in rs (Hit the monster and back up!).

HempLord

2008-02-23 23:50:49

i try to play it and i get a red x in the top corner
i know its simple but plz help lol

tweigs

2008-02-23 23:54:18

Well i dont know anything about Java, (Scar for that matter) however im currently trying to learn. I think you did a really good job on your first game. Im lookin forward to future updates.

deathwish123

2008-02-23 23:55:16

i like it =p
reminds me of drawing in paint >.>

tweigs

2008-02-23 23:56:56

Well i dont know anything about Java, (or Scar for that matter) however im currently trying to learn. I think you did a really good job on your first game. Im lookin forward to future updates.

HempLord

2008-02-24 00:16:43

Ok I Got It To Work..
It's Neat Haha.
Great Job On A First!

red eyes 20

2008-02-24 01:29:52

well a heck of alot better then what i could do =p
and i want updates! a better sword for 30gp at the merchant! get to it JAD!
lol any ways it's really NOT THAT GAY =D 'cide the flickering i've played way worse games. =D gj.

EDIT: also, if you want a tiny bit better graphics, i'd LOVE to help.
oh, and don't use crappy freewebs… use 110mb.com no adds, better domain and freaking 300gigs bandwidth monthly =D

rostaryms

2008-02-24 01:51:24

haha nice, i tried to learn java but failed

Digger

2008-02-24 04:12:39

haha really funny, it's not bad to start with :D

koppel

2008-02-24 15:33:13

Pretty Awesome :D Altough It could need more graphics and skills :D

JimmiCanon

2008-02-24 15:35:29

Lol good for first..

but wtf am i talking about idk how to do at all..

Neuros

2008-02-24 18:08:25

now just to script an auto'er for it :P

Lamborgini8

2008-02-24 18:38:55

And people think WoW has good graphics… This is possibly the best game EVAR!!1

►help◄

2008-02-24 18:51:03

wow very nice!!!!

░░░░░

2008-02-24 20:01:41

the graphics could be better… and more fight options… and try to get rid of the blinking… but overall good job… its better than anything i could do…

honeyhoney

2008-02-27 16:15:57

It doesn't load for me, I followed the link and is started loading the applet but failed almost instantly. :S

I'm sure it's a laugh though :P

PvH

2008-03-08 14:28:37

awsome graphics ! xD
well..
not really a cool game…
but it works ^^

ShowerThoughts

2008-03-08 15:46:58

yours is better than mine -.-

XjagexisgayX

2008-03-08 15:54:24

Wish i could do java lol

ShowerThoughts

2008-03-08 15:55:59

wanna do delphi or java google 3d buzz realy cool site with VIDEO tuts

erwinn

2008-03-12 05:59:22

i like this, but i can't understand how to play lol. stick figures are cool, you should stay with them.

Karl

2008-03-14 15:18:41

Nice graphics haha
Keep it up though and I'm sure you can make is a lot better :)

Minoizuri

2008-03-15 20:04:51

Nice game to play for a litle bit if you're bored…

DenverR

2008-03-15 20:47:43

not bad for a first try. all games start out simple

lol i like the green angry face monster
next time use something besides paint to make the figures :P

jasper20

2008-03-18 11:50:30

Haha I like this game, its pretty good actually for a first attempt. And I like the green angry face monster!

bluejelly

2008-03-20 15:15:19

hehe this games pretty basic but its catchy and fun.

keep up the good work.

redmans

2008-03-20 15:33:32

lol fun that dam tennis ball owned me like 3 times straight i seriously hit like 5 0s in a row finaly got him though. its good for a first game a little flickery but still cool i would not know how to do this in like a million years so keep it going id like to play advanced version of this if u make 1.

Richard

2008-03-25 13:59:44

I decided I want to start learning Java, see what all the fun is about :)

And as I wanted to do this do you rekon I could see the code behind it?

PS: Legend of a game :p

TheSantaMan

2008-03-26 03:58:11

lol jad.. nice dude it's a good start :D

ps:

last time i checked, a stab in the head was a 1hit k0 ;D

simo14

2008-03-26 13:31:29

The big green heads almost killed me! Cool game =)