-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Crash Bandicoot: The Wrath of Cortex (#139)
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
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,20 @@ | ||
-- Crash Bandicoot:The Wrath of Cortex (NTSC-U v1.0) | ||
|
||
local core = require("games.core") | ||
|
||
local game = core.newGame(0x803D2214) | ||
|
||
function game.translateJoyStick(x, y) | ||
x = x/56 | ||
y = y/56 | ||
return x, y | ||
end | ||
|
||
function game.translateCStick(x, y) | ||
print(x) | ||
x = x/100 | ||
y = y/100 | ||
return x, y | ||
end | ||
|
||
return game |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
local core = require("games.core") | ||
|
||
return core.newGame(0x801AD440) | ||
return core.newGame(0x801AD440) |