1. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
    Hi folks,

    this time I ported Notch's MEG4KMAN to the Wii :yaywii:

    The original was a 4K small applet: http://www.java4k.com/index.php?action=games&method=view&gid=238

    It was fun coding it. Although it's small it's a great game if you like old school platformers.
    For legal purposes your Wii requires a network connection to download the ROM files from Notch's homepage. Sorry for this inconvenience! I had no better idea to stay legal.

    *Spoiler* It has no sound and music. That's a pity, but my first approach was to rebuild the original as close as possible.
    And it was already a pain to create that HTTP request :wacko:

    But maybe I'll improve it in the future, who knows...

    meg4kman-dolphin.png

    If you like it, I published another game some days ago VVVV4K:
    https://gbatemp.net/threads/my-first-homebrew-game-vvvv4k.542608/

    UPDATE1: Version 0.4 has music and supports classic controller. Thanks @newo!
    UPDATE2: Version 0.5 supports WiiMote, Nunchuk, Classic/GameCube/Wii U Pro controller: Thanks to @Mr_Reaper. He also fixed the running unstoppable into spikes bug.
     

    Attached Files:

    Last edited by revvv, Jul 19, 2019
  2. newo

    newo GBAtemp Fan
    Member

    Joined:
    Apr 7, 2011
    Messages:
    430
    Country:
    Jamaica
    You gotta include support for the other controllers. You can monitor all controllers at the sametime so no need for an interface to switch between them.
     
  3. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
    Give me an example. Right now I think I need to additionally check for WPAD_CLASSIC_BUTTON_A etc., but all controllers? And remember I can't test it. I have only Wiimote+Nunchuck.
     
    newo likes this.
  4. newo

    newo GBAtemp Fan
    Member

    Joined:
    Apr 7, 2011
    Messages:
    430
    Country:
    Jamaica
    I made a quick example of how I handle input in my single player homebrew. The code compiles but has no UI except for pressing home to exit. It uses global variables. It seamlessly supports wiimote, classic and gamecube all plugged into the first player slot. It can be adapted for multiplayer but that is a bit more complicated.
     
    revvv likes this.
  5. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
    Oh great, thanks a lot.
     
    Last edited by revvv, Jul 14, 2019
  6. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
    Added WiiMote, Nunchuk, Classic and GameCube controllers and music. :)
     
    Hakaisha and newo like this.
  7. niuus

    niuus GBAtemp Maniac
    Member

    Joined:
    Mar 4, 2016
    Messages:
    1,207
    Country:
    Venezuela
    Nice! Pretty difficult game, i gotta say! Difficult to master because of the fast movement :grog:

    You might want to add that your game also supports Wii U Pro Controller, which is what i used to play.
     
    revvv likes this.
  8. Flame

    Flame Me > You
    Moderator

    Joined:
    Jul 15, 2008
    Messages:
    5,245
    nice. love the work you doing for the Wii scene @revvv
     
    newo and revvv like this.
  9. newo

    newo GBAtemp Fan
    Member

    Joined:
    Apr 7, 2011
    Messages:
    430
    Country:
    Jamaica
    When you are done you can create a wiibrew.org page for your games
     
    revvv likes this.
  10. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
    Oh, yes, that's a good idea. Thanks. The good thing about software is, that you are never done. Some people think this is bad, but they didn't understand the march of progress... So it could take some time...

    PS: My games now support USB controllers :grog: But as it is very unlikely you have the same controllers I did not release an update.
     
  11. newo

    newo GBAtemp Fan
    Member

    Joined:
    Apr 7, 2011
    Messages:
    430
    Country:
    Jamaica
    The classic controller support should be enough for everyone
     
  12. Maghost4102

    Maghost4102 Newbie
    Newcomer

    Joined:
    May 10, 2020
    Messages:
    3
    Country:
    Algeria
    Nice job! Do you have the original source? And if so, would you be willing to share it?
    Cheers.
     
    revvv likes this.
  13. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
    Unfortunately not, I just decompiled it. But the source or the tools to create the source would be interesting:
    To spare bytes, I think Notch used a (self-made?) tool to find the spites/levels he created in unicode characters.
    But this is just my crude theory... :evil:
     
  14. Maghost4102

    Maghost4102 Newbie
    Newcomer

    Joined:
    May 10, 2020
    Messages:
    3
    Country:
    Algeria
    Thanks for the reply. He probably used run length encoding. But do you have the .jar file? There are tools to look at the source. I can try to translate it. Actually I just want to play it, the only reason I didn't remake it, it's because I don't have level data. Anyway thanks again and good job with the port once again.
     
    revvv likes this.
  15. revvv

    OP revvv Member
    Newcomer

    Joined:
    May 11, 2019
    Messages:
    47
    Country:
    Germany
  16. Maghost4102

    Maghost4102 Newbie
    Newcomer

    Joined:
    May 10, 2020
    Messages:
    3
    Country:
    Algeria
    Thanks!

    BTW, about the java 4k, some guy made a selection of some of the java4k games and posted on github.

    Since I'm a new member, I can't post any links, so just type "java4k selection" and will find it right away.

    Thanks again!
     
    revvv likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Homebrew, MEG4KMAN,