Skip to content

Commit

Permalink
Add legacy Frogger game
Browse files Browse the repository at this point in the history
Got it working with a minor tweak! (changed BufferStrategy from double buffering to single, since CheerpJ doesn't support double buffering in awt yet -- see leaningtech/cheerpj-meta#100)
  • Loading branch information
JeremyLeland committed Feb 3, 2021
1 parent 4d76f72 commit 995daaf
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ <h1>Games</h1>
<h1>Old Games</h1>
<ul>
<li><a href="./oldgames/pente.html">Pente</a></li>
<li><a href="./oldgames/frogger.html">Frogger</a></li>
</ul>
<h1>Old Videos</h1>
<ul>
Expand Down
Binary file added oldgames/Frogger.jar
Binary file not shown.
100 changes: 100 additions & 0 deletions oldgames/Frogger.jar.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions oldgames/frogger.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Frogger</title>
<script src="https://cjrtnc.leaningtech.com/2.1/loader.js"></script>
</head>
<body>
</body>
<script>
cheerpjInit()
cheerpjCreateDisplay(480, 540)
cheerpjRunMain("frogger.Frogger", "/app/oldgames/Frogger.jar")
</script>
</html>

0 comments on commit 995daaf

Please sign in to comment.