Skip to content

Commit

Permalink
(#73) Web page; D64 generation.
Browse files Browse the repository at this point in the history
* #19 D64 output
* web page
  • Loading branch information
maciejmalecki authored May 28, 2021
1 parent d028c49 commit d1c6e62
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- run: mkdir out
- run: ./gradlew build
- run: pwd && ls -al build/charpad/levels/level1
- run: cd src && cp rex.prg ../out
- run: cd src && cp rex.prg ../out && cp rex.d64 ../out
- persist-to-workspace:
root: .
paths:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ gradle-app.setting
*.sym
*.dbg
*.vs
*.d64
*.specOut
.asminfo.txt
.source.txt
Expand Down
5 changes: 5 additions & 0 deletions src/rex.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
.filenamespace c64lib

.file [name="./rex.prg", segments="Code, Data, Charsets, LevelData, Sprites, AuxGfx, Sfx, Music", modify="BasicUpstart", _start=$0810]
.disk [filename="./rex.d64", name="T-REX 64", id="C2021"] {
[name="----------------", type="rel"],
[name="T-REX 64", type="prg", segments="Code, Data, Charsets, LevelData, Sprites, AuxGfx, Sfx, Music", modify="BasicUpstart", _start=$0810],
[name="----------------", type="rel"]
}

// starting amount of lives
.label LIVES = 3
Expand Down
Binary file added webpage/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 136 additions & 0 deletions webpage/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
font-size: 1.5em;
}
div.bg {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-image: url("background.jpg");
background-repeat: no-repeat;
background-size: cover;
z-index: -1;
}
section {
width: 70%;
margin-left: auto;
margin-right: auto;
margin-top: 2em;
margin-bottom: 3em;
background-color: rgba(255, 255, 255, 0.8);
color: black;
padding: 1em;
border-radius: 0.5em;
}
section.header {
margin-top: 15%
}
section.header h1 {
font-size: 3em;
text-align: center;
}
.buttons {
display: flex;
flex-direction: row;
}
.buttons a {
flex-grow: 1;
text-align: center;
background-color: lightslategrey;
margin: 0.3em;
padding: 0.3em;
border-radius: 0.3em;
color: black;
text-decoration: none;
}
.buttons a:first-child {
margin-left: 0;
}
.buttons a:last-child {
margin-right: 0;
}
h2 {
font-size: 1em;
}
.gallery {
display: flex;
align-items: center;
align-content: space-between;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
}
.gallery img {
max-width: 320px;
margin: 0.7em;
}
</style>
</head>
<body>
<div class="bg"></div>
<article>
<section class="header">
<h1>T-REX 64</h1>
<h2>The jumping dino game for Commodore 64.</h2>
<p>
Help this little green monster in reaching the end of each level.
Avoid deadly obstacles such as cactuses, birds, snakes and scorpios.
Don't ask why he or she is constantly running.
</p>
</section>
<section>
<h1>Download</h1>
<div class="buttons">
<a href="https://github.com/maciejmalecki/trex64/releases/download/0.3.1/rex.prg">PRG file</a>
<a href="https://github.com/maciejmalecki/trex64/releases/download/0.3.1/rex.d64">D64 file</a>
</div>
</section>
<section>
<div class="gallery">
<img src="background.jpg" alt="Desert">
<img src="background.jpg" alt="Desert">
<img src="background.jpg" alt="Desert">
<img src="background.jpg" alt="Desert">
</div>
</section>
<section>
<h1>Instructions</h1>
<p>
Jump or duck to avoid obstacles.
Any contact is deadly and decrements your precious spare life amount.
</p>
<h2>Title screen options</h2>
<ul>
<li>F1 - game control method; joystick port 2 or keyboard.</li>
<li>F3 - ingame music or just SFX.</li>
<li>F5 - selection of starting level.</li>
<li>F7 - start the game.</li>
</ul>
<h2>Game controls</h2>
<ul>
<li>Joystick: up or fire - jump; down - duck.</li>
<li>Keyboard: SPACE - jump, CBM key - duck.</li>
</ul>
</section>
<section>
<h1>Credits</h1>
<ul>
<li>Maciek (code, music, gfx)</li>
<li>Zuza (gfx, level design)</li>
<li>Ola (gfz, level design)</li>
</ul>
</section>
<section>
<p>&copy; 2021 Maciej Małecki</p>
</section>
</article>
</body>
</html>

0 comments on commit d1c6e62

Please sign in to comment.