View Full Version : Hta Platform Game!
warhammerdude20
02-02-2005, 05:52 AM
Hey, its the annoying guy who posts javascript games!
I have just finished a game called DimondSword v1.0 and its javascript.
Its an hta (html application, better then sliced bread) and its a platform
game. you can download it at the link at the bottom of the page. I hope
other javascript game makers attempt things like this. I neeeeeed feedback
so PLEEEEEEEEAAAAAAAAASE comment. the thing about javascript games is
they can be quite torturingly slow so close all other applications when you
try the game. its smooth on my 600 dollar dell. the zipped folder its about
97 kb with the images and all.
you can make your own maps and you can make as much as you want without slowing down the game. just make sure it has the extention .MAP
when you try. it will tell you how to make the maps in maps.txt in the maps
folder. i made 5 maps for the game and if you want to edit them just go
"open with" then notepad or whatever you use. by the way to play the game
just click on dimondsword.hta in the game folder. no music in version 1.0
again thanks for trying the game
www.geocities.com/warhammerdude20/game.zip
EDIT: Obviosly i would rather you didnt steal the source but by all means use it! like give me credit or whatever but dont say you wrote it
markisdee
02-03-2005, 02:40 AM
lol, nortan antivirus detects it as a malicious script because it "halts the computer." You may be better off making games in a different langauge than javascript.
warhammerdude20
02-03-2005, 03:30 AM
it halts the computer??? it reads map files... it has animated gifs...
javascript is slow, but it doesnt freeze the computer completly.
oh man, all that work down the drain... I guess you all think is a virus,
well all i can give you is my word that its not, but since this
is over the internet i doubt anyone will try it.
#@%!*&#$%&@*!@&!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
markisdee, does it say how it halts the computer?
EDIT: would it help if i posted the source first?
warhammerdude20
02-03-2005, 06:30 PM
Ive got it!!!!!
Anyone who thinks its a virus heres what you do...
you download the zip file, you un-zip it, then BEFORE clicking on
the game, get a text editor like notepad and go "open" then click
the game! HAH! then youll have the source and youll see its not a virus!
markisdee
02-03-2005, 09:57 PM
No, the funny thing is, I knew it wasn't a virus because i opened it in notepad and took a look at the source before running it. And it didnt even slow down my computer really. Nortan just said it did. Appearently it has little tollerance for javascript games.
warhammerdude20
02-03-2005, 11:30 PM
so did you like the game??? did you try to make a map? was it laggy?
i need input!
thanks for verifying its not a virus
agent173
02-07-2005, 04:02 AM
cool game! definately not a virus, mcaffee, or however you spell it, identified it as "Very Safe", lol
markisdee
02-07-2005, 09:07 PM
cool game! definately not a virus, mcaffee, or however you spell it, identified it as "Very Safe", lol
When using lower resolutions, the game doesn't fit on the screen, i.e., you can't even see the little guy, just the sky.
Also, the sword is ineffective sometimes. Perhaps some kind of gun would be cool? ;)
Overall, though, great game.
warhammerdude20
02-08-2005, 04:09 AM
thx for the input,
if anyone knows how to change the resolution with activex or javascript
let me know... As for the sword, It doesnt work sometimes because i have
only figured out how to do point box collision checking, like a point entering
a box, so you only collide when your halfway in to the enemy. if anyone knows a better method, tell me that too... you dont find too many tutorials
on javascript collision checking!
spectrum
02-08-2005, 10:50 PM
spectrumspectrum
spectrum
02-08-2005, 10:51 PM
oo
:confused: that was messed... anyways, as everyone is saying, the game is pretty messed up.
warhammerdude20
02-09-2005, 12:43 AM
umm im missing something...
Did you not like the game?
chango
03-25-2005, 05:30 PM
ermm this totally doesnt work for me it takes up the whole screen and i cant close it, it doesnt even show it in the task manager.
edit: thank god for alt-f4!
anthonyryan
03-28-2005, 10:27 PM
cool game, does the sword do anything all i could do was jump (fly around).
i really like it and hope you post an update. please share any other games you did,
THANK YOU
warhammerdude20
03-28-2005, 11:53 PM
chango, you should see in the top right corner it sais "press esc to exit"
and it is supposed to take up the whole screen.
anthonyryan, Thank you for the compliment and I have made a bunch of different javascript games. my current game is a..."drumroll" javascript rts game(like starcraft). I have already bought the domain name "javascript-games.net" and ill have tutorials and forums about javascript games and stuff.
again, thanks for the compliment.
EDIT: use space to attack
jettlarue2003
03-29-2005, 03:26 AM
wonderful game:) played through all 5 levels twice. i was wondering though if i could use the javascript engine (the reading of the map files) for one of my own games....i would give full credit to you and a liknk to www.javascript-games.net. well anyways all the best and good luck on it:) :thumbsup:
warhammerdude20
03-29-2005, 06:11 AM
Yes, you can. I have written a more efficient version, but you can. Can you
disect it yourself? or i could sort it all out of the code.
thanks for the compliment.
HAS ANYONE MADE A MAP???
vkidv
03-30-2005, 02:09 AM
This truley is a nice platform game.
Good job :thumbsup:
The only thing I think that needs to be done is the sword, its rather difficult to eliminate an opponent because you have to be so close to them.
jettlarue2003
03-30-2005, 04:24 AM
thanks...i think i can figure it all out. was reading through it a few times. about the maps though it seems wordpad/notepad will not let me create map files:( but they are quite easy to make(if only no .txt extension was added)but nothin wrong with the game i probably am just too lazy to use somethin better than wordpad:) i think you should make a webpage for this...and have people create and download other maps from other people...just a thought.. all the best.
warhammerdude20
03-30-2005, 07:26 AM
Just an update:
Because of the complaints about the sword being ineffective at times, I have
re-done the collision code and its a lot easier to hit now. Same link.(theres
also one more level)
jettlarude, if you go in to the code in the loadMap() function, in the
openTextFile() method of the FileSystemObject, just change the extention
.MAP to .txt in the parameter.
I just used .MAP files because it looked cool.
Thats a cool thought, making a web page for it, but i don't see that many
people playing the game. If anyone has a cool map, post it in this thread.
vkidv
03-30-2005, 01:40 PM
Some tips:
Face the direction of your land-enemy and hold down the key towards it. Hold the space bar and you repeatedly use the sword.
You can also just stand still and hold space and wait till the opponent walks towards you.
I like this game -- Please make a map editor as I find it difficult to make maps in notepad...
warhammerdude20
03-30-2005, 06:12 PM
funny you should say that, im 90 percent done the level editor
jettlarue2003
03-31-2005, 03:11 AM
will a hta work on a website with a regular browser or does it have to use the hta tool?
vkidv
03-31-2005, 03:50 AM
will a hta work on a website with a regular browser or does it have to use the hta tool?
As far as I am aware, it only works on a Windows computer with "mshta" on it.
Click start, run and type mshta and see if you get an error message..
Try this Introduction to HTML Applications (http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp)
warhammerdude20
04-01-2005, 03:57 AM
Update:
Well, the level editor is done. Same link again. Its pretty good, but it doesnt
correct your mistakes. So ill write them here:
No more then 5 enemys
Dont forget to place the guy
Make sure the player can't get out of the level
Don't forget to place the end of the level
Thats all i can think of right now. Tell me how you liked it. The editor is called
EDITLEV and you can ignore CT.DAT because thats just for the level editor.
ps: Ive started on dimondsword v1.1 which will have levels of infinite size,
points, bosses, powerups and other stuff.
vkidv
04-02-2005, 02:36 AM
Used the level editor...
I made a map, but I can't go back and edit it heh :P
This game has potential warhammerdude - While platform games don't seem to have story lines, I think you should invent a story to go along with this. I'm not sure what the 'Dimond sword' is all about yet so :)
A menu screen with New Game/Save game/Map Editor|Maker would be nice, thats just an idea.
Waiting for 1.1...
Keep us/me updated!
warhammerdude20
04-02-2005, 05:04 AM
re-download it now vkidv, I just made a "load map" button.
I guess the reason i didnt make a story with the game is so people can make
up their own story with their levels. but ill definitaly make a storyline and a
startup menu...
thanks for thinking the game has potential
gunder
04-07-2005, 05:13 PM
I downloaded it, tryed it out and had some fun with it. Do you think you could change the resolution though? I'm running at 1024x768 and was missing a good part of the display. I'm pretty impressed though, good job! Do you have any idea when your website will be up?
-gunder
warhammerdude20
04-07-2005, 08:49 PM
gunder, about the resolution, if you search the javascript forum for
resolution changing, you'll see I have been asking how for awhile. but
for some reason, no one trusts me with that knowlage so I just have to
wait until i get lucky and find it or someone tells me. So I think I'll just
have to prompt people if they do not have the right resolution.
As for the website, It will be up in a few days. As for the content, I will
do tutorials first, then the forums. So expect the forums a lot later.
Thanks for the compliment
evilguru
04-10-2005, 06:36 PM
Very nice game, loved it:D For resolution changing you get js to detect the screen res and then change the window height to that of their screen res?
warhammerdude20
04-11-2005, 08:05 PM
Thanks evilguru,
It seems that Ill have to do the resolution problem that way, it just
bugs me that its possible but no one will tell me.
by the way, the website is up... I'm working on it every day and I put
it in the web review forum but half the people think it stinks. the
link is www.javascript-games.net
As you can see, I'm a web programmer, not a web designer. You'll be
able to send me your games within the day...
codegoboom
04-12-2005, 04:11 AM
It seems that Ill have to do the resolution problem that way, it just
bugs me that its possible but no one will tell me.
Just because it's possible doesn't mean it's feasible, or necessary. There probably isn't a scriptable Windows interface that allows for this, so you'd have to create your own ocx, dll, or exe (in some programming language, such as VB or C++) to run from the HTA, or rewrite the application with JScript.Net (if that happens to allow it).
Otherwise, you may want to read about Adjusting Scale for Higher DPI Screens (http://msdn.microsoft.com/workshop/author/dhtml/overview/highdpi.asp).
Greetings,
I can help you with your problem with changing the resolution (or an alternative). Send me an email.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.