Play Flash (SWF) Games locally with Chrome Launcher
Logout of KODI and into Lubuntu
Install Leafpad [sudo apt-get install leafpad] or some other text editor.
Make a folder called Flash-Games (spaces are not allowed in HTML, so use dashes or underscores). Make a folder inside of that called The-Game. Inside that folder add The-Game.swf and a small "thumbnail" picture of it (PNG or JPG or GIF). Then right-click an empty space in The-Game folder and choose Create New... Empty File. Name it The-Game.html
Below is a template. To use with a different SWF; change the name (Another Game), the file name (another-game.swf) and the size (650x450 or whatnot) of the SWF when played.
Copy and paste the following in the file you created called The-Game.html and Save:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>The Game</title>
</head>
<body>
<center>
<h1>The Game</h1>
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="600" height="400">
<param name="movie" value="The-Game.swf">
<param name="quality" value="high">
<embed src="The-Game.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="600" height="400">
</object>
</center>
</body>
</html>
Notes:
1. The SWF files can't have spaces in them; rename any SWF file utilizing dashes or underscores.
2. You need the width and height of the Flash Game while open/playing. Either measure with a screen ruler while open, or install Gnash [sudo apt-get install gnash], open the SWF in Gnash and then go to File > Properties. The resolution is the Real dimensions and/or Rendered dimensions (should be the same set of numbers).
3. The <param name= and <embed src= is the name of The-Game.swf repeated
View > Show Hidden (or Ctrl+H) in home and go to .kodi/userdata/addon_data/plugin.program.chrome.launcher-sites
Open one of the existing [shortcut-like].link files in Leafpad and Save As... (spaces *are* allowed for this) The Game.link
Below is a template. The only text that needs to change is the folder name (Another-Game), the html file name (another-game.html) and the thumbnail (Another-Game.png).
Change the text of this file to reflect The Game and Save.
title=The Game
url=file:///home/yourusername/Flash-Games/The-Game/The-Game.html
thumb=/home/yourusername/Flash-Games/The-Game/The-Game.png
stopPlayback=no
kiosk=yes
Notes:
1. The url line points to a local web page instead of one on the Internet, hence the file:///
2. The stopPlayback and kiosk choices are up to you
Logout of Lubuntu and into KODI
The shortcut to The Game will appear under Chrome Launcher.