maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] Roguelike: Brogue on extras-devel (https://talk.maemo.org/showthread.php?t=74941)

AapoRantalainen 2011-07-15 08:25

[Announce] Roguelike: Brogue on extras-devel
 
1 Attachment(s)
Roguelike called Brogue on extras-devel.
http://sites.google.com/site/broguegame/

Manual/Wiki:
http://brogue.wikia.com/wiki/Brogue_Wiki

This is the first game on repository using libtcod (http://doryen.eptalys.net/libtcod/), which seems to work pretty well on SDL-mode.

Game has support for mouse (but needs keyboad also).

[EDIT] New version seems to be very stable
[/EDIT]


[EDIT]
After installing, run
Code:

root
chown -R user /opt/brogue

(Older versions it was /opt/brogue/save)
[/EDIT]

Start game from terminal
Code:

cd /opt/brogue ; ./brogue
I'm not sure yet is ESC-key needed and is 'mapped ESC' working or not (SDL issue).

szopin 2011-07-15 11:28

Re: [Announce] Roguelike: Brogue on extras-devel
 
This game is lots of fun. Bit unstable so backing up is recommended. The only problems so far (except segfaults when performing dangerous actions) are with '>' as I have it mapped to right arrow and SHIFT getting stuck. Remapping '>' to a letter fixed it (strangely enough this doesn't work in A Quest Too Far). I created special mapping for brogue (xkbcomp trick from wiki, all required uppercase letters to FN+something) which helps with the SHIFT issue and gets loaded at start and unloaded after exit/crash (cping all files from save to backup folder and vice versa, so whether it was saved or crashed its covered). Seems to work so far. Thanks for another great game Aapo!

TimusEravan 2011-07-17 17:03

Re: [Announce] Roguelike: Brogue on extras-devel
 
Apart from the random initial crash, the game is working great :)
Will it be possible to change the key mapping in game itself for movement to -
Q W E
A S D
Z X C

The conflicting keys can be remapped to the others?

szopin 2011-07-17 17:44

Re: [Announce] Roguelike: Brogue on extras-devel
 
This game supports VI keys and xkbcomp works, so no need to hard remap/recompile. You can create your own mapping for it (step by step instructions in wiki) and then use this script to fire it up:

#!/bin/sh
cd /opt/brogue
xkbcomp server-0.xkb :0
./brogue
setxkbmap

It will also reset you keyboard back to default layout when closing.

AapoRantalainen 2011-07-17 23:50

Re: [Announce] Roguelike: Brogue on extras-devel
 
New version, changes:
* Fixed sticky shift.
* Fullscreen
* number of MESSAGE_LINES from 3 to 6
* game area from 100x29 to 100x34
* Recordings works.
* End game text ="Press space to start a new game"

Todo:
*crashing
*highscore loading/showing
*remap <>
*remap ESC (is esc needed?)

I can't run game on my computer, so I do not know which of my modifications relates only for Maemo version.

TimusEravan 2011-07-18 07:04

Re: [Announce] Roguelike: Brogue on extras-devel
 
1 Attachment(s)
The VI keys are not really intuitive on the N900 due to slightly different keyboard layout.
I have remapped the keys to have q - c for movement and moved the conflicting keys to other values.I have also remapped <> to the Up and Down arrow keys as they wont be used for movement.

The complete new remap -
// Keyboard commands:
#define UP_KEY 'w'
#define DOWN_KEY 'x'
#define LEFT_KEY 'a'
#define RIGHT_KEY 'd'
#define UP_ARROW '<'
#define LEFT_ARROW 63234
#define DOWN_ARROW '>'
#define RIGHT_ARROW 63235
#define UPLEFT_KEY 'q'
#define UPRIGHT_KEY 'e'
#define DOWNLEFT_KEY 'z'
#define DOWNRIGHT_KEY 'c'
#define DESCEND_KEY 63233
#define ASCEND_KEY 63232
#define REST_KEY 'b'
#define AUTO_REST_KEY 'B'
#define SEARCH_KEY 's'
#define INVENTORY_KEY 'i'
#define ACKNOWLEDGE_KEY ' '
#define EQUIP_KEY 'p'
#define UNEQUIP_KEY 'r'
#define APPLY_KEY 'u'
#define THROW_KEY 't'
#define DROP_KEY 'l'
#define CALL_KEY 'n'
#define FIGHT_KEY 'f'
#define FIGHT_TO_DEATH_KEY 'F'
#define HELP_KEY '?'
#define DISCOVERIES_KEY 'D'
#define REPEAT_TRAVEL_KEY RETURN_KEY
#define EXAMINE_KEY 'j'
#define EXPLORE_KEY 'J'
#define AUTOPLAY_KEY 'A'
#define SEED_KEY '~'
#define EASY_MODE_KEY '&'
#define ESCAPE_KEY '\033'
#define RETURN_KEY '\015'
#define ENTER_KEY '\012'
#define DELETE_KEY '\177'
#define TAB_KEY '\t'
#define PERIOD_KEY '.'
#define VIEW_RECORDING_KEY 'V'
#define LOAD_SAVED_GAME_KEY 'O'
#define SAVE_GAME_KEY 'S'
#define NEW_GAME_KEY 'N'
#define NUMPAD_0 48
#define NUMPAD_1 49
#define NUMPAD_2 50
#define NUMPAD_3 51
#define NUMPAD_4 52
#define NUMPAD_5 53
#define NUMPAD_6 54
#define NUMPAD_7 55
#define NUMPAD_8 56
#define NUMPAD_9 57

Can you use this file in you next build?

szopin 2011-07-18 11:26

Re: [Announce] Roguelike: Brogue on extras-devel
 
TimusEravan:

You can achieve all that easily with xkbcomp. Changing the code of actively developed roguelike to a non-standard set of keys is tricky at best. You would need to check it every time a new version is released (also changing help screen and if any additional keys have been mapped there) and could create more problems in the future. Instead of hard-coding this one can use xkbcomp to alter keymap for the duration of playing (which also helps if another player decides that he would prefer t,y,u to b,n,m).
VI keys btw are not intuitive on any keyboard. But as many roguelikes use them learning those is beneficial.

TimusEravan 2011-07-19 06:31

Re: [Announce] Roguelike: Brogue on extras-devel
 
@ szopin - I will try xkbcomp

@AapoRantalainen - I upgraded to the latest version and the upgrade process removed libtcod.so. This seem to be bug in packaging.

AapoRantalainen 2011-07-19 07:26

Re: [Announce] Roguelike: Brogue on extras-devel
 
Quote:

Originally Posted by szopin (Post 1053267)
Changing the code of actively developed roguelike to a non-standard set of keys is tricky at best.

Generally this is good idea. But really actively developed game can merge Maemo's modifications (maybe not that non-standard key setup)

Quote:

Originally Posted by TimusEravan (Post 1053267)
I upgraded to the latest version and the upgrade process removed libtcod.so

How you done upgrading? "apt-get update ; apt-get upgrade" worked for me, no side-effects. Did it remove package libtcod or only remove file libtcod.so?
Let see what happens with next upgrade.

szopin 2011-07-19 08:17

Re: [Announce] Roguelike: Brogue on extras-devel
 
Update/upgrade through fapman worked flawlessly for me.


All times are GMT. The time now is 19:20.

vBulletin® Version 3.8.8