Skip to content
hoduc edited this page Apr 10, 2017 · 27 revisions

CSV Parser:
-1: Empty Space
0: PowerUp
1: Gate, goes to mini game (Please only no more than 2 per level)
2: Shield
3: ATT Walker
4: Barrier (Only use in center lane)
5: Fire pit, snowball will catch on fire
6: TIE Fighter, flies above ground and shoots laser
7: Trump Boss (Only to be used for boss level)

'SETTING' explanation (sort-of)

Digest this ( excuse me for my lame photoshop[GIMP - dont have em $$$] skills ). Image from 1998 era. Just link me.

[+]Csv file format: each row is spawn_cycle(see GameSetting below ). away from the previous'.E.g : Row 5 spawn time is : 5 * 2(s) if spawn Cycle is every 2 seconds from start spawning time ( assuming it is 0 for now ). So after 10s the spawner will appear. Full time formula : Ti = t0 + row_i x spawn_cycle [English: The time that row i is in effect is the sum of start time and row_i x spawn_cycle. T0 = whatever the time when csv finished loading]. The number for each cell corresponds to the supported spawner( See images above ).

For ppl who have been thru 9x era(piratees who lack the extravagances of the MSExcel bands), use any text editor(or commandline ) type each row with values separated by comma. e.g : echo "left,center,right\n0,-1,-1\n,1,-1,1"(No trump sorry) >> test.csv

[+]Game Setting: This is our runtime behaviors control: EnableShake, EnableJump, EnableSound among others. The one most of us are interested in is : [Spawn Csv file] . Add reference to your csv here to drive the object spawning scheme. To create a Game Setting, right-click on anywhere [Preferrably under Assets/Setting] : Create > GameSetting.

[+]Setting: This is the object that holds and modify our GameSetting at runtime. To Test your setting straight from Running Scene, Drag your setting into [Default Game Setting] and click run.

Event -- 'Knock knock' who's there?

What's the deal with Event? I think it declutters codes. Think of this like this instead of having reference to other codes, you remind the system to call you back at the right moment. Instead of keep checking : "Hey. Is class at 2pm? Are we going to have an A?" you do : "Hey, Call me at 2:30pm reminding me to go to class"

(Right. 'coz I have elephant memory)

(The Protector. Abt Thai guy infiltrates elephant trafficking site to find his abducted elephant )

Here are couple events we have so far. I'm tired. Tmr. Think picture pretty self descriptive.

Note: To Register for event callback : EventManager.Instance.Event.AddListener(Function). Function must met with the Event signature.

--Collision Event

--Achievement Event

--End Game Event

Clone this wiki locally