Wednesday, October 29, 2014

30th day after quiting my job - continue create character

Okay, so today just keep going create character


So i create some small hand with 3 finger

after 30 minute as below


UGLY UGLY LIKE SHIT

Ok, have to make up a bit now as below


Designing a new character head

Okay so I am now trying to build the character from scratch because previously the character is too ugly, so after 1 hour here is the progress

from a square box into


New thing I learn, CTRL - R (add new loop, then mouse scroll to add more), Scupture, W(smooth)

after another hour, it look as below


then after another 30 minute it look as below



29th day after quiting my job - calculate Income vs Expense

Okay, so it almost month end, so I can start clearing those bill


lets see

Expense:

Home bill:

$200 for parent
$500 for morgage
$40 for Cable TV
$70 for electricity
$60 for internet
$30 for mobilephone
$70 for insurance
==========
$970 for house bill

Offline Shop bill:

$50 for electricity
$12 for water
$500 for employee
$400 for rental
=============
$962 for offline shop
I owned 20% so is $192.4

food I estimate around $200
Transport I estimate around $100

so total expense for the month is $1462, give or take around $1500

Income:
offline shop: $100
ecommerce: $20
games: $2
youtube: $0.18
blog: $0.05

total around: $122.23

not even 10% of the expense





Tuesday, October 28, 2014

Blender how to create a character from scratch

So, I got comment saying my character in my game is UGLY..... well of coz, I am noob, not pro, but I will try my best to make my character look better, so I am trying to look for some tutorial to build my character from scratch,

below is one youtube tutorial I found that is very good, around 18 episode, each episode 30 minute


Monday, October 27, 2014

Create new game or improve existing game?

Well, there is always a time when you finished your game, you got 2 choice

1. create new game from scratch
2. improve your existing game

Since my existing game is not really fun yet, probably I will add more gameplay into it, including:

1. Happy indicator: where if you work overtime your happiness level will decrease, maybe if drop to -100 then you will suffer hyper depression and commit suicide

2. During overtime, maybe wife will calling
"honey, will you be home tonight?" [YES], [NO]
then maybe show wife happiness, if wife happiness drop to -100 then maybe
"Your wife leaving you " -30 happiness

3. add weekend?
- I am not sure about this, but probably will

(but on the other thought, when i am working OT and fast forward the speed by 160x, i do not like to be interrupted by those message box popping out and pausing the game)

28 day after quiting my day job

Nothing special today

still looking for idea what to do or what games to code

update
games:
- kongregate(1600 view, revenue $1.16)
-newgrounds(2700 view, revenue $0.45)

Seem like kongregate pay better even though newgrounds have more view

offline shop:
nothing

ecommerce:
nothing




income: 0 (cannot add in the game revenue unless i successfully cashed out)
expense: daily default USD60


Sunday, October 26, 2014

27th day after quiting my job

Okay , so today nothing special

update report

games
- submit on kongregate - get 1400 view (0 revenue) (report not yet update)
- submit on newgrounds - get 1700 view ($0.19 CPM, so total is around $0.26)

offline shop
- nothing

ecommerce
- nothing

youtube
- nothing

ebook
- nothing




income 0
expense: daily default USD60

Saturday, October 25, 2014

26th day after quit my job

Okay, so total planning is

1. game
- add mute button to the game and reupload to kongregate
- try make an iphone version
- think of new game to write

2. offline shop
- not doing anything

3. ecommerce
- research new product to sell


My First Games after quiting my job "Programmer 9-5 day job"

So after 25 days, I managed to finish my first game

"PROGRAMMER 9-5 day job"

where you have to work your way up from level 1 to level 10, I played it myself it took me 60 minutes but for new people it might take them longer

Here is the link

http://www.kongregate.com/games/fundurian/programmer-9-5-day-job





How I came up with the idea: Well, I notice there is no 9-5 day job simulation games on the market so I just try my luck to build one, seriously, business is more fun than the standard "9-5" day job, LOL

So there you have it, give it a try and let me know what you think

Marketing tactic I will try use
1. Spread my game using blog, this blog LOL
2. using reddit
3. using facebook

I will update the status including how many people actually played my game and what is their comment, so hopefully the experience can get me going further ahead.


Friday, October 24, 2014

25th day after quitting my job - PUBLISH MY FIRST GAME ON KONGREGATE

So today planning is

ecommerce:
- Beautify the product description, add more photo
- I got 2 interested user that asked tons and tons of question, but they refuse to buy due to no trust

programming
- I finish my game and publish it into kongregate, just wait for user to scold me

http://www.kongregate.com/games/fundurian/programmer-9-5-day-job



offline shop: not doing business today


income:0
expense: daily default USD60

24th day after quiting my job

Today update

offline shop: serve 18 customer making USD10.8

ecommerce: sold 1 item via FORUM 1 - made USD10

programming: did not touch today


income : USD20.8
expense: daily default USD60

Thursday, October 23, 2014

Thought about quiting job but not able to generate income

Okay, so almost 1 month have passed, and generally I am not successful in several business I tried to get in, but do I regret????? To be honest, a bit, but think of this way, if I would never try in my entire life? All I would do is just do the 9-5job(more like 7am to 9pm job due to traffic jam and stuff) all the way until age 70 when I retired, and I would have never try anything else, so even though I am not successful right now, at least I have tried, and I have gained some experience.......


so??? just continue trying until my last penny, then I will go back find a 9-5 job


summary of experience so far

youtube: learned how to build 3d cartoon, just not skillful enough to generate traffic and like
unity games: learned how to build unity games, just not fast and not skillful enough to finish it
offline shop: learned how to set up everything, just not able to get the permit and license from the local council, also not able to market it to make it profitable
ebay shop: learned how to import stuff from china, just not able to sell anything yet

So people would say I try too many stuff and not focus, yup, you are correct, I am too greedy and try too many stuff end up I am not focus, and seem like will fail in every ventures....But I will keep trying at least for 1 year

Wednesday, October 22, 2014

23th day after quiting my job - timetracker app rejected again by apple due to PIXELATED

Damn, seem like the only way is to redesign the entire thing if I really want my app out....

JEEZZZZZ


okay, update for the 3 things that i am doing

1. Offline shop
everything is ready but marketing suck, the only thing i do to promote my shop is using groupon and the profit generated by groupon traffic is just enough to cover the rental + electricity + staff salary leaving me ZERO profit

PLAN TO IMPROVE:
What I learned from this is, YOU NEED TO DO MARKETING....but how???? holyshit

today I got served one group of customer in 2 hour so earning is USD46, i owned 20% so is USD9.33

2. Ecommerce
FORUM 1 - 108 view 0 sale (got 1 query from customer but he did not buy)
FORUM 2 - 32 view 0 sale
EBAY CLONE 1 - 10 view 0 sale

PLAN TO IMPROVE:
I guess I will just reduce the price, or beautify the sales letter
- OR, try sell it on the street, damn...

3. Game programming
- APP REJECTED BY APPLE
-- I guess I will have to recode from scratch

Life programmer Game
- not yet finish, just try to finish it
below is today log

======================================================================

11th RUN
============
9:10pm

bug:
energy too long in STAT screen, need 2 digit(FIX)
promotion day extra one day, need decrease 1 day(DONE)
when first 3 level, you go next day, you should get the total work and work done reset, just don’t reset the performance point(FIX)

9:15pm
PROMOTED to level 2
I WAS DONE THE 80 dollar upgrade
not yet 160 upgrade,
so you need to prepare around 160 for me + 50, around 200


9:33pm
PROMOTED to level 3

bug: max increase speed unable to work(FIX)
9:39pm reach max work speed unable to work (FIX)


in level 3
on the last day my PER = 750, competition = 600




on the end of last 1103, money = 528 competition = 884 (SUGGEST 1200 )
suggest 400 per day so is 50 per hour




level 4 cannot say per captcha, need say per work




bug:
if too tired, auto sleep do not recover health(FIX)
team ranking mess up (FIX)
work done no give performance point(FIX)


in level 4
i have all max upgrade


12th RUN
============
TEST AT LEVEL 4, ALL MAX UPGRADE

11:16pm start with 10000 run level 4

bug:
employee asking to go home the remaining work is faulty
yes or no is infinite loop


13th RUN
============

bug: assign work did not reset on the next day(FIX)
manager did not go home after 5pm dunno why(FIX)

unable to win the game as the competition is too tough(will try again)

14th RUN
===========
END OF DAY 1, my team PER = 500 but competition is 886 (SUGGEST 600)75 per hour suggest
(FIX)

bug: if i work OT until the next day 9 am it did not reset the total work
(FIX)


15th RUN
=============
bug:

colleague did not contribute to work by minute basis
the 3rd colleague did not go home after 5pm


level 5:
end of 1 day, my team 250 other team 1250


calculation: if i am doing the work alone 8 hour can only do like 200
so 1 hour is around 30 work

so 1 minute is around 0.5 work

the colleague need to give like 0.5 0.5 0.5 0.5




16th run
=============

LEVEL 4 performance now is 1100, suggests you tweak competitor back to 1100

LEVEL 5 performance now is 1600 , suggest competitor around 1600

LEVEL 6 performance now is 2300, suggest competitor around 2500


17th run
==========
from beginning
11:14pm’

BUG:
say PER WORK, don’t PER CAPTCHA inside the stat screen(FIX)
go home button do not appear after 5pm(FIX)

11:20pm promote level 2 almost finish 1 day


18th run
===========
from beginning
11:24pm
11:31pm level2
11:33pm level2 end of first day

bug: promotion page showing 3 dollar per captcha, change it to work
bug: the CEO page must start with at least 2 internet advertising

11:36pm level3
11:39pm level3 day 2 end work overtime

11:42pm level4
11:49pm level5

11:56pm level6

12:04pm level7

12:11pm level8

12:18pm level9

12:28pm level 10 CEO

================================================================


4. Youtube
- Not doing anything at the moment

INCOME: USD9.33
EXPENSE: daily default USD60

Tuesday, October 21, 2014

22th day after quit my day job

Well, just as expected, I posted my ebay stuff on ebay, and 0 sales

damn.....


anyway, today plan

morning : post stuff on forum, code a little if can
afternoon: serve customer at offline shop
night: code

update:
ECOMMERCE
=================

FORUM 1 - 88 VIEW 0 BUY
FORUM 2- Just posted
EBAY CLONE1 - Just posted

OFFLINE SHOP:
==================
today serving 3 group of customer, make about USD65 but i only own 20% so is USD13


Games:
===================
still working, still working, suck ass

below is today log

8TH RUN
========
TEST THE EMPLOYEE FROM THE BEGINNING

LEVEL 1 TO LEVEL 6

5:12PM

5:15pm
still stuck at 2x faster speed upgrade
and also very poor no money

also when reach 5pm, the team asking can they go home, during first 3 level SHOULD NOT ASK


9TH RUN
========
5:20pm

5:25pm almost 14:00
few upgrade
if you work too tired and fall asleep the work counter still moving

5:26pm promoted to level 2

after promoted suddenly manager not coming anymore


10th RUN
=========
5:33pm cheat a bit start with 10 dollar

5:38pm promoted to level 2

bug:
when press upgrade button BACK work nap mess up, work suddenly faster
- if i press nap , work , then work suddenly slower
promotion day for level 2 should be 2 days


5:43 pm unable to go home, work overtime,
completed 80/80 but still lose to competition



INCOME: USD13
EXPENSE: daily default USD60




21 day after quit my day job, EBAY stuff arrived

Okay, after few weeks of long wait, the stuff I plan to sell on ebay arrived, of course I bought it from China , no doubt about that, where on earth can you find cheaper stuff right?

So the first thing to do is to post it on 3 forum and 2 ecommerce site and see what happen

result:

forum1: haven post, got 2 competitor
forum2: posted, 0 view, 0 customer
forum3: haven post, need preparation
ebay: haven post, need preparation
ebay clone 1: haven post need prepartion

I only bought 10 item from china, because I dont want the item in bad condition or being scam, so it is normal to order small quatity first, also I am not sure if I am able to sell any, if you would think doing business is easy, it is not , absolutely not

Okay, so the update as below

offline shop: pending license, business is not profitable
ebay stuff: item arrived, start posting ad
games programming: 1 app rejected by apple, another games still in progress
youtube: I did post 17 video but it bring around 1 sen per day if lucky, not many view, you can search for "Bitcoin Cartoon" , that is my channel, at first i thought people would like it, but they dont , so I would have to think of something else

Guess no one will read this "LOSER BLOG" everyone wanna read successful people blog who are able to earn tons and tons of money so that they can learn something from it

below is the programming DEBUG, AND TEST LOG
===================================
5th run
========
9:58 am

happy cannot more than 100(FIX)
after 50% increase work seem too easy without the need to OT
(no need OT still can have access of 34 hour)
(need increase workload)
if no work, everyone should just nap(don’t work) (FIX)
if increase speed, everyone should speed up (FIX)
money need longer length on the showgui=0 (FIX)
assign work screen assign work need longer (FIX)
need the x1000 button on the assign screen (FIX)
money and work speed too powerful
reputation increase way too much like 71000 while competition only 28000
if employee nap, should increase happy by +1 per hour(FIX)
maybe intro game speed x 160 up to you


10:09 am (promoted to level 8)


10:17 am (promoted to level 9)





OKAY, BALANCING
===================
BY DEFAULT 1 HOUR = 0.5*60 + 0.5*60 + 0.3*60
                  = 30 + 30 + 18
                  = 80 work per hour

MONEY = $80 per hour


UPGRADING work speed 50% then become 120 work per hour $500
UPGRADING work speed 100% then become 160              $1000
UPGRADING work speed 200% then become 240              $2000
UPGRADING work speed 300% then become 320              $4000
UPGRADING work speed 400% then become 400              $8000
UPGRADING work speed 500% then become 480              $16000
UPGRADING work speed 600% then become 560              $32000
UPGRADING work speed 700% then become 640              $64000
UPGRADING work speed 800% then become 720              $128000
UPGRADING work speed 900% then become 800              $256000
UPGRADING work speed 1000% then become 880              $500000



UPGRADING money 100% then become 160    $5000
UPGRADING money 200% then become 240    $10000
UPGRADING money 300% then become 320    $20000
UPGRADING money 500% then become 480    $40000
UPGRADING money 700% then become 640    $80000

UPGRADING workspeed x40  $2000
UPGRADING workspeed x80  $10000
UPGRADING workspeed x160 $50000


MEGA PROJECT   100000 work 528 hour (22 working day) suggest 250000
BIG PROJECT     12500 work 264 hour (15 working day)suggest 50000
MEDIUM PROJECT   2500 work 100 hour (4 working day) suggest 10000
SMALL PROJECT     500 work  10 hour (1 working day)


First days:
after 10 hour of work = 800 work + $800

UPGRADE 50% work speed (left $300)
work = 120 , money = 120 per hour
work = 1200, money = 1200 per day
end of day: $1500 , 2000 work


in 2nd days:

UPGRADE 100% work speed ($1500 - $1000 = $500 left)
work = 160, money = 160 per hour
work = 1600 per day money = 1600 per day
end of day: $2100 , 3600 work

in 3rd days:

UPGRADE 200% work speed ($2100-$2000= $100 left)
work = 240, money = 240 per hour
work = 2400 per day money = 2400 per day
end of day: $2500 , 6000 work

in 4th days:

work = 240, money = 240 per hour
work = 2400 per day money = 2400 per day
end of day: $4900 , 8400 work

in 5th days:

UPGRADE MONEY ($0 left)
work = 240, money = 480 per hour
work = 2400 per day money = 4800 per day
end of day: $4800, 10800 work

(ALREADY MAKE 40K REPUTATION) in 5 days
competitor work 8 hour per day
so they work 40 hour per day

40000/40 = 1000

in 6th days:




assume we max out all upgrade
say :

BY DEFAULT 1 HOUR = 0.5*60 + 0.5*60 + 0.3*60 + 0.15 *60 + 0.6*60
                  = 30 + 30 + 18 + 9 + 36
                  = 123 work per hour

max out: 1230 work per hour, 1230 money per hour

max out money 1230 * 8 = $10,000 per hour

one day = 10k work no OT, $80,000 per day

max project day = 220,000 work no OT



total work 250000 , success 1 million, failure 200k
total work 50k, success 170k, failure 34k
total work 10k, success 30k, failure 6k
total work 500, success 1000, failure 200


6th RUN
========
5:27pm start


you need to display happy at the GIFT PAGE(FIX)
why employee sleep one hour no increase happy?(FIX)
check why not able to decrease assign hour?
last level promotion day too far.. still got 9 days suck
the bribe CEO, need to give more PER, say i wanna buy at
10k per PER, (FIX)
really need skip the day button to avoid boring at level 9(FIX)


5:32 pm
finish first medium project in DAY 5
40000 reputation point
competitor 33000 point
upgrade at increase work speed by 300%(NEXT ONE NEED 8k)
upgrade at increase money by 100%(NEXT ONE NEED 10k)

5:37pm
finish second medium project in DAY 8
80000 reputation point
competitor 55000 point
upgrade at increase work speed by 400%(NEXT ONE NEED 16k)
upgrade at increase money by 200%(NEXT ONE NEED 20k)

5:39pm
PROMOTED TO LEVEL 8

5:46pm
finish first big project
220k reputation point
competitor 273k reputation point
(next promotion in 6 days)
upgrade at increase work speed by 600%(NEXT ONE NEED 64k)
upgrade at increase money by 600%(NEXT ONE NEED 80k)

5:53pm
PROMOTED TO LEVEL 9

6pm
FAIL TO DELIVER MEGA PROJECT
UNABLE TO CONT…

NEXT PROMOTION DAY in 9 days

competitor have 2.6 million PER
my team only 82000 + 1.2 million PER
no way man


7th run
========
team happy can buy unlimited, we need to limit to max 100



NOW WE HAVE TO TEST THE FIRST 6 LEVEL STARTING FROM SCRATCH









income: 0
expense: daily default USD60

Monday, October 20, 2014

20th day after quitting my day job

Okay, i am rushing my game

I think i put in all the code , just i haven test it out thoroughly

so will test out and fix

now 7pm, so will test it for 5 hour till midnight

below is the test and fix log


- first test run,
UNABLE to finish 8 days
UNABLE to see success promote or not


- second test run,
UNABLE to finish 8 days
UNABLE to see success promote or not
the promotion day count did not deduct properly if no go home

2500 work in 50 hour impossible because

i can only work 78 work per hour

2500/78 = 32 hour but happiness is less than 50

no need sleep?




add upgrade speed upgrade
original give 20x

upgrade to 40x , 80x

might need another upgrade, let user doubling money


-third test run


can only make $100 per day
- must allow money upgrade (FIX)
- gift deduct wrong money(FIX)

- promotion page should say 2 dollar per work, not captcha(FIX)
- third employee still 20,20 add like that(FIX)
- after including happy seem like cannot complete little project


third run able to get promotion once to level 8 , not able to complete little project ever since


fourth test run
================

work speed upgrade not fix(FIX)
- if you go home sleep, the due date did not deduct(FIX)






Okay, thats all for today, tomolo will do another few set of test run


income: 0
expense: daily default USD60

Sunday, October 19, 2014

19th day after quiting my job

morning code a little

afternoon serve 10 customer at my offline shop and made USD130, i owned 20% so i only take USD26, i serve them like 4 hours


night, will continue to code a little

wow, everyday I cannot amaze by the fact that, when I am not working a full time job, time really fly, it does fly, very very fast, fly so fast damn, I hope I am rich, but I am not, so it is not a good thing as the faster the time fly, the faster I see my bank account shrink to nothing

income: USD26
expense: daily default USD60

Saturday, October 18, 2014

18th day after quit my day job

Okay time really fly and programming progress is slow

i will attach two screenshot today

one is manager level screenshot



one is CEO level screenshot

Thursday, October 16, 2014

17th day after quiting my job

Well, nothing special

morning code
afternoon code
night code

income: USD0.7 (from one android game i wrote 5 years ago)
expense: daily default USD60

Wednesday, October 15, 2014

16th day after quit my job

Wow, time really fly

today plan

morning: call water department to fix the water at my offline shop
- the water tab been stolen and no water can pass
--(update) damn the water department, did not come fix, all toilet cannot be flushed

afternoon: code

night : code


ebay stuff: not yet arrived, sigh
offline shop: no license, no water, no customer, sigh
programming: not yet finish, sigh
condo: need to rent out for some money
car: need to sell for some money


income: 0
expense: daily default USD60

Tuesday, October 14, 2014

15th day after quit my day job: App get rejected by apple due to Blurry and Pixelated

So today morning I received email from apple saying my "Timetracker" app is rejected due to

----- 10.6 -----

We found several screens of your app were crowded and/or laid out in a way that made it difficult to use your app or complete tasks within your app.

Specifically, the app is blurry and pixelated. The app also has overlapping text. 


Well, for me it is acceptable but for them, they think it is blurry????

Okay, guess I will have to redo the screenshot, and set to "Landscape" only and try again

sigh......


Monday, October 13, 2014

14th day after quit my day job

Wow, time is flying, now is already 2 week passes

this morning go airport

today planning is afternoon code, night code

Okay, now i finish code 6 level of the programmer life, but i haven tested it, i just simply code it

now the next 3 level is tricky, because now is the manager level, I haven figured out how to make the manager level fun,

lets brainstorm:

okay, below is the screenshot for the manager level, so I want him to have his own room



income:0
expense: daily default USD60

Sunday, October 12, 2014

13th day after quit my job

Okay, today wake up 9:30am,

today planning

ebay stuff: waiting stock
offline shop: waiting license officer, serve customer at night
property: call agent
programming: code code code morning, afternoon

update for programming
1. need to build another 2 head in blender(ADDED)
2. after level 3, need to have at least 4 person on the room(ADDED)
3. competitor did not improve when level increase(ADDED)
4. subordinate ask to go home if 5pm(ADDED)
5. each subordinate if cannot finish work will ask permission to go home(ADDED)
6. subordinate work OT(ADDED)
7. subordinate work contribute to total work(ADDED)


(haven fix)
8. promotion day all is only 1 day
9. if you force them too badly they will go hospital for a day

at night got serve 8 customer with the spending of  USD46 my share is 20% which is USD9.2

income: USD9.2
expense: daily default USD60


12th day after quiting my job

Okay, so today morning go run a marathon, so a bit tired , will code later, my stamina is not good, for a 10km run, it took me 110 minute, meaning i am walking at 5.1km/h , almost 2 hour for 10km meanwhile the kenya winner is running at 20km/h and finish the marathon 42km in 2 hour 18 minutes

summary for today:
1. ebay stuff: item not yet arrived
2. offline shop: license not yet settled
3. programming


today coding
1. gift button not yet build anything(FIX)
2. total work did not increase when level increase(FIX)
3. after level 3, need a button “ASSIGN WORK”(added)
4. “assign work” screen(added)


5. competitor did not improve when level increase
6. after level 3, there is nothing new to the table
7. after level 3, need to have at least 4 person on the room

income: 0
expense: daily default USD60

Saturday, October 11, 2014

11th day after quiting my job

Nothing special, saturday morning, wake up late 11am, now rushing to fix the bug i found as below



bug

1. buy the game speed do not deduct money (FIX)
2. game speed can up to 10x immediately (FIX)
3. ranking not display immediately (FIX)
4. unable to upgrade 3x speed(FIX)
5. random the work done for other employee(FIX)
6. work overtime, after click-> game speed become 0(FIX)
7. when working overtime, colleague did not go home(FIX)
8. increase the number of employee(FIX)
9. If you OT until the next day morning, you cannot get the promotion(FIX)
10. the ranking is incorrect(FIX)
11. upgrade button when max you should say max(FIX)
12. if you OT until the next day morning 9am, the colleague and manager do not come back(FIX)
13. If you OT at night, you cannot go home sleep(FIX)
14. if you don’t go home sleep, happy did not minus(FIX)
15. promotion still 1 day(FIX)
16. promotion still level 2 only(FIX)



17. gift button not yet build anything
18. total work did not increase when level increase
19. competitor did not improve when level increase



everytime checking will find at least 10 bug, so fixing on the way

offline shop- 0 customer
ebay shop - product not yet arrived

income 0
expense: daily default USD60 + USD25 for voucher printing for advertisement


and some screenshot to show today

Thursday, October 9, 2014

Unity easiest sort algorithm

So I am using selection sort , the easiest among all, if the item you want to sort is little, let say 10 item, then you can use the below sort, it will loop N x N, so if you have 3 item, it will loop 3x3 = 9, if you have 10 item, it will loop, 10x10 = 100





//ranking say john 80 , peter 70 , you 60
//so ranking[0] = 80ranking[1] = 70 , ranking[2] = 60
//rankingname[0] = Johnrankingname[1] = Peterrankingname[2]= you
var ranking = new int [3];
var rankingtemp:int;

var rankingname = new String[3];
var rankingnametempString;

//for for loop
var i : int;
var j : int;
var iMinint;
//number of people in the ranking
var nint = 3;


function sortranking()
{

    //selection sort
    
    for (j = 0j < n-1j++) 
    {
    /* find the min element in the unsorted a[j .. n-1*/
 
    /* assume the min is the first element */
        iMin = j;
    /* test against elements after j to find the smallest */
        for ( i = j+1i < ni++) 
        {
            /* if this element is lessthen it is the new minimum */  
            if (ranking[i] < ranking[iMin]) 
            {
                /* found new minimumremember its index */
                iMin = i;
            }
        }
 
        if(iMin != j
        {
            //swap(ranking[j], ranking[iMin]);
            rankingtemp=ranking[j];
            ranking[j]=ranking[iMin];
            ranking[iMin]=rankingtemp;
            
            rankingnametemp=rankingname[j];
            rankingname[j]=rankingname[iMin];
            rankingname[iMin]=rankingnametemp;
        }
 
    }
}

10th day after quit my day job

Ok, I am starting to lose a bit of focus, I need to focus and faster complete my game, then i can release and see how many download i can get

game programming update

I plan to do 4 scene

1. Programmer 3 level
- only finish the first level, not completed

2. Team lead 3 level
- not yet

3. Manager 3 level
- not yet

4. CEO 1 level
- not yet


okay a bit of update for today schedule

morning: go renew the car road tax, paid USD150
afternoon: go take the marathon shirt and code a little
night: go serving 2 offline customer and earn USD1, go home and code a little

income: USD1
expense: daily default USD60 + ROAD TAX USD150

T.T


Wednesday, October 8, 2014

9th day after quit my day job

morning - try settle license issue for offline shop

- for those who didnt know, if you want to open an offline shop, the license and legal stuff is very hard to settle, the officer want to check check check and want you to provide tons and tons of legal document that is very hard to come by, so today i submit again, and he say will come check my shop in one week time to see approve or reject, this is the 4th time i tried, the first 3 time i get rejected for various reason. it is very frustrating


afternoon - code

night - code


Tuesday, October 7, 2014

8th day after quiting my job

Okay, so today main task is

1. design flyer
2. serve customer
3. code game


design flyer
- my offline business is almost 0 customer due to groupon have too many merchant and people cannot see my offer so need to design flyer to give away and spread the news.

serve customer
- today have 1 customer booking so need to serve them later(done)
total profit is USD7.5 but i only own 20% so is only USD1.50 and i spend like 3 hour serving them
sigh....

code game
- need to brainstorm the idea detail from start to finish then code as fast as possible
- normally, i would not share my game idea here before the game is finish to prevent people stealing the idea, but after thinking a while, this game is absolutely suck, not only it is boring like hell, there is absolutely 0 way to monetise, if you steal it, good luck , LOL

so I am not able to start coding before i get the idea down
so i want the programmer to have 10 level to progress starting from level1

level1-3 (normal programmer)
- so he work , nap, work , nap

level 4-6 (team lead programmer)
- so he work, assign work, nap

level 7-9 (manager)
- so he check employee, assign work,

level 10 CEO
- so he need to manage advertisement, hire and fire employee, kick out the chairman





Monday, October 6, 2014

7th day after quit my job

Ok, one week have pass, seem like the progress is not good

the game i plan to code i totally have 0 idea how to make it fun, but i already code it halfway, so even if the game is absolutely suck and not fun i think i have to complete it, i cannot just halfway abandon it, if i do like that, then everything will be halfway abandon

today objective is just 2

1. find a place to print my discount voucher for the offline shop
2. finish code my stupid game

about game idea
============
I have never thought that inventing game is so freaking hard, it is so different from playing game, the idea that make it fun is sooooooooooo freaking hard that it almost explode my brain,

okay, lets get through it, my game is about programmer life

so the stupid programmer will code whole day, 4 button to press "work , nap, gift, upgrade"

so he work nap work nap, then promoted, then work nap work nap gift gift promoted

then upgrade upgrade work nap work nap work nap gift gift promoted

end of story

just finish it and dont care if it is boring

Sunday, October 5, 2014

6th day after quit my job

Okay, so today planning as below

11am to 12pm think of what to code

1pm to 6pm - work on offline shop
- ok, i just back from offline shop, total sale is 3 group of customer, their total spending is USD54.666, but i only have 20% which is USD10.93
- today hire an employee, so lets recalculate the monthly cost of the offline shop
- rental USD433.33 + 1 employee USD450 + electric around USD100 so total is USD983
i own 20% so is around USD200 per month, per day is USD6.55


7pm to 9pm - coding

9pm to 10pm - offline shop

11pm to midnight - coding

income: USD 10.93
daily default expense: USD60

Coding plan
==========
Okay, so i want to finish my first game "programmer life" i am not sure if this is a good idea seem like it is an extremely extremely boring stupid game

so i will make a programmer over there work like hell, then player can press "work, sleep", then once the work bar if finish , the programmer get a dollar salary
then when 5pm, the programmer got a choice between go home sleep or continue working

I just dunno what to do, BORING!!!!!!

but i need to finish it anyway, just make it simple stupid

so the next step is ??????

Hmmm, maybe i let the blog reader see some screenshot so that maybe, just maybe, someone can tell me how to make the game fun to play, so below is the screnshot for you to see, enjoy








5th day after quit my day job


Okay, so today i wake up late around 12 noon, becoz i was working on my offline retail shop till 3am yesterday, I was promoting my shop using groupon, and so far got 12 sale, the first sale will come today at 9pm, so later i will need to cater for the sale

spending on the offline shop so far
renovation USD28,000
but I only own 20%, so total spend is USD5600


the monthly cost of the offline shop is around USD1500, but since i only own 20%, so my monthly cost for the shop is USD300

we need around 100 sales per month to break even, so it is a very tough business


since i need to update this blog on daily basis, so i better break down all expense per day

normally my monthly expense is around USD1500

offline shop around USD300,
so total monthly spending is around USD1800, if divide by 30 days, so is USD60 per day


just now 8pm to 2am i am serving one group of customer at my offline shop, their total spending is USD74.666
but i only own 20% so is only USD14.8
so can say is 6 hour of work for USD14.8


income for today: USD14.8
expense for today: USD60

now is 3am, i cant think of anything, just go to sleep

Saturday, October 4, 2014

4th day After quiting my job, Publish "timetracker" app for review

Okay, so today i got some event to go out from morning to evening, so i am not doing anything productive,

i reedit my "time tracker" app and republish

(check back 10 August 2014 post on how to publish)

nothing special for today

income: 0
expense: USD20(breakfast, lunch and dinner)


Thursday, October 2, 2014

3rd day after quit my day job

Ok time now is 10:14am, i woke up late due to yesterday night i code till 2am

today planning

morning: beautify my app
afternoon: 3:30pm fix and service car
night: prepare offline shop


ok, so I need to focus on 3 thing to bring some income
1. iphone app
2. ebay store
3. offline shop

update:
iphone app
=========
so I finish my app"timetracker" and submit to ios approval so hopefully within 7 days can be up, I am selling for 0.99 each, expectation is not much, I am 6 years late into the iphone market so I really dont know what to expect

the next stop is to code a new game "life as a programmer" a stupidly boring game, hopefully someone can enjoy


ebay store
========
ok, i have eye on some product i want to sell, so I will buy 20 unit from the wholesaler and try to sell it first

offline shop
=========
ok, for this, i have put my ad on groupon, groupon will take 50% , but to put on groupon you need to give your customer 50% discount

say : discount 50%, only 50% left
groupon take 50%, only 25% left

so to make money you make sure your stuff is cheaper than 25% of the original selling price, say example,
if your product original selling price is $100,
for each item sold in groupon you only get $25, so you make sure your item is cheaper than $25 to make a little profit

so far groupon up for few hour and 0 sale, oh well....darn





income: 0
expense: USD100 (fix and service car)
               USD5 (food)


Unity ongui all image become square and unable to stretch?

While i was programming with unity, suddenly all my image become square and unable to stretch on the ongui label, the solution is click on each of your image, on the right hand side, change the Texture type to "GUI"

Blender tutorial on how to build a clock

Okay, so I need to build an icon for my app, so i need to build a clock

below is the tutorial i found on youtube , i follow step by step



after going through the tutorial, below is my work 

not as good as the tutorial, but i will take it


Wednesday, October 1, 2014

Unity how to save and load game

Say if you want to save and load game you do as below,
let say you have 2 variable, 1 is the arraytimer1 (an array containing float), another variable is a String variable Category1, so first you create two function as below.
Do note by default you can only use PlayerPrefs but if you want to use PlayerPrefsX you need to create a new java script "PlayerPrefsX.js" and you copy paste the code from http://wiki.unity3d.com/index.php/ArrayPrefs2

function saveall()
{

        PlayerPrefsX.SetFloatArray("arraytimer1",arraytimer1);
        PlayerPrefs.SetString("Category1",Category1);
        

}
function loadall()
{

        arraytimer1PlayerPrefsX.GetFloatArray("arraytimer1");

        Category1 = PlayerPrefs.GetString("Category1");
}


To call the function, I would recommend you put the loadall in the function start, meaning when you start your app, it will load all the data into your game, and you only save your game when your application quit , so you put the saveall() in your function OnAPplicationQuit()

function Start () 
{

    loadall();

}

function OnApplicationQuit() 
{
    saveall();
}

Second Day after Quit my job

Ok, so today I wake up a little late, time now is 9:56am

today plan is as below

1. apply internet service for the offline retail shop i have
2. code the iphone app
- finish the saving feature(done)
- beautify the title and word(done)
- test , test, and test to make sure no bug or error(done)
- publish it if can (50%)

3. research what to sell online
- should i build my website then advertise using google adword?
- should i sell on ebay?
- what kind of item i can sell on ebay?

income for today: 0
expense for today: USD300( paying 2 credit card)

my account balance is running very low only USD2500 left, I might need to sell stock soon to get some money to cover the bill

today i work until 2am and still not manage to publish my app, tomorrow I will try to improve the app a bit and publish