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

Bandana Dee the Dream Friend

Protege el conocimiento, salva la historia. Guardian of Lore es un platformer 2D en el que debes luchar para mantener viva la memoria de la mitología latinoamericana. El juego llegará a Steam el 18 de mayo: https://steam.pm/app/1211740 #ScreenshotSaturday

Demonstration of the spells and their effects :)!

Regional Bulbasaur. #Pokemon

Animation test. Not an actaul conclusion to who wins sonic vs Mario. Just a test animation combo.

The Authority decided to investigate the Basement and leads to recovering classified documents Fun fact: The building has 928 doors and not 1000 doors. #horror

It's now possible to destroy some of the obstacles and gain access to new locations or create shortcuts. #gamedev #indiegame #rpg

:] me sigue sin gustar

:] I still don't like it

I hate that stupid cupcake.

(New FNAF Friday show this week) (was sick for the last few days, sorry)