Author Topic: Tecnoballz 0.93.1  (Read 2016 times)

dmitry_smagin (OP)

  • *
  • Posts: 421
Tecnoballz 0.93.1
« on: February 10, 2016, 10:08:57 am »
Hello.

Here's a port of Tecnoballz by http://linux.tlk.fr/games/TecnoballZ/





What's FIXED comparing to official version:
- Config and highscore files are now placed in ~/.tecnoballz dir and are created in case of their absense with default values.
- Fixed major libmikmod problem. In brief: the game thinks that SDL_mixer is always using libmikmod and mixes calls to libmikmod and SDL_mixer in a hacky way. SDL_mixer on GCW Zero uses libmodplug, so this behavior leads to crashes. Now libmikmod is called directly.
- Area codes could be entered with D-Pad (UP/DOWN to alter symbols, START to finish entering, B to delete symbols)

TODO:
- Use more contrast font in shop, the default one is poorly readable.
- Shop entry at left-down corner is not accessible.

Download opk: http://prizma.bmstu.ru/~exmortis/opk/tecnoballz.opk
Source code: https://github.com/dmitrysmagin/tecnoballz/tree/gcw0

Most probably, there are still small issues, so please test and enjoy.
« Last Edit: February 25, 2016, 07:52:54 pm by dmitry_smagin »
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

congusbongus

  • *
  • Posts: 80
    • congusbongusgames
Re: [TESTING] Tecnoballz 0.93.1
« Reply #1 on: February 11, 2016, 11:26:52 pm »
Looks like a cool game; I think the zero is missing a breakout game so this will be a good addition!

- [FIXED] Config and highscore files are now placed in ~/.tecnoballz dir and are created in case of their absense with default values.
I use https://github.com/Malvineous/cfgpath to get config paths across win/lin/osx; you can use it to reimplement configfile::get_fullpathname ().

David Knight

  • **
  • Posts: 577
Re: [TESTING] Tecnoballz 0.93.1
« Reply #2 on: February 12, 2016, 12:28:56 am »
Quote
TODO:
- Hide mouse cursor

A quick code review suggests something like this may remove the mouse cursor

src/supervisor_main_menu.cc line 62
Code: [Select]
/**
 * Perform some initializations
 */
void
supervisor_main_menu::first_init ()
{
  if (is_verbose)
    {
      std::cout << "supervisor_main_menu::first_init() Begin!" << std::endl;
    }
  sprites->reset ();
#ifndef SOUNDISOFF
  audio->play_music (handler_audio::MUSICINTRO);
#endif
      SDL_ShowCursor (SDL_DISABLE);

  /*
   * create sprites data
   */
  resources->load_sprites_bitmap ();
  tecnoballz_logo->create_sprite (sprite_object::TECNOBALLZ_LOGO,
                                  sprites_bitmap, 1);
  sprites->add (tecnoballz_logo);
  tecnoballz_logo->enable ();
  tecnoballz_logo->set_coordinates (64 * resolution, 13 * resolution);
  font_scrolling->create_fontes_list ();
//  mouse_pointer->create_pointer_sprite (sprites_bitmap);

src/handler_keyboard.cc line 515:
Code: [Select]
  if (command_keys[TOGGLE_POPUP_MENU])
    {
      SDL_ShowCursor (SDL_DISABLE);

src/supervisor_shop.cc line 192:
Code: [Select]
  /* initialize the mouse pointer */
//  mouse_pointer->create_pointer_sprite (sprites_bitmap);

Quote
- Make possible to enter level codes with D-Pad

I wrote some code a while back for Ri-Li to allow high score entry. Maybe this is of some use?

https://github.com/DavidKnight247/Ri-li/blob/5af2b3a6adb85a55080edf0420671de0d0187d54/src/menu.cc line 50:
Code: [Select]
#ifdef GCWZERO
const char alphabet[]=" ABCDEFGHIJKLMNOPQRSTUVQXYZ1234567890";
static int mykey=0;
#endif

https://github.com/DavidKnight247/Ri-li/blob/master/src/menu.cc line 1283:
Code: [Select]
#ifdef GCWZERO
//        add up/down to scroll letters
  case SDLK_UP:
if (mykey < 36) mykey++;
else mykey=0;
    if(PosCur<79) {
      Pref.Sco[NEdit].Name[PosCur]=alphabet[mykey];
      Pref.Sco[NEdit].Name[PosCur+1]=0;
    }
break;
  case SDLK_DOWN:
if (mykey > 0) mykey--;
else mykey=36;
    if(PosCur<79) {
      Pref.Sco[NEdit].Name[PosCur]=alphabet[mykey];
      Pref.Sco[NEdit].Name[PosCur+1]=0;
    }
break;
#endif

dmitry_smagin (OP)

  • *
  • Posts: 421
Re: Tecnoballz 0.93.1
« Reply #3 on: February 19, 2016, 10:27:34 am »
Thanks for the hints.
With latest patch
https://github.com/dmitrysmagin/tecnoballz/commit/a1711a99489086d61c17eb716b4d9cb2e67c8c1c
which adds ability to enter area codes with D-Pad, Tecnoballz is now ready to be released.
Download link updated in first post.
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

dmitry_smagin (OP)

  • *
  • Posts: 421
Re: Tecnoballz 0.93.1
« Reply #4 on: February 26, 2016, 07:06:11 am »
Update:
- Changed menu and shop fonts to smth more readable on small screen
- Fixed navigation in pop-up menu (upper option couldn't be chosen)
- Fixed navigation in shop (lower-left option couldn't be chosen)

Link updated in first post.
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

 

Post a new topic