Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Using a map in html  (Read 1938 times)
0 Members and 1 Guest are viewing this topic.
Offline Asterius

Junior Newbie

« Posted 2012-05-05 06:24:55 »


I am thinking about creating a web game, but my problem is how to make an interactive map.

I saw for example this showcase :

If I look at the HTML code, I saw the map depends on a CANVAS tag.

Can somebody indicate me how I can generate such a tag and how it works?

Thanks in advance for your responses!
Offline Regenuluz
« Reply #1 - Posted 2012-05-05 15:04:17 »

If you saw the canvas tag in the html code, then it's probable because it's html. ^^ (html5 that is (
Offline Asterius

Junior Newbie

« Reply #2 - Posted 2012-05-05 17:15:56 »

Yes, agreed. But this is also Java-Gaming showcase, not only an HTML page  Grin

The question is how to build such map/game from java code, and what guidelines / tutorial can I follow to do this?
I would like to create a web game, in Java, without using applet. And beeing able to handle, in java, events like clicks, etc. on my map / html canvas.

Any suggestion?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Regenuluz
« Reply #3 - Posted 2012-05-05 17:26:52 »

You'd have to use an applet to build a game like that in pure Java. As far as I could see, then that game is made in html/javascript, with some server side backend stuff.

But to do it in Java, you could use Java's build in Canvas and paint your object directly on that. I'm not sure how you'd go about making it fill the entire browser though, since I've only ever made 1 applet, and that was a Tetris game. Tongue
Offline cylab

JGO Kernel

Medals: 188

« Reply #4 - Posted 2012-05-05 19:29:12 »

The problem is there is still confusion out there, that javascript has nothing to do with java. They should have sticked to the original name LiveScript. See [url][/ur]

Mathias - I Know What [you] Did Last Summer!
Offline sproingie

JGO Kernel

Medals: 202

« Reply #5 - Posted 2012-05-05 23:29:34 »

It was named JavaScript after LiveConnect came around, in the hopes that apps would be built out of JavaBeans that were scripted with the newly named JavaScript.  They really did intend to have people scripting Java with it ... problem is, LiveConnect was such a crummy interface that was prone to deadlocks and crashing, that no developer was seriously interested in using it.  I tried it for a while, and found that the only java/browser bridge interface worth a damn was, ironically, the one in IE.

I'm told that LiveConnect is still around in some form and that it's more or less fixed now, but too little too late for me and most everyone else.

Pages: [1]
  ignore  |  Print  

hadezbladez (349 views)
2018-11-16 13:46:03

hadezbladez (183 views)
2018-11-16 13:41:33

hadezbladez (348 views)
2018-11-16 13:35:35

hadezbladez (84 views)
2018-11-16 13:32:03

EgonOlsen (2179 views)
2018-06-10 19:43:48

EgonOlsen (2221 views)
2018-06-10 19:43:44

EgonOlsen (1378 views)
2018-06-10 19:43:20

DesertCoockie (2011 views)
2018-05-13 18:23:11

nelsongames (1668 views)
2018-04-24 18:15:36

nelsongames (2308 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!