Skip to content

Commit

Permalink
Added support for Crash Bandicoot: The Wrath of Cortex (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkacjios committed Mar 26, 2022
1 parent 94c74ee commit 7d1f7f0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions source/modules/games/GCBE7D-0.lua
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
2 changes: 1 addition & 1 deletion source/modules/games/GIHE78-0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

local core = require("games.core")

return core.newGame(0x801AD440)
return core.newGame(0x801AD440)

0 comments on commit 7d1f7f0

Please sign in to comment.