Arcade Prehacks

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40
Like Tree3Likes

Thread: [GAME] Let's create

  1. #11
    Super Moderator ZuckeR's Avatar
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    1,775
    Work and other hobbies kept me occupied a bit from working on the game. I am a lazy guy that gets easily distracted Anyways, here is a little update.

    High numbers
    As the value of the hacks/clicks probably will go up to quite a high number i added a way to format high numbers neatly. It is fairly simple and works with an array of names which can be expanded if needed at some point. Right now numbers up to 10^75 are supported but can easily be added by simply including more names in the array.

    The game and the formatting function work with the Number type of AS3 which supports numbers as high as 1.79E+308 (IEEE-754, double-precision). It should be no problem to truncate the values with higher numbers as rounding errors will occur anyways.

    Have a look at the original commented code here:
    Code:
    private var _numberFormatter:NumberFormatter;
    private var _numberWords:Vector.<String> = Vector.<String>(["Billion", "Trillion", "Quadrillion", "Quintillion", "Sextillion", "Septillion", "Octillion", "Nonillion", "Decillion", "Undecillion", "Duodecillion", "Tredecillion", "Quattuordecillion", "Quindecillion", "Sexdecillion", "Septendecillion", "Octodecillion", "Novemdecillion", "Vigintillion", "Unvigintillion", "Duovigintillion", "Tresvigintillion", "Quattuorvigintillion"]);
    
    /**
     * Format a number as string with words for numbers higher than 999,999,999.
     * 
     * Delimiters are of the US english type "," and "." as decimal mark.
     * Names are taken from: http://en.wikipedia.org/wiki/Names_of_large_numbers
     * 
     * @param	val	The number to format.
     * @return	Formatted string.
     */
    static public function numberWords(val:Number, fractionalDigits:int = 0):String
    {
    	// Set amount of decimal digits
    	_numberFormatter.fractionalDigits = fractionalDigits;
    
    	// Format number to include delimiters.
    	var txt:String = _numberFormatter.formatNumber(val);
    
    	// Add words for numbers of 1,000,000,000 and higher.
    	if (txt.length >= 13)
    	{
    		// Calculate the words array position.
    		var i:int = Math.floor( (txt.length - 13) / 4 );
    		i = i < 0 ? 0 : i;
    
    		// Check if a word for that number is available.
    		if (i < _numberWords.length)
    		{
    			// Extract the first 5-7 digits including the delimiter (1,000 - 999,999)
    			txt = txt.substr(0, 5 + (txt.length - 13) % 4) + " " + _numberWords[i];
    
    			// Replace the delimiter with decimal mark.
    			txt = txt.replace(",", ".");
    		}
    	}
    
    	// Return formatted text.
    	return txt;
    }
    The first helpers
    They look like ugly boxes (which they are) but they do work as they are supposed to. You can buy them which multiplies their price by 1.15 and adds an amount to HpS (Hacks per Second). They need a better look and names and their values like price and income are not final.

    Can you? Come up with some ideas for names of helpers that would fit the games theme? What should they cost and how much would they increase the HpS? Tell me your ideas and we will see which ideas might get into the game.

    No graphics
    I haven't added any graphics besides the computer which is the main button. The game looks pretty lame right now as i was focusing on getting the game to work.

    Can you? Tell me what the game should look like? What colors should the game be in? Create some graphics for the background, helpers, main button. Even if you just create some sketches to show us how you would like the game to look like.


    Try the new version here: HackClicker-2014.03.14.swf

  2. #12
    Senior Member ChaoticCHAOS99's Avatar
    Join Date
    Feb 2014
    Location
    MY WORLD!
    Posts
    305
    eeerrmm right how about hax being a name for one of them hex, bare (as in hack bar) kay(AS IN KEY HACKS) ..........

  3. #13
    Junior Member M0RPHlNE's Avatar
    Join Date
    Mar 2014
    Posts
    2
    I love cookie clicker, lol. I need a life.

  4. #14
    Senior Member ChaoticCHAOS99's Avatar
    Join Date
    Feb 2014
    Location
    MY WORLD!
    Posts
    305
    Zucker hack clicker is not working for me!
    Last edited by ChaoticCHAOS99; 03-15-2014 at 03:43 PM.

  5. #15
    Senior Member moshimonsters1's Avatar
    Join Date
    Aug 2013
    Location
    ArCaDePreHaCkS
    Posts
    228
    I think there should be harmonious and contrasting colours. For example yellow and blue, red and green. Red and orange, blue and green.
    Last edited by moshimonsters1; 03-15-2014 at 03:52 PM.

  6. #16
    Super Moderator ZuckeR's Avatar
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    1,775
    Quote Originally Posted by ChaoticCHAOS99 View Post
    eeerrmm right how about hax being a name for one of them hex, bare (as in hack bar) kay(AS IN KEY HACKS) ..........
    I would not necessarily name them in this weird manner but we could actually use "Hack Bar" or "Key Hack".

    Quote Originally Posted by M0RPHlNE View Post
    I love cookie clicker, lol. I need a life.
    Yeah it can be quite a time waster, but that leads me to another question. Should such a game be more focused on the clicking or the helpers that let you idle.

    Quote Originally Posted by ChaoticCHAOS99 View Post
    Zucker hack clicker is not working for me!
    How is it not working? Does it do anything or not even load or what?

    Quote Originally Posted by moshimonsters1 View Post
    I think there should be harmonious and contrasting colours. For example yellow and blue, red and green. Red and orange, blue and green.
    Yeah, red/orange and blue are nice colors and complementary (orange and blue). You have to be careful with green and yellow, they can be hard on the eyes.

  7. #17
    Senior Member Capitano's Avatar
    Join Date
    Feb 2014
    Location
    Finland
    Posts
    255
    Wow, some pro game making conversation here!

  8. #18
    Senior Member ChaoticCHAOS99's Avatar
    Join Date
    Feb 2014
    Location
    MY WORLD!
    Posts
    305
    Quote Originally Posted by ZuckeR View Post
    How is it not working? Does it do anything or not even load or what?
    it doesn't load up the game when i try to download it!

  9. #19
    Super Moderator ZuckeR's Avatar
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    1,775
    Quote Originally Posted by ChaoticCHAOS99 View Post
    it doesn't load up the game when i try to download it!
    Well you have to download it to your computer. Then you just have to open the .swf file with your browser or use the stand-alone flash player. I just tried and the download seems to work fine for me.

  10. #20
    Junior Member
    Join Date
    Mar 2014
    Posts
    12
    good luck

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •