Homebrew Project SDL 2 port ongoing

JeffRuLz

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
165
Trophies
0
XP
2,585
Country
United States
If you are willing to create a branch of Abbaye which calls SDL_SetWindowDisplayMode to set the video mode, then it will be easier for me to add the missing support.
Apologies dude, I didn't notice you requested this until now. I made a branch here: https://github.com/JeffRuLz/abbayedesmorts-3ds/tree/wii

First of all, I made it so it sets the display mode to 320x240 if it detects a file called 240p.txt (here). I'm not really sure if I did that correctly.
Also, setting SDL_WII_JOYSTICK_SIDEWAYS doesn't seem to change anything. The d-pad is still oriented like the remote is upright. It's set before SDL_Init so I'm not sure what I'm doing wrong there.

And lastly, since this game runs at 256x192 I wanted to display it in the center of the screen with a border filling the remaining space. When the window size doesn't match the logical size then the game is displayed in the top left corner. I believe the standard SDL behavior is to center the screen to the window, but I may be remembering wrong.
 

Fancy2209

Member
Newcomer
Joined
Aug 8, 2021
Messages
16
Trophies
0
Age
23
XP
112
Country
Portugal

Fancy2209

Member
Newcomer
Joined
Aug 8, 2021
Messages
16
Trophies
0
Age
23
XP
112
Country
Portugal
Also, I (succesfully this time) ported Sonic Robo Blast 2.1.25 to the Wii, but the Joystick api reports there are 0 Joysticks avaliable, this prevents me from using any kind of controller, Wii Remote, Classic Controller or GameCube Controller.
Any ideas? It's not that great to need to plug a keyboard in.
This is the repo: https://github.com/Fancy2209/SRB2/tree/Wii2125
 
Last edited by Fancy2209,

mudrik

Member
OP
Newcomer
Joined
Nov 18, 2022
Messages
23
Trophies
0
Age
31
XP
203
Country
Turkey
Also, I (succesfully this time) ported Sonic Robo Blast 2.1.25 to the Wii, but the Joystick api reports there are 0 Joysticks avaliable, this prevents me from using any kind of controller, Wii Remote, Classic Controller or GameCube Controller.
Any ideas? It's not that great to need to plug a keyboard in.
This is the repo: https://github.com/Fancy2209/SRB2/tree/Wii2125
The problem is that joysticks take some time to appear. You can either change to the polling API, or add this at the beginning of the game (after SDL_init()):
while (SDL_NumJoysticks() == 0) { SDL_PumpEvents(); }
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and i dont think the rectangular movement behavior works for platform games
  • BigOnYa @ BigOnYa:
    Yea it does. And you can add platform character behavior to your own charcter, and it will have move and jump already setup for you, space bar is jump, arrows move
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i already added the platform character behaviour to the player since i started doing this
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and already set up animations for when he shoots both standing and walking
    +1
  • S @ salazarcosplay:
    @Xdqwerty you could
    add alcohol to the game too
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, one of the curative items has the internal name of "beer"
  • Xdqwerty @ Xdqwerty:
    although it looks like a coke can
  • S @ salazarcosplay:
    @Xdqwerty what is the game based on
  • S @ salazarcosplay:
    what was the inspiration
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, based on my ideas i'd say mega man games (probably mega man zero mainly)
  • S @ salazarcosplay:
    I had some ideas for megaman based game
  • S @ salazarcosplay:
    @Xdqwerty make people have their own character
  • S @ salazarcosplay:
    and be able to fight other players
  • S @ salazarcosplay:
    and co op
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, kind of like mugen or rivals of aether?
  • S @ salazarcosplay:
    and also ahve the option to play as a human
  • S @ salazarcosplay:
    or set it up that when you get injured past a certain point they have to replace your human parts with cybernetics
  • Xdqwerty @ Xdqwerty:
    i have a placeholder enemy sprite i made
  • S @ salazarcosplay:
    or have it that you don't know you are a cyborg, robot, and you find out and have a existential crisis
  • S @ salazarcosplay:
    or have it start in the virtual world and you are an ai that gained sentience
  • Xdqwerty @ Xdqwerty:
    btw gonna wash my face in a bit, my eyes feel tired
  • S @ salazarcosplay:
    and you convince your owner to help you break out of the virtual world to real world
  • BigOnYa @ BigOnYa:
    Eyes - "yawn"
    +1
  • S @ salazarcosplay:
    you bleack in to goverment computer systems to get cyborg schematics so you can get a robot body constructed
    S @ salazarcosplay: you bleack in to goverment computer systems to get cyborg schematics so you can get a robot body...