how do i add image?

General Chat, Comments
Post Reply
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

how do i add image?

Post by KaL »

ok this is what i got so far:

1) create map module

2) this is the only line i got:

echo "<center><img src='{$webBaseDir}modules/map/home.jpg'></center><br>";

3) i added .htaccess file:

<FilesMatch "\.(png|jpg|gif|js|css)$">
allow from all
</FilesMatch>



i ran it and all i see is a broken image. i tested the image by uploading it to the location module inside the game, it works! But how do i get it to work inside my map module?

And how do i get it to work when using the Enable text editor?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: how do i add image?

Post by a_bertrand »

Creator of Dot World Maker
Mad programmer and annoying composer
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: how do i add image?

Post by KaL »

Is that new on wiki? Kool! That Should Be easier. I love your engine so much, I wonder if I can use it for something instead of a game. For example: shopping cart, etc...
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: how do i add image?

Post by a_bertrand »

It was there since I added the feature (long time ago) inside the engine. And yes you could use the engine for other things than a game ;)
Creator of Dot World Maker
Mad programmer and annoying composer
Post Reply

Return to “General”