Game
Star Troll
10 years ago

Star Troll on PC


Star Troll now ready to rock and roll with keyboard controls working again.
It’s an issue I had with the last game we added to GameJolt too and it took a bit of searching for me to find a solution - figured I’d add it here in case I can help someone else also.

The problem comes from the keyboard controlling the browser window rather than the game window and can be fixed by even a non-programmer (like me) with a simple copy and paste of this lovely bit of code from Ventura over at the forum here.

<!— to overcome gamejolt focus issue !—>

<script type=”text/javascript” src=”https://code.jquery.com/jquery-2.1.4.min.js“></script>
<script>
$(window).on(‘load’, function(){
window.focus();
})
document.onmousedown = function() {window.focus();};
</script>

Put this at the bottom of the inside body of index.html and hopefully it works for you as it has for me!



0 comments

Loading...

Next up

"Thanks guys for endless hours of fun." 👍

(My first fan art. Read the article, please.)

#sonic #mario #photoshop

Updated the chest in the maze, adding sound, particles and better animation. But what's in the chest?

So here's the first of the zodiac signs i will make for the next weeks.

I worked so hard to get all four of them to the end safely, but then...

Very ambitious construction going on in Planet Zoo on Plays today. We're tryin'. LIVE: www.twitch.tv/dreamhackplays

A few screenshots of the places you'll cross in the Demo of Blu. You can play it today on #gamejolt !

Got some fun collectibles in our game, Path of Kami!

Annie of the stars

Sonic X pixel art.

💛 Passion project of two friends and IT geeks. 🕹️ We love trains and programming. We wanted to create something unique.

🚂 Rail Route is a management/tycoon/puzzle game based on railroad dispatching. #MadeInUnity [a few Steam demo keys in comments]