sunpochin

Listing new CSS properties introduced in every lecture.

Learn the CSS Box Model by Building a Rothko painting

  • overflow: hidden;
  • filter: blur(2px);
  • transform: rotate(-0.6deg);

Learn CSS Flexbox by Building a Photo Gallery

  • box-sizing: border-box;
  • flex-direction: row;
  • flex-wrap: wrap;
  • justify-content: center;
  • align-items: center;
  • object-fit: cover;
  • media query:

--

--

這篇有幾個字打錯了,而且每一行前面的 $ 有點妨礙 copy & paste, 所以我把指令謄寫在這邊。

1.

2. install dependency

sudo apt-get install g++ libgdk-pixbuf2.0-dev python-pip cmake libx11-dev libxmu-dev libglu1-mesa-dev libgl2ps-dev libxi-dev libzip-dev libpng-dev libcurl4-gnutls-dev libfontconfig1-dev libsqlite3-dev libglew-dev libssl-dev libgtk-3-dev libglfw3 libglfw3-dev xorg-dev

Make cocos.

cd ~/cocos2d-x-3.17.2/build
mkdir linux-build && cd linux-build
cmake ../..
make -j4

3. 更新 libglfw3

apt-get purge libglfw3 libglfw3-devgit clone https://github.com/glfw/glfw 
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd /usr/local/lib
sudo ln -s libglfw3.a libglfw.a
sudo ldconfig

# test

cd ~/cocos2d-x-3.17.2/external/linux-specific/fmod/prebuilt/64-bit 
rm *.so.6
ln -s libfmodL.so libfmodL.so.6
ln -s libfmod.so libfmod.so.6

--

--