Git Product home page Git Product logo

cs163-dictionary-group_2's Introduction

CS163-Dictionary-Group_2

Cấu trúc chương trình

  • data/ : nơi chứa các data

    • fonts/ : chứa fonts. Ví dụ: arial.ttf
    • images/ : chứa các ảnh
    • slang/ : chứa dataset Slang (các dataset còn lại sẽ update sau)
    • : các data còn lại
  • src/ : nơi chứa code

    • favouriteScreen/ : chứa code của favourite screen
    • mainScreen/ : chứa code của main screen
    • : chứa main.cpp, class Constant, class Application, và các class dùng chung (ưu tiên cho vào các folder nếu có thể)
  • Truy cập data từ data/ : dir là "data/..."

    • ví dụ: "data/images/black_arrow.png"
  • Truy cập thư mục cha: "../"

    • ví dụ: class Screen ở src/, class mainScreen ở src/mainScreen/, ta include Screen trong mainScreen bằng "../Screen.h"
    • có thể dùng "../" nhiều lần để nhảy về các folder cha của cha

Rule UI

  • Mỗi Screen cần có 3 hàm:
    • void handleEvent(const sf::Event& event);
      • để xử lý event
      • nếu cần tương tác với màn hình, dùng data của event
        • ví dụ: vị trí mouse ở event.mouseButton
    • void update();
      • để update các object sau khi xử lý tất cả event
    • void draw(sf::RenderTarget& target, sf::RenderStates states = sf::RenderStates::Default) const;
      • vẽ object ra màn hình
    • Ví dụ: image

cs163-dictionary-group_2's People

Contributors

lamanh-lavain avatar monarchuwu avatar pkkeo avatar sora1707 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.