Mercurial > otakunoraifu
view scn2k/test.cc @ 60:e16e13d8cd68
Replaced SATURATE -> ADD, implemented objComposite, corrected minor things
author | Thibaut GIRKA <thib@sitedethib.com> |
---|---|
date | Fri, 18 Dec 2009 20:41:38 +0100 |
parents | 6d1a5b7f0838 |
children | 4416cfac86ae |
line wrap: on
line source
/* * Copyright (c) 2004-2006 Kazunori "jagarl" Ueno * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<SDL.h> #include<vector> #include"system/file.h" #include"system/system_config.h" #include"window/widget.h" #include"window/system.h" #include"music2/music.h" #include"scn2k.h" #include"scn2k_impl.h" using namespace std; extern char* diag; extern char* diag2; int main(void) { AyuSysConfig config; printf("%s\n",setlocale(LC_ALL,"")); //file_searcher.InitRoot("/home/uenok/pb"); file_searcher.InitRoot("/mnt/KEY/CLANNAD"); config.LoadInitFile(); MuSys mu(config); mu.InitMusic(); SetFont("msgothic.ttc"); SDL_Init(SDL_INIT_VIDEO); SDL_SetVideoMode(640, 480, 0, SDL_HWSURFACE /*| SDL_FULLSCREEN */); System::Main main; PicContainer* main_panel = main.root.create_node(Rect(0, 0, main.root.width, main.root.height), 0); main_panel->show(); Scn2k scn(main.event, *main_panel, mu, config); // MouseCursor* cursor = new MouseCursor // scn.OpenScript(1002, -19482); // ラブ生〜 //scn.OpenScript(1002, -18240); // ラブ生シーン開始 // scn.OpenScript(1002, -59528); // ラブ生シーン開始 // scn.OpenScript(2, 0); // scn.OpenScript(320, 0); //scn.OpenScript(320, -4269); // オープニング(Chap.2) //scn.OpenScript(320, -2523); //scn.OpenScript(320, -7549); // scn.OpenScript(310, 0); // エンディング(Wed.day) //scn.OpenScript(311, 0); // エンディング // scn.OpenScript(100, -2244); // 選択肢 // scn.OpenScript(100, -9008); // 選択肢 //scn.OpenScript(1001, -118520 ); // 選択肢:葛城クン // scn.OpenScript(1, 0); // 開始 // scn.OpenScript(414,380); // 開始 // scn.OpenScript(9142,0); // 開始 // config.SetParam("#SEEN_START", 1, 9140); //scn.show_textwindow(0); main.Mainloop(); mu.FinalizeMusic(); SDL_Quit(); }