I made a Navigation script in javascript the other day for my friend who is making a game. It's a point click system where you point in screen and you player moves. When the player moves over a town a town menu comes up but when the player moves out of town the menu closes. When you go off screen the map scrolls and so allowing you to explore a huge area.
I don't really want anyone else to get this script, apart from my frined and I, and so I was wondering if there was a simple way of placing the script inside a php script and using the
<script language="javascript" src="whatever"></script>
tags but when someone goes to the javascript page it stops them from stealing the script. How would i do this in PHP. Thanks
hiding
Moderator: General Moderators