maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] Alpha Strike-3D Shooter(1.2.0) Sound & harmattan support (https://talk.maemo.org/showthread.php?t=86639)

aStrike 2012-09-07 01:11

[Announce] Alpha Strike-3D Shooter(1.2.0) Sound & harmattan support
 
I'm glad to upload and let you guys try my new game that I developed,
Alpha Strike

This game is a winner of the 2012 Coding Competition.


Description:
Alpha Strike is a fast-paced 3D action shooting game in which you move the player with the accelerometer or with the keyboard and shoot with the on-screen joystick or with the keyboard . Your target is to shoot as many robotic enemies as you can while avoiding their attacks and using the health, weapon or shield bonuses. As you kill more enemies, your score gets higher. The game was created by me from scratch and is original (not a port of an existing game). Alpha Strike was programmed on and for the N900 using C++. It uses SDL1.2 and OpenGL ES2.0 for the 3D graphics rendering. It is currently aimed for the N900, but I think it is fairly portable to other platforms too.

The game include :
*High-res textures
*Varied and multicolored arenas
*Keyframe animations for the game figures
*Vertex buffer objects, interleaving and indexed arrays for better performance
*Highscores system
*Visual effects such as lighting with textures, billboarding, simple reflections and shadows
*Textured animations with particles effects for explosions and bullet collisions, etc.
*Sound effects.


You can adjust the accelerometer sensitivity level in the options menu and calibrate the accelerometer "down orientation" (couldn't find a better name) while playing by pressing on the little down pointing arrow button in the bottom left corner of the screen.

Since the game is written in C++ and uses SDL1.2 and OpenGL ES2.0, I don't think porting it to the n9/n950 would be too hard.

Believe it or not, but the entire game was developed (programming and compilation) on the n900 itself (so be proud of your n900 ;) )! I only used my netbook to create the 3D .OBJ models and some of the textures.

default key map:
W,X,A,D,Q,E,C,Z - walk in 8 direction (move up, down, left, right and diagonally).
P, LEFT_ARROW, L, UP_ARROW, O, COMMA, DOWN_ARROW, SPACE - shoot in 8 direction (shoot up, down, left, right and diagonally).
K - switch weapons.
B - toggle keyboard movement on/off.
N - toggle "sticky" movement on/off.
S - stop walk (active only when "sticky" movement is on)


Screenshots:
http://img3.imageshack.us/img3/5396/...otmainmenu.png
http://img641.imageshack.us/img641/7...enshot2ume.png
http://img29.imageshack.us/img29/246...2090801041.png
http://img51.imageshack.us/img51/765...2090801015.png
For more screenshots:
http://imageshack.us/g/338/screenshot1ed.png/

Videos:
Alpha Strike V1.0.0-2 gamplay n900.


How To Install:
You need to enable the extras-devel repository!

Install manually with apt-get:
1. Open terminal
2. Run the following:
Code:

sudo apt-get install alphastrike
Install manually with dpkg and deb package:
First, make sure you installed the dependencies which are: libgles1, libgles2, libgles1-sgx-img, libgles2-sgx-img, libgles-sgx-img-common, libsdl-gles1.2-1, libsdl-gfx1.2-4, libsdl-image1.2, libsdl1.2 ( some of them are provided by the others but I didn't had the time to check)
You can install the dependencies by openning a terminal and execute the following commands(if you have rootsh, by typing "sudo gainroot" without the quotation marks. Otherwise by typing "sudo" before the command and ignoring the first command-"sudo gainroot" ):
Code:

sudo gainroot
Code:

apt-get update
Code:

apt-get install libgles1, libgles2, libgles1-sgx-img, libgles2-sgx-img, libgles-sgx-img-common, libsdl-gles1.2-1, libsdl-gfx1.2-4, libsdl-image1.2, libsdl1.2
The next step is to actually install the game:
1. Download the Alpha Strike deb from the "Downloads links" section below to your n900 or to your computer and move it to the n900, I assume you downloaded/moved it to the MyDocs folder ( /home/user/MyDocs ) but any other folder will be good.
2. Open a terminal and gain root access by typing:
Code:

sudo gainroot
3. cd (=change directory, for the begginers) to the folder where the Alpha Strike deb file is located. I you downloaded it to the MyDocs folder then execute:
Code:

cd /home/user/MyDocs
4. Install using dpkg:
Code:

dpkg -i alphaStrike1.0.0-2.deb
Done.

You can also install the .deb via the file manager or with filebox (or a different file manager) by clicking on it, just make sure you have the dependencies installed.

Download links:
maemo version 1.2.0 : http://www.mediafire.com/?xytknz4ty6347z3

Extras-devel alpha strike folder:
http://repository.maemo.org/extras-d...a/alphastrike/

V1.1.0-2:
http://repository.maemo.org/extras-d....0-2_armel.deb
http://www.2shared.com/file/MxWTQQhQ...ike_110-2.html
http://www.mediafire.com/file/589eif...ke_1.1.0-2.deb


V1.0.1-3:
http://repository.maemo.org/extras-d....1-3_armel.deb

V1.0.1-1:
http://www.2shared.com/file/XhkLFuwh...1-1_armel.html
http://www.mediafire.com/file/z10g9n....1-1_armel.deb

V1.0.0-2:
mediafire
2shared

V1.0.0-1: (the link doesn't work well and having unrelated java issues, so prefer downloading the more updated one)
http://www.4shared.com/file/oEfW5GnZ...0-1_armel.html

Changes:
1.2.0-1: * Harmattan n9 and n950 support.
* Sound effects.
* Minor improvement to the game engine.

1.1.0-2: * Keyboard support with user adjustable keys.
* New 3 weapons ( plasma, fire, thunder ).
* New bonus ( shield which protects the hero for 10 seconds ).
* Bullets billboarding effect.
* PNG textures instead of TGA textures.
* Some modifications to the gameplay.

1.0.1-3 : * Bug fixed: Changes to the options and highscores are not saved.

1.0.1-1 : * Extras-devel build.
* Bug fixed: Shooting prevention when player is "pushing" aginst the walls.

1.0.0-2 : * Solved the deb inside deb.

1.0.0-1 : * First stable release.


How To Change The Keymap:
For the time being I use SDL_Keycode Constant as the key name.
The SDL_Keycode Constants can be found here: http://wiki.libsdl.org/moin.cgi/SDLKeycodeLookup.
The game's configuration file is placed in /home/opt/alphaStrike/gameData.txt .
In order to change the key for walking right from the D key to V key for instance, go to the SDL key codes page above and find the SDL_Keycode Constant for the V key which is SDLK_v .
Open the gameData.txt file with a text editor ( /home/opt/alphaStrike/gameData.txt ).
Replace the SDLK_d with SDLK_v for the key_walk_right line in gameData.txt and save the file.
That's it.


Thanks!

aStrike 2012-09-07 01:13

Re: [Announce] Alpha Strike V1.0.0
 
For future use.

If anyone is having problem feel free to comment and I will respond as soon as I see the message.

sifo 2012-09-07 01:29

Re: [Announce] Alpha Strike V1.0.0
 
you packaged it with dpkg-deb right :rolleyes: ?
anyway there is a ".deb" inside of the file you might want to remove it and repackage it.
this is caused by
Code:

dpkg-deb -b path/to/game/
it should be
Code:

dpkg-deb -b path/to/game
i know you know that but im just saying :D
downloaded the game and testing now ! Great work

Edit : please read the wiki page for uploading your game to repos
http://wiki.maemo.org/Uploading_to_extras

Edit : would really appreciate if you can add keyboard control, the game running well without crashing awaiting for adding the sounds :)
btw the monsters reminds me of a monster in the old Half-Life :D

./sifo

ajack 2012-09-07 02:50

Re: [Announce] Alpha Strike V1.0.0
 
Can I suggest that people just do the following instead...

Download the .deb file, then type:

# dpkg -i alphaStrike_100-1_armel.deb
# apt-get -f install

That way, you will install all the missing libraries without needing to type in the package names.

ade 2012-09-07 08:00

Re: [Announce] Alpha Strike V1.0.0
 
I do not have time to try any further now, but it complains it needs java (depends on sun-java6-jre | openjdk-6-jre | java2-runtime), so that should be added to dependencies I guess.

It does not look to be optified (installed in /opt to save rootfs space).

And a strange thing is that it now downloads as "desktop4shared-1.3_1-all.deb", and even a lot of filenames/folder are named desktop4shared inside the deb file. Did that alter after uploading to 4shared.com?

It looks promising and good to have something "original" on the N900 next to all the ports of existing games. Looking forward for the final product!

Edit: looks like it as the problem Gidzz later mentioned and I dowload some 4share download manager. Can't remember I saw another option. But the other links work with good end result.

aStrike 2012-09-07 08:33

Re: [Announce] Alpha Strike V1.0.0
 
I am glad to hear from you!
I will repackge it and upload in a few hours to another mirror and without the deb inside the deb.
About the java dependencies, is there anyone else having this problem?

ivgalvez 2012-09-07 09:29

Re: [Announce] Alpha Strike V1.0.0
 
The main problem I see with Java dependencies is that openjdk consumes a huge amount of space in the device. If you make the package dependant on it, users will need to install it even if they already have oracle-jre (smaller).

However oracle-jre is not available in the repositories but from third party download link. A good possibility would be having a generic java feature that could be provided by both runtimes. That would require to update openjdk packages and repack oracle runtime and upload it to Extras.

Anyone?

aStrike 2012-09-07 10:21

Re: [Announce] Alpha Strike V1.0.0
 
I need to check why it depends on java, because it is written in c++ sdl1.2 and gles2.0. I dont have abything related to java installed on my n900 or in the depends list so it is really odd, maybe 4shared messed it up.
I will upload to another mirror and test it then.

Edit: I uploaded a new version to other mirrors, could you tell me if you still get the java dependencies?

ade: currently the game files are stored in /home/opt/ and doesn't use the rootfs, how can I optify it further?

sifo: Looks like a nice addition. I can implement it by using the w,a,s,d for 4 directions or q,w,e,a,d,z,x,c for 8 directions. Shooting will remain with the joystick (it will be pretty hard to shoot with the keyboard, but I guess using an 8 directions shooting wouldn't be bad... ). If anyone has another idea please inform me!

dgls82 2012-09-07 21:12

Re: [Announce] Alpha Strike V1.0.0-2
 
Hi aStrike!
I try he game and it works well. The graphic is very good!
I notice this problem: when the man is very very close to a wall (for example in a corridor) it is difficult to shoot agaist the monsters walking close to the same wall.
dgls82

aStrike 2012-09-07 21:23

Re: [Announce] Alpha Strike V1.0.0-2
 
dgls82: Thank you for you impression!
About the shooting you mentioned, it's not a bug. It happens when trying to "push" aginst the wall and the collision objects of the bullet and wall overlaping a little, so a collision detected and the bullet is "killed". I will change it's collision object size and include it in the next update. Thanks again for your observation!

gidzzz 2012-09-07 22:18

Re: [Announce] Alpha Strike V1.0.0
 
Quote:

Originally Posted by ade (Post 1262495)
I do not have time to try any further now, but it complains it needs java (depends on sun-java6-jre | openjdk-6-jre | java2-runtime), so that should be added to dependencies I guess.

It does not look to be optified (installed in /opt to save rootfs space).

And a strange thing is that it now downloads as "desktop4shared-1.3_1-all.deb", and even a lot of filenames/folder are named desktop4shared inside the deb file. Did that alter after uploading to 4shared.com?


You were probably misled by 4shared's intarface and clicked the wrong download button. I believe desktop4shared-1.3_1-all.deb is their download manager written in Java and not targeted for Maemo, thus not optified. ;)

aStrike 2012-09-07 22:40

Re: [Announce] Alpha Strike V1.0.0-2
 
That's right, that's why I think the other mirror won't have this annoying problem too. My next step is to upload Alpha Strike to extras-devel.

skate_boy92 2012-09-09 03:32

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
It says missing packages. How do I get those packages?

sifo 2012-09-09 03:38

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
@skate_boy92

which package is missing ? can you please provide more info, sceenshots or logs so we can help you :) ?

./sifo

visN900 2012-09-09 05:26

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
can u add keyboard mapping to this..??

skate_boy92 2012-09-09 13:34

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
missing packaged:
libgles1
libgles2
libsdl-gfx1.2-4

sifo 2012-09-09 13:41

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
@skate_boy92

you need Nokia repositories enabled, and then type after installing the game package :
Code:

root
apt-get update
apt-get -f install

./sifo

aStrike 2012-09-09 21:27

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
visN900: Keyboard support is under development and will be included in the next version. Frankly, it's almost done, I will upload a video I just took of Alpha Strike's gameplay to youtube where you can see this feature and the game in action, I don't think the pictures convey the whole impression.

***Thanks again to sifo for first suggesting it and for his support and help to this thread!!!

This is the current key mapping(please tell me if you have another options):
B-toggle between using the accelerometer or keyboard for the player's movements.
N-toggle between "sticky movement" on/off ( when "sticky movement" is on you don't have to keep pressing on the key, the hero will keep on going in the key's direction).
A-move left. D-move right. W-move up. X-move down. Q,E,C,Z -move diagonally. S-stop moving(if "sticky movement" is on).
L-shoot left. UP ARROW-shoot right. P-shoot up. LEFT ARROW-shoot down. O, COMMA(=,), DOWN ARROW, SPACE BAR-shoot diagonally.

I am waiting to get rights to upload to extras or extras-devel and also working on adding more weapons...

EDIT: Here is the link to the gameplay video, the quality is not something I'm proud of (sorry), so I will upload a higher quality video when I release the next version of the game.

briggers 2012-09-10 08:23

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Looks fantastic!

I'd really love to see an online multiplayer mode.

aStrike 2012-09-11 20:56

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Currently I am waiting to get the rights to upload to extras-devel. I requested an invitation on friday (if I remember correctly) via the Maemo Extras Assistant. Anyone know how I can check the status of my request or should I send another request?

Thanks.

Shinigamijim 2012-09-11 21:26

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Have to ask, Multi Touch ? lol

Looks pretty straigh forward thank You !

aStrike 2012-09-11 21:40

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Shinigamijim: I wish the n900 had multi-touch support (the n900 has resistive touch screen that can NOT handle multi touch). In my opinion, implementing multi touch wouldn't be a pain (for the n9/n950 of course).

Mitrigol 2012-09-12 09:20

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Hello, install went fine and game look fine, thank you for it.

But is there a mean to modify the accelerometer "dead zone"?
Because i would like for the N900 to be flat when player is not moving. Currently i have to put the N900 vertically,

aStrike 2012-09-12 10:05

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Mitrigol: I'm glad you liked it. :)
I haven't really understood what you meant by "dead zone", but have you tried to calibrate the accelerometer via the "accelerometer down direction" button (the little button with a down pointing arrow on the bottom left corner that appears when playing).

Mitrigol 2012-09-12 10:23

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Thank you for the quick reply, yes this is exactly what i ws looking for.

Thanks a lot!

rash.m2k 2012-09-16 10:44

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
Did you really make this game in 3 months? Or is it just a port?

Thats impressive in just three months!

aStrike 2012-09-16 16:13

Re: [Announce] Alpha Strike-3D shooting game v1.0.0-2
 
rash.m2k: Thank you for your interest in the game!
Yes, the game was really made by me, it is ORIGINAL, and NOT A PORT of any kind. Developing it (i.e coding, modeling, texturing, ui, packging...) and learning new staff on the run in a limited time of three months was really an effort and time consuming task, but I can say that I am satisfied and I've learnt a lot and enjoyed doing it :).

I have not stopped working on game, I have finished:
- Adding the keyboard support (like I described a few post earlier plus added the option for the user to customize the key map by changing the gameData.txt file).
- New 3 weapons now availible with new textures, animations and powers.
- Some tweaks to the gamplay.

I will upload the next version of the game when the coding competition is over (uploading a new version during the competitions's voting period is against the rules). I will upload a new video to youtube with the new features.

If anyone can help, how can I upload the current version of the game to extras-devel? I have tried using the Extras Assistant tool and requested a right to upload a week and a half ago, but I still don't have the rights. Is it normal?

Thanks!

EDIT: Got the upload rights!!! :D
I uploaded the current version (v1.0.1-1) to extras-devel.
message from the builder: alphastrike 1.0.1-1 has been queued for loading into fremantle extras-devel repository.

aStrike 2012-09-19 19:25

Re: [Announce] Alpha Strike-3D Shooter v1.0.1-1 In Extras-devel
 
Finished uploading to extras-devel HERE!, check it up :)
Now you can get the game (v1.0.1-1) via hildon application manager or install via apt-get (install alphastrike) or download the deb directly from the repository.

After the coding competition voting is over, I will upload the version with the new that are already done features: adjustable keyboard support, new weapons and textures, some modifications, bullets billboarding and maybe new bonuses!

Stay tuned! ;)

Estel 2012-09-19 20:32

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
It's incredible, that You've created almost 100% of this game on N900 itself. I'm glad it made it way into extras - installing, I hope You haven't forget to optify ;)

/Estel

aStrike 2012-09-19 20:41

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
Thank you!
The game data is installed in the /home/opt/alphastrike folder (not in the rootfs). I have read the optification wiki page but didn't quite understood it. Perhaps you can tell me what it is? (maybe storing data not in the home partition?)

Estel 2012-09-19 20:52

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
The main idea behind optification, is to store everything (that is feasible) out of rootfs. For this case, we have /opt, which is symlinked in few places (like /home/opt). While your approach to place files under already existing symlink (/home/opt) may be not canonical, it isn't hurting at all (AFAIK), and everything should be OK.

Reasoning for it is quite simple (and I'm sure You're aware of that, just writing it for the records) - rootfs space is very limited. So, generally, optification is done OK, if it use common sense to store most/all files outside rootfs (in some rare cases, it may be beneficial for program, to have file natively on rootfs, but it isn't the case here).

/Estel

aStrike 2012-09-19 20:58

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
I have only 6 mb left in the rootfs on my n900 in general, so placing the game data (textures, models, data files...) there is out of the question.

sifo 2012-09-20 03:40

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
Be careful, when the 6mb in your rootfs is full your N900 wont boot untill a reflash for a full system restore with backupmenu...

./sifo

reinob 2012-09-20 07:58

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
Quote:

Originally Posted by Estel (Post 1269284)
It's incredible, that You've created almost 100% of this game on N900 itself. I'm glad it made it way into extras - installing, I hope You haven't forget to optify ;)

/Estel

+1000!

I don't generally play games, less so on the N900. But what aStrike has done is almost incredible!

Kudos to you aStrike!

Tiran 2012-09-20 14:09

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
Records and options are not saved how to be?

aStrike 2012-09-20 21:16

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-1) Now In Extras-devel
 
Thank you all for your kind and supportive words, I am really glad to read your impression and it really motivates me! :)

sifo: Good you mentioned it, an unnecessary and painful flash prevented! :D

Tiran: Thank you for reporting this bug. It is because the game data text file is owned by root user thus can not be modified. However, I think it is present only in the Extras-devel build (not present in the debs I built using dpkg-deb from the mirrors: mediafire, 2shared).

To fix this bug open a new terminal, and type:
Code:

sudo chown user /home/opt/alphaStrike/gameData.txt
I will soon upload a new build version with a fix to this tiny bug.


EDIT: New version V1.0.1-3 with the fix to the bug above was uploaded to Extras-devel.
http://repository.maemo.org/extras-d....1-3_armel.deb

Tiran 2012-09-21 11:43

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-3) Now In Extras-devel
 
Why in game there is no sound??? In options the sound is switched on, and in game it is not present.

aStrike 2012-09-21 18:24

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-3) Now In Extras-devel
 
Tiran: The sound is currently not available because it's still under development(still learning) and will be available in the next releases. For the time being, I focus on the game's features and gameplay (keyboard, bullet billboarding, more bonuses and weapons...).

UPDATE: Bullets billboarding (looks really good!) and png loader are done. The current release uses ~20 mb TGA textures. The next release has ~5 mb png textures. Huge difference! :D

aStrike 2012-09-28 20:56

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-3) Now In Extras-devel
 
Hi everyone,
I have been notified today that Alpha Strike took the SECOND place in the Games, Graphics, and Multimedia category and FIRST in the Beginners category in the coding competition (though the results are still preliminary).

I want to say a big THANK YOU for all the people who voted!!!:D
It has been a really interesting and productive two and a half months of development.

About the new version of Alpha Strike, the only thing left before I package and upload is to decide about the 3 new weapons characteristics (which one is the fastest, destructive, reloads quickly etc) :)

Thanks again!

sifo 2012-09-28 21:29

Re: [Announce] Alpha Strike-3D Shooter(1.0.1-3) Now In Extras-devel
 
Well, you simply deserve to win :)
keep it up !

./sifo


All times are GMT. The time now is 01:08.

vBulletin® Version 3.8.8