• Advertisement

kake_fisk

Member
  • Content count

    12
  • Joined

  • Last visited

Community Reputation

105 Neutral

About kake_fisk

  • Rank
    Member
  1. Room Escape Game

    [size=5][size=6]Room Escape[/size][/size] [size=4][b]Description:[/b][/size] [size=4][size=3]Room Escape is a point 'n click browser game made in Flash Professional. You wake up in a room and you have no idea how you got there. The door is closed and you have to find your way out. This is a point and click game where you have to interact with different objects and find items you can use to get out. The game is also translated to Norwegian and Hebrew. You can change language on the first screen.[/size][/size] [size=4][b]Screenshot:[/b][/size] [img]http://i.imgur.com/4DQZj.png[/img] [size=4][b]Play:[/b][/size] [url="http://kakefisk.webatu.com/games.php?id=36"]Play Room Escape[/url]
  2. [center] [img]http://img18.imageshack.us/img18/2558/logoolr.png[/img] [/center] Daff's Adventure 2 is the prequel of [url="http://sacredwater.uni.cc/games.php?id=6"]Daff's Adventure[/url]. I'm entering the [url="http://www.riotdigital.com/ttcc2011/"]Riot Digital Tag-Team Competition[/url] with this game, so please consider [url="http://www.riotdigital.com/ttcc2011/?page=Vote"]voting[/url] for me if you like my game, it will help me much. You can also read about the game on my own website [url="http://sacredwater.uni.cc/projects.php"]Sacred Water[/url]. [b]Description[/b] Daff's Adventure 2 is a platform game where you play as the little circle Daff, who lives in Circleville. But after defeating the evil Warlock Nexus in the prequel, Daff again, needs to save his village. This time, an evil leader has risen to power in Squareville, with a hatred of all other shapes than squares. Circleville is threatened with extinction, and it is up to our hero, Daff, to save the village again. [b]Screenshots[/b] [img]http://www.riotdigital.com/ttcc2011/img/game_daff_2.png[/img] [img]http://www.riotdigital.com/ttcc2011/upload/screen4.png[/img] [img]http://www.riotdigital.com/ttcc2011/upload/screen2.png[/img] [img]http://www.riotdigital.com/ttcc2011/upload/screen3.png[/img] [b]Platforms[/b] [list][*]Windows[*]Linux[*]Caanoo[*]Wiz (coming soon)[/list] [b] Download[/b] [url="http://www.riotdigital.com/ttcc2011/code/download.php?id=55"]Direct download (Windows)[/url] [url="http://www.riotdigital.com/ttcc2011/?page=Entries"]Contest entries page[/url] If you find any bugs or have any suggestions for improovements, please post them here as I'm going to release a new version later. And again please [url="http://www.riotdigital.com/ttcc2011/?page=Vote"]vote[/url] for me in the competition. Thanks in advance.
  3. Problem making a button in flash

    I think I'm doing everything wrong, because I don't want to create a new button actually. But I have given up on using document class and I'm just going to use the timeline instead. But thank you for replying at leat. :)
  4. Okay, I've been thaught that using a document class in Flash is the "good practise". But now everything is very different than using the timeline's actions. I'm trying to make a button that takes you to a different frame when you click on it. It changes image when you hover over it and such, but nothing happens when you click on it. The button instance is called btn_start. This is my code: package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.system.*; public class main extends MovieClip { public var btn_start:MovieClip = new MovieClip(); public function main():void { stop(); loaderInfo.addEventListener(ProgressEvent.PROGRESS, evLoaded); addChild(btn_start); btn_start.addEventListener(MouseEvent.MOUSE_UP, evStart); } private function evStart(event:MouseEvent):void { gotoAndStop(3); } private function evLoaded(event:ProgressEvent):void { if (event.bytesLoaded == event.bytesTotal) { gotoAndStop(2); } } } } Does anybody know what I'm doing wrong?
  5. Bricked 2 [Puzzle] (Finished Game)

    @LennyLee Oh, I see. And you are probably right about that as it's made in SDL with very few windows functions. @Unbird & Szecs Yeh, I've learnt that I should give the user a little introduction to the game now. I forget to write that you are unable to move until you touch a solid block again, in the manual. @Szecs No, you don't have to take them. But if you manage to win the game easily, you can try the challenge of completing all the levels with all the peaches. And yeh, these thingies are actually peaches. But when I think about it, I did design the levels with focus on the peaches, so I haven't really tested the game without taking the peaches. @NeoCheez Thanks. :) I haven't been looking very much into SDL_Mixer's functions. But you are right. That would have been a nice effect on the music. And yeh, I'm changing a bit too much between mouse controlling and keyboard controlling. I should either stick to one of them or let you use both. [Edited by - kake_fisk on September 28, 2010 2:41:20 PM]
  6. Bricked 2 [Puzzle] (Finished Game)

    @Unbird Thank you for the comment. And yeh, I've worked really hard on polishing the game. I don't think there are any bugs in the game, because I've tested it like a houndreds of times. @LennyLen I'm not a very big fan of sharing my code with others. But if you tell me which OS you are using, I can maybe manage to port the game to your system. And thanks for your interest by the way. @Szecs Hehe, I thought that was obvious. In my newest game, there was also a guy that didn't understand that you jumped with space in a platform game. Maybe I'm just too used to game controls or something. In my next game I'll try my best to explain to the user how the controls work. Maybe some tutorial levels in the beginning or something.
  7. [b]Title:[/b] Bricked 2 [b]Description:[/b] Bricked 2 is a puzzle game I've made in C++. The goal in the game is to find your way through all the levels while avoiding enemies and other obstacles. You can also collect peaches for an extra challenge. [b]New features:[/b] [list] [*]Better graphic [*]Larger levels [*]More levels [*]New blocks [*]Unlockables [*]Level editor [/list] [b]Screenshot:[/b] [img]http://img535.imageshack.us/img535/1355/bricked2.png[/img] [b]Download:[/b] [url="http://sacredwater.uni.cc/games.php?id=6"]Download Bricked 2[/url] I might release a map pack if I get some contributions with maps. Maps can be made with the inbuilt level editor. - Thanks for playing. [Edited by - kake_fisk on September 25, 2010 8:44:16 PM]
  8. [C++] Xor encryption

    Ah, okay. I see. :)
  9. [C++] Xor encryption

    That was it! I sat the binary flag the wrong place. But I don't see why I need to put parenthesis around the addition. You said it yourself, plus has higher precedence than xor. And one more thing I don't understand is why I actually write/read in binary. But it does work now. Thanks everybody who has replied and helped.
  10. [C++] Xor encryption

    Okay, I tried to follow some of the advice posted. But I still haven't manage to solve the problem. Here's the current code: string encrypt(string input, char key) { string ret; std::size_t size = input.size(); for(int i=0;i<size;i++) { ret += input[i] ^ key+i; } return ret; } string decrypt(string input, char key) { string ret; std::size_t size = input.size(); for(int i=0;i<size;i++) { ret += input[i] ^ key-i; } return ret; } int main() { ifstream ifile; ofstream ofile; string filename = "numbers.txt"; string content = ""; int answer = 0; cout << "Press 1 for encrypting or 2 for decrypting." << endl; cin >> answer; ifile.open(filename.c_str(), ios::binary); content.append((istreambuf_iterator<char>(ifile)), istreambuf_iterator<char>()); cout << "content: " << content << endl; cout << "content size: " << content.size() << endl; if (answer == 1) { content = encrypt(content,1); } else if (answer == 2) { content = decrypt(content,1); } cout << "crypt: " << content << endl; cout << "crypt size: " << content.size() << endl; ofile.open(filename.c_str()); if (ofile.is_open(), ios::binary) { ofile << content; ofile.close(); } return 0; } But by making both a encrypt and decrypt function, even the fox sentence fails. PS: It might sound like I'm using hexadecimal values, but it isn't. :)
  11. [C++] Xor encryption

    I tried to open the file in binary mode, but it didn't make much change. And I do work with one byte at a time, I just read the whole file first. The crypt function takes one character at a time and crypts it. And to be honest, I doubt I have to subtract the character by anything when I decrypt as the first sentence was decrypted as it should have. But regarding the control characters, I found some backspace characters and some other characters I don't even know what means. Can this be what causes the file's character decrease?
  12. [C++] Xor encryption

    I'm going to xor encrypt some files for my C++ game. Right now, I want to read some text from a file, encrypt it and then save the encrypted information to the same file. And when I run the program again, it should decrypt the file and give the original content of the file. string crypt(string input, char key) { string ret; std::size_t size = input.size(); for(int i=0;i<size;i++) { ret += input[i] ^ key+i; } return ret; } int main() { ifstream ifile; ofstream ofile; string content = ""; string filename = "fox.txt"; ifile.open(filename.c_str()); if (ifile.is_open()) { while (!ifile.eof()) { getline (ifile,content); } ifile.close(); ifile.clear(); } cout << "content: " << content << endl; cout << "content size: " << content.size() << endl; content = crypt(content,1); cout << "crypt: " << content << endl; cout << "crypt size: " << content.size() << endl; ofile.open(filename.c_str()); if (ofile.is_open()) { ofile << content; ofile.close(); } return 0; } The problem is that, when I encrypt a simple sentence everything goes alright. But when I try to encrypt the file which I am using in my game, it plays a lot of beep sounds and the total amount of characters in the file are decreased. I think the beep sound might come from the bell character, but I'm not sure. When I encrypt "The quick brown fox jumps over the lazy dog.", I get "Ujf$tsnkb*i~bya0w}k4czhj:tjxl?TIGHD\^MEL" and vice versa. But when I encrypt: Quote:02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 02 02 00 00 00 00 00 00 00 00 02 02 00 00 00 02 02 00 00 00 02 03 00 00 00 00 00 00 00 00 04 02 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 02 01 00 00 00 00 00 00 00 00 03 02 00 00 00 02 02 00 00 00 02 02 00 00 00 00 00 00 00 00 02 02 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 It gives: Quote:10#47&7:):9,=</ #2#&5&%8)(;,/>/ pqbstevwhyzk|}n`qbctefwhizkl}no@QRCTUFWXIZ[L]^O@ARCDUFEXIH[LM^O°¡²³¤µ¶§¸¹ª»¼­¾¿°¡¢³¤¥¶§¨¹ª«¼­®¿‘‚“”…–—ˆ™š‹œŽŸ€‘‚”…„—ˆ‰š‹ŒŽàñðãô÷æ÷øéúûìýþïàáòãäõæçøéêûìíþïÒÁÒÑÄÕÖÇØÙÊÛÜÍÞÝÐÁÀÓÄÅÖÇÈÙÊËÜÍÌß02"34%67(9:+<=.? 1"#4%&7():+(=.-  parsduvgxyj{|m~pabsdevghyjk|mnPQBSTEVUHYXK\]N_@QBCTEFWHIZKL]NO ±²£´µ¦·¸©º»¬½¾¯ ¡²£¤µ¦§¸©ª»¬­¾¯’‘„•”‡˜™Š›œžŸ‚“„…–‡ˆ™Š‹œŽŸðñâóôåö÷èùúëüýîÿàñâãôåæ÷èéúëìýîíÀÑÐÃÔÕÆ×ØÉÚÛÌÝÞÏÀÁÒÃÄÕÆÇØÉÊÛÌÍÞÏ0!23$56'89*;<->?0!"3$%6'(9*)<-,?  `qrctufwxiz{l}~o`arcdufexih{lm~oPARSDUTGXXJ[\M^_PABSDEVGHYJK\MN_°±¢³·¥¶µ¨¹º«¼½®¿ ±¢¡´¥¤·¨©º«¬½®¯€‘ƒ”—†—˜‰š›Œž€’ƒ„•†‡˜‰Š›ŒžòáòñäõöçøùêûüíþýðáàóäåöçèùêëüíîÿÐÑÂÓÔÅÖ×ÈÙÚËÜÝÎßÀÑÂÃÔÅÆ×ÈÉÚËÌÝÎÏ 12#45&78):9,=</ !2#$5&'8)*;,->/ pqbstevuhyxk|nbqbatedwhkzkn}nm@QPCTWFWZIZYL]\O@CRCFUFEXIH[LO^O²¡²±¤ And when I try to decrypt it again, it gives: Quote:vvjz~nzzfvjznnzjvfzzn~zjvvZJN^JJfvzj~~jzvfjj~njzvvjz~nzxfv öæúúîþúêööúêîþêêæöúêþþêúöæÊÊÞÎÊÚööêúþîúúæöêúîîúêöæúøîþøêöö fvxj~|jzvfjj~njzvvjz~nzzfvJZNNZJtfzxn~zjvvzjn~jhfvxj~~jzvf öõêúþîúúæöêúîîúêöæúúîþúêööÚÊÊÞÊÈæöúêþþêúöæ Which certainly isn't the same as it started with. I think the problem has something to do with the saving, loading or maybe the encoding as the first sentence works. Sorry for the long post, but I felt all this information was necessary. Thanks for helping.
  • Advertisement