Директория Игры
Google
АнглийскийФранцузскийФинскийЧешскийИтальянскийПортугальскийПортугальскийПольскийНемецкийТурецкийНорвежскийГолландскийИспанскийИвритДатскийСловацкийРумынскийВенгерскийШведскийКаталанскийХорватскийГреческийАлбанскийКитайский упрощенный
русский
ЭсперантоЯпонскийПомогите нам перевести на ваш любимый язык! АрабскийКорейскийСловенскийэстонскийIcelandic
Новейшие игры



Best games of the month



Самая популярная игра месяца





Пришлите игру


Зарегистрированные пользователи.

Uploading a game

This is the starting page for uploading a game on pepere.org. Be aware that we don't accept the games that you didn't develop yourself. Depending on the quality of the graphics and the gameplay, we accept or not the game. When the game is developed with a minimum of care, it's usually accepted.
All the games must must implement the pepere.org highscore system. There are only a few lines of code to insert in your game source code, just after the "game over", to make it compatible with the pepere.org highscore system. Only the members of pepere.org can register their scores with this system, that's why the system is so easy to implement and doesn't require a graphic interface.
Before inserting the code in your game, get the right identification parameter of your game (called params) on this page. Of course, this parameter (params) is different for each new game. You can view all the games you've uploaded on pepere.org and their corresponding parameter params, on your "Developer profile" page.
Note that the highscore system only accept integers (no floating point numbers), and that the higher score is the best.

Feel free to contact us for any questions.
[Перевестирусский]   [Подтвердите исправлениеАнглийский]
Перевод сделан jp




Заведовать личными рекордами можно на примере этого MX2004 Actionscript 2 кода
    record=new LoadVars();
record.params = "XXX";
record.score = theScore;
record.sendAndLoad("record.php",record,"POST");
record.onLoad = function(){
    if ((this.recordid+""=="undefined") || (this.recordid<0)) Trace("Score not recorded, "+this.error);
    if ((this.result+""!="undefined") || (this.result>0)) Trace("Your rank : "+this.result+" / "+this.total);
}


Заведовать личными рекордами можно на примере этого CS3 Actionscript 3 кода
    import import flash.net.*;
var theBestLocalScore:Number=NaN;
function savePepereScore ( theScore : int ) : void {
    var save:Boolean=false;
    if (isNaN(theBestLocalScore)) save=true;
    else if (theScore>theBestLocalScore) save=true;
    if (save) {
        theBestLocalScore=theScore;
        var myRequest:URLRequest = new URLRequest("record.php");
        var record:URLVariables = new URLVariables();
        record.params = "XXX";
        record.score = theBestLocalScore;
        myRequest.data = record;
        myRequest.method = URLRequestMethod.POST;
        var myLoader:URLLoader = new URLLoader();
        myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
        myLoader.load(myRequest);
    }
}