-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Expanding menu * Disconnecting mouse cursor from keyboard cursor * Initial commit ingame help * Integrating help * Replacing example image
- Loading branch information
Showing
19 changed files
with
556 additions
and
96 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/************************************************************************** | ||
* * | ||
* Author: Ivo Filot <ivo@ivofilot.nl> * | ||
* * | ||
* CX16-OTHELLO is free software: * | ||
* you can redistribute it and/or modify it under the terms of the * | ||
* GNU General Public License as published by the Free Software * | ||
* Foundation, either version 3 of the License, or (at your option) * | ||
* any later version. * | ||
* * | ||
* CX16-OTHELLO is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty * | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * | ||
* See the GNU General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU General Public License * | ||
* along with this program. If not, see http://www.gnu.org/licenses/. * | ||
* * | ||
**************************************************************************/ | ||
|
||
#ifndef _HELP_H | ||
#define _HELP_H | ||
|
||
void __fastcall__ load_help_assets(); | ||
|
||
#endif // _HELP_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# | ||
# Generalized HELP file, any lines starting with "#" will be ignored | ||
# in the parsing | ||
# | ||
# All pages are 320x240 pixels or 20 x 15 characters (16x16 font size) | ||
# Writeable area is however 20x12 characters as first line and bottom two | ||
# lines are already used. | ||
# | ||
|PAGE1| | ||
____________________ | ||
Othello for the | ||
Commander X16 is a | ||
modern adaptation | ||
of the classic | ||
strategy board game, | ||
tailored for the | ||
retro charm of the | ||
X16 platform. | ||
|ENDPAGE| | ||
|PAGE2| | ||
____________________ | ||
Known for its simple | ||
yet strategic | ||
gameplay, Othello | ||
challenges players | ||
to outmaneuver their | ||
opponent by flipping | ||
discs (stones) on | ||
the playing board. | ||
|ENDPAGE| | ||
|PAGE3| | ||
____________________ | ||
The objective is to | ||
have the majority | ||
of stones in your | ||
color when the | ||
board is filled. | ||
|ENDPAGE| | ||
|PAGE4| | ||
____________________ | ||
Keyboard, joystick | ||
and mouse can all | ||
be used to play the | ||
game. | ||
When playing with | ||
the keyboard, use | ||
the arrow keys to | ||
move the cursor and | ||
press SPACE to place | ||
a disc. | ||
|ENDPAGE| | ||
|PAGE5| | ||
____________________ | ||
When playing with | ||
the joystick, use the | ||
d-pad to move the | ||
cursor and press the | ||
B key (yellow key on | ||
SNES controller) to | ||
place a disc. | ||
|ENDPAGE| | ||
|PAGE6| | ||
____________________ | ||
When playing with | ||
the mouse, simply | ||
move the cursor | ||
above the tile and | ||
press the left mouse | ||
key to place a disc. | ||
The cursor position | ||
is ignored when | ||
playing with the | ||
mouse. | ||
|ENDPAGE| | ||
#|PAGE| | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#____________________ | ||
#|ENDPAGE| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# parse .hlp file into binary file that can be parsed by the Othello game | ||
|
||
def main(): | ||
pages = [] | ||
with open('help.hlp') as f: | ||
lines = f.readlines() | ||
|
||
for line in lines: | ||
if line.startswith('#'): | ||
continue | ||
|
||
if line.startswith('|PAGE'): | ||
parsing = True | ||
curpage = bytearray() | ||
continue | ||
|
||
if line.startswith('|ENDPAGE|'): | ||
parsing = False | ||
curpage.extend([0x20] * (20 * 12 - len(curpage))) | ||
pages.append(curpage) | ||
continue | ||
|
||
if parsing: | ||
line = line.strip() | ||
line = line.replace('_', ' ') | ||
if len(line) > 20: | ||
curpage += line[0:20].encode('ascii') | ||
else: | ||
curpage += line.encode('ascii') + bytearray([0x20] * (20 - len(line))) | ||
|
||
with open('HELP.DAT', 'wb') as f: | ||
for page in pages: | ||
f.write(page) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
; | ||
; | ||
; Author: Ivo Filot <ivo@ivofilot.nl> | ||
; | ||
; CX16-OTHELLO is free software: | ||
; you can redistribute it and/or modify it under the terms of the | ||
; GNU General Public License as published by the Free Software | ||
; Foundation, either version 3 of the License, or (at your option) | ||
; any later version. | ||
; | ||
; CX16-OTHELLO is distributed in the hope that it will be useful, | ||
; but WITHOUT ANY WARRANTY; without even the implied warranty | ||
; of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
; See the GNU General Public License for more details. | ||
; | ||
; You should have received a copy of the GNU General Public License | ||
; along with this program. If not, see http://www.gnu.org/licenses/. | ||
; | ||
; | ||
|
||
.include "x16.inc" | ||
|
||
.export _load_help_assets | ||
|
||
.code | ||
; | ||
; Start the sound engine | ||
; | ||
.proc _load_help_assets: near | ||
|
||
; set ram bank | ||
lda #2 ; use bank 2, bank 1 is used for sound | ||
sta $00 ; set ram bank 2 | ||
|
||
; assign file name | ||
lda #$08 ; filename length | ||
ldx #<filename ; low byte filename pointer | ||
ldy #>filename ; high byte filename pointer | ||
jsr X16::Kernal::SETNAM | ||
|
||
; set file pointer | ||
lda #2 ; file index | ||
ldx #8 ; SD-card | ||
ldy #2 ; headerless load | ||
jsr X16::Kernal::SETLFS | ||
|
||
; load file into memory | ||
lda #0 ; load file into system memory | ||
ldx #$00 | ||
ldy #$A0 ; banked memory | ||
jsr X16::Kernal::LOAD | ||
|
||
; reset ram bank | ||
lda #0 ; reset ram bank | ||
sta $00 | ||
|
||
rts | ||
.endproc | ||
|
||
filename: .asciiz "help.dat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.