Jump to content

  • Log In with Google      Sign In   
  • Create Account

kake_fisk

Member Since 23 May 2010
Offline Last Active Aug 03 2012 04:00 PM

Topics I've Started

Room Escape Game

03 August 2012 - 04:01 PM

Room Escape

Description:
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.

Screenshot:

Posted Image

Play:
Play Room Escape

Daff's Adventure 2 [Platform]

13 July 2011 - 04:21 PM

Posted Image


Daff's Adventure 2 is the prequel of Daff's Adventure. I'm entering the Riot Digital Tag-Team Competition with this game, so please consider voting for me if you like my game, it will help me much. You can also read about the game on my own website Sacred Water.

Description
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.

Screenshots
Posted Image Posted Image

Posted Image Posted Image

Platforms
  • Windows
  • Linux
  • Caanoo
  • Wiz (coming soon)

Download

Direct download (Windows)
Contest entries page


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 vote for me in the competition.
Thanks in advance.

Problem making a button in flash

19 December 2010 - 02:36 AM

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?

Bricked 2 [Puzzle] (Finished Game)

22 September 2010 - 06:21 AM

Title: Bricked 2

Description:
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.

New features:
  • Better graphic
  • Larger levels
  • More levels
  • New blocks
  • Unlockables
  • Level editor

Screenshot:
Posted Image

Download:
Download Bricked 2

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]

[C++] Xor encryption

23 May 2010 - 09:56 AM

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.

PARTNERS