PDA

View Full Version : Text based javascript game


warhammerdude20
10-23-2004, 10:33 PM
Ive seen this done once before, so I decided to take a crack at it....

the link to the game is :

www.geocities.com/warhammerdude20/textgame1.html

for all you mac users, for some reason the game is horrable on the safari browser.

The game is a platform shooter, the symbols are:

"<" and ">" : You
"O" : Enemy
"o" : Enemy thats been hit
"#" : Ammo
"T" : Teleport
"&" : bullet upgrade

controls:

left and right : move left and right
enter(or return on macs) : shoot up(there is currently no point to this)
space : shoot in the direction you are facing
up : jump
p : pause


the health works, but you cant die for testing reasons... there is only one level for now, but others would be very easy to add.

if anyone wants, Ill put all the objects and methods in to a .js and make a readme.txt tutorial thing on how to make these kinds of games. they are suprisingly simple.

any input is welcome

ps: there are not enough javascript games out there

A1ien51
10-24-2004, 07:19 AM
The jumping part was a little hard to get used to, but that was a nice game.

These are things I done in the past:
http://www10.brinkster.com/a1ien51/othello/
http://www10.brinkster.com/a1ien51/card/ (Problem with database)
http://www10.brinkster.com/a1ien51/blockgang/ (Fast processor needed!)
http://www10.brinkster.com/a1ien51/battle/readyfourbattle.htm
http://www10.brinkster.com/a1ien51/lights/

I am into puzzle games with AI.

Eric

warhammerdude20
10-24-2004, 06:52 PM
Those are some nice games Alien, I didnt think of using tables for tile games. Im going to attempt chess...

glenngv
10-28-2004, 08:03 AM
I've also created games like Tower of Hanoi (http://www.dynamicdrive.com/dynamicindex12/towerhanoi.htm), DHTML SameGame (http://www21.brinkster.com/gver/js/samegame.htm) (see my sig if my brinkster bandwidth is up). I also have created other games but have not posted online. They are Memory, Logic (Master Mind), Opposite (Othello), which were inspired by cellphone games. :)

Wheezy
11-28-2004, 10:32 AM
If you dont mind me asking,What language did you code that game in,And how did you learn it.I was just wandering because i wanna start of on game programming.Thanks :)

warhammerdude20
01-13-2005, 07:37 PM
hey, sorry for the late reply, i thought that thread was dead...

I programmed(if thats the right word for javascript) that game in javascript, and i used an html textarea for the playing area. it was pretty simple to make, but if you want to learn how to make games in javascript, it will be hard to find any tutorials aside from tic tac toe and stuff like that.

_Aerospace_Eng_
01-13-2005, 08:27 PM
the health works, but you cant die for testing reasons...
lol i believed u until umm i think i broke it, i jumped hit one of the platforms and busted through the platform and busted through the rest that were above me and flew off the screen, dunno if that is a glitch or if that is meant to happen, here is a ss of what i mean

warhammerdude20
01-14-2005, 08:06 PM
did you press pause? I have had this happen to me before too, im not sure why, but i think its because when you press pause, the game keeps accepting keyboard input so if you jump, you go up forever... if you didnt press pause, then ill have to fix it.

the jumping in the game is kind of wierd... instead of using gravity is uses a timer that counts to 5 and then makes you go back down again... i think i should change that because it lookes weird and i think its whats causing all the problems...

thanks for the bug report

_Aerospace_Eng_
01-14-2005, 09:05 PM
nope didn't press pause it just happened again...

warhammerdude20
01-19-2005, 08:52 PM
i cant get it to happen to me...

what browser did you play it on?

mcq
01-19-2005, 08:58 PM
hey, sorry for the late reply, i thought that thread was dead...

I programmed(if thats the right word for javascript) that game in javascript, and i used an html textarea for the playing area. it was pretty simple to make, but if you want to learn how to make games in javascript, it will be hard to find any tutorials aside from tic tac toe and stuff like that.
ok! thaks for the info. i build around that.

markisdee
01-29-2005, 05:02 AM
Wow, you guys are awesome at making games. Here's a bop-it clone i made (it uses sound):

http://markisdee.web1000.com/school/stuff/bopit