Author Topic: Coppergreen  (Read 5022 times)

xturrican (OP)

  • Posts: 16
Coppergreen
« on: January 20, 2015, 02:56:43 pm »
Hallo, habe hier ein kleines spiel geschrieben f?r den GCW Zero.
Es ist ein klasischer 2D Shooter.
Viel Spa?
https://drive.google.com/file/d/0B4DtPkHRd9eVMUdrU0xCc3VWWms/view?usp=sharing

New mod files included with free licence...
Movement corrected.

Hello I've developed a game for the GCW Zero, it's a classical 2D Shooter.
Please make a comment.
25.01.2015 reuploaded with better Menu and better enemy handling.

Have a lot of fun

xturrican
« Last Edit: January 25, 2015, 08:12:18 pm by xturrican »

pcercuei

  • Posts: 1655
    • My devblog
Re: Coppergreen
« Reply #1 on: January 20, 2015, 03:09:57 pm »
Download link doesn't work

Ziz

  • Posts: 284
    • http://ziz.gp2x.de
Re: Coppergreen
« Reply #2 on: January 20, 2015, 03:13:41 pm »
It does for me.

I did test it on my PC (I don't have a GCW, but I was able to compile it, because you put the source code to the opk).
It is funny. Probably makes a lot of fun on the GCW. ;) However the font is bad readable, especially in the menu.

Greetings,
Ziz
I am a leaf on the wind - watch how I soar. Wash

xturrican (OP)

  • Posts: 16
Re: Coppergreen
« Reply #3 on: January 20, 2015, 03:23:53 pm »
Downloadlink should now work :-)

zear

  • * Moderator
  • Posts: 2381
Re: Coppergreen
« Reply #4 on: January 20, 2015, 03:28:34 pm »
Thanks for sharing this cool little game with us.

I had a look at the included source code.

Don't hardcode the config path:
Code: [Select]
std::ifstream load( "/usr/local/home/.coppergreen/highscore.dat",ios::in );  Instead, use getenv() to retreive the home directory path kept in the $HOME environment variable.
Here's an example on how to use it:
https://github.com/zear/uae4all/blob/master/src/homedir.cpp#L12

The game has quite an input lag, because you're only ever reading the last event from the event queue, which quickly acculumates.
Instead, put the SDL_PollEvent() call in a while loop. It will purge the event queue every iteration.
After the following change to your code, the input lag is gone:
Code: [Select]
        while(SDL_PollEvent( &event )){
if( event.type == SDL_KEYDOWN){

if(event.key.keysym.sym==SDLK_UP)hoch=true;
if(event.key.keysym.sym==SDLK_DOWN)runter=true;
if(event.key.keysym.sym==SDLK_RIGHT)rechts=true;
if(event.key.keysym.sym==SDLK_LEFT)links=true;
if(event.key.keysym.sym == SDLK_ESCAPE)menueaktiv=true;
if(event.key.keysym.sym == SDLK_RETURN)menueaktiv=true;

if(event.key.keysym.sym==SDLK_SPACE)feuer=true;
if(event.key.keysym.sym==SDLK_LALT)feuer=true;
if(event.key.keysym.sym==SDLK_LCTRL)feuer=true;
if(event.key.keysym.sym==SDLK_LSHIFT)feuer=true;
}
if(event.type==SDL_KEYUP){
if(event.key.keysym.sym==SDLK_UP)hoch=false;
if(event.key.keysym.sym==SDLK_DOWN)runter=false;
if(event.key.keysym.sym==SDLK_RIGHT)rechts=false;
if(event.key.keysym.sym==SDLK_LEFT)links=false;
if(event.key.keysym.sym==SDLK_SPACE)feuer=false;
if(event.key.keysym.sym==SDLK_LALT)feuer=false;
if(event.key.keysym.sym==SDLK_LCTRL)feuer=false;
if(event.key.keysym.sym==SDLK_LSHIFT)feuer=false;
}
}

I understand this is an alpha/preview release of the game, but for the final version please don't use copyrighted music or gfx assets ;)
Check http://opengameart.org/ for a collection of free assets that can be used royalty-free in games.

xturrican (OP)

  • Posts: 16
Re: Coppergreen
« Reply #5 on: January 20, 2015, 03:39:20 pm »
The paintings was made by me. The sounds i've got from a free archive and the licence its free.
This game was a port from coppergreen, which i've upload to playstore some months earlier.
It,s my first game written i C/C++ so please don't be hard with me.
Ich gelobe Besserung...
Thanks for the corrected code.

xturrican

zear

  • * Moderator
  • Posts: 2381
Re: Coppergreen
« Reply #6 on: January 20, 2015, 03:52:28 pm »
The sounds i've got from a free archive and the licence its free.
I don't know for the other songs, but the one playing during the hi-score is a track from MegaMan2 and it sure is copyrighted:
https://www.youtube.com/watch?v=WJRoRt155mA

The in-game song sounds familiar as well, but I can't pinpoint it. Something from Touhou perhaps?

xturrican (OP)

  • Posts: 16
Re: Coppergreen
« Reply #7 on: January 20, 2015, 04:00:44 pm »
So I have to change the sound?
I've reading the FAQ of the soundsource site it semms t be ok to publish the midi files in a game, or not?
http://www.vgmusic.com/faq/faq-gen.shtml#1

zear

  • * Moderator
  • Posts: 2381
Re: Coppergreen
« Reply #8 on: January 20, 2015, 04:09:19 pm »
They don't have copyright at least for those five tracks from your game:
Code: [Select]
mm2intro.mid
mm2metal.mid
mm2title.mid
mm2wily1.mid
mm2wood.mid
Even the file names suggest they are all taken from MegaMan 2.

I took a wider look at the website and they simply collect copyrighted video game music extracted from classic console games:
http://www.vgmusic.com/music/console/nintendo/gameboy/

They don't have permission for this and they absolutely cannot give one to anybody else.
The fact they encourage others to use these stolen tracks in their works is just sad :/

If you want to find royalty free music to use in your game, check the webiste I previously mentioned: http://opengameart.org/
For every track in there, they list full license and you can find all about the usage limits.

Ziz

  • Posts: 284
    • http://ziz.gp2x.de
Re: Coppergreen
« Reply #9 on: January 20, 2015, 04:12:16 pm »
So I have to change the sound?
I've reading the FAQ of the soundsource site it semms t be ok to publish the midi files in a game, or not?
http://www.vgmusic.com/faq/faq-gen.shtml#1
Not really. In your link (!) stands:
Quote
We ourselves don't have a problem with it. Then again, we don't actually have any kind of true claim to the files themselves. We're just providing the archive services, the files (For the most part) were not made by us and are not ours. So, if you want to use one of the files you find here, you'd better ask the person who made the file.
For your in German:
Quote
Wir selbst haben kein Problem damit [dass ihr die Songs in einem Spiel nutzt], aber wir besitzen die Dateien im Grunde gar nicht. Wir unterhalten nur den Server f?r die Dateien. Die meisten Dateien wurden nicht von uns erstellt und sind somit nicht unsere. Wenn du diese nutzen m?chtest, frag besser die Person, die die Dateien erstellt hat.

However, my opinion: If your game stays small and in this board: Nobody will ever notice. But if you would like to release versions for other systems, too, and especially if you want to release the game in the official gcw repository, you must change the content or get the permission of the file owner to use them. ;)

Greetings,
Ziz
I am a leaf on the wind - watch how I soar. Wash

Ziz

  • Posts: 284
    • http://ziz.gp2x.de
Re: Coppergreen
« Reply #10 on: January 20, 2015, 04:13:45 pm »
The fact they encourage others to use these stolen tracks in their works is just sad :/
What they did not do in fact. ;) They tell, that they don't care, but also tell, that they are not the copyright holders and you should ask the file owners. ;)
I am a leaf on the wind - watch how I soar. Wash

zear

  • * Moderator
  • Posts: 2381
Re: Coppergreen
« Reply #11 on: January 20, 2015, 04:16:01 pm »
The fact they encourage others to use these stolen tracks in their works is just sad :/
What they did not do in fact. ;)

Quote
Can I use your files on my website or in a game I'm making?
We ourselves don't have a problem with it.
For me, this is an encouragement.

Anyway, let's not turn this topic into a copyright discussion :)

xturrican (OP)

  • Posts: 16
Re: Coppergreen
« Reply #12 on: January 20, 2015, 04:18:17 pm »
Ok, i will change the sound and use the sounds from the site which you show me... opengameart...

dieser ganze rechtsm?ll verdirbt mir den Spa? am proggen....

Thanks...
It's never to late to learn

Ziz

  • Posts: 284
    • http://ziz.gp2x.de
Re: Coppergreen
« Reply #13 on: January 20, 2015, 04:28:22 pm »
What would you think, if someone takes your game and sells it? Without even noticing you?

In fact giving and restircting rights is necessary to get fun in developing or creating music or making gfx and so on.

When I develop something, I don't want money for it. Furthermore I want other people to learn from my code, improve my code and to compile my code for other targets. But I want also, that nobody is able to take these grants from users! So I choose an copy left free software license.

The same for music. Did you tell the authors of your music, that you use it? It was hard work for them to make it! So in fact it is very attentive, that most music makers just want to be named (e.g. with CC-BY or CC-SY-BY). ;)
I am a leaf on the wind - watch how I soar. Wash

xturrican (OP)

  • Posts: 16
Re: Coppergreen
« Reply #14 on: January 20, 2015, 05:07:01 pm »
Game reuploaded with ilcence free mod files... man will ja schlie?lich nicht wegen ne Lizenzsache in den Kanst...
Movement controlling corrected.

Hope now its better for you...

Please comment...

xturrican (OP)

  • Posts: 16
Re: Coppergreen
« Reply #15 on: January 20, 2015, 09:30:53 pm »
Game reuploaded, because of little bugs :-)

Use downloadlink in the  Starttopic.

Kouen Hasuki

  • Posts: 155
Re: Coppergreen
« Reply #16 on: January 23, 2015, 01:22:12 pm »
Cheers, checking it out now!

 

Post a new topic
Post a new topic