GithubHelp home page GithubHelp logo

henriqueutzig / c2048 Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 2.33 MB

A 2048 clone in C as a final project for INF01202 class at UFRGS

License: MIT License

Makefile 0.56% C 99.44%
raylib raylib-c 2048-clone c

c2048's Introduction

Screenshot

C2048 is a clone of 2048 made by Henrique Utzig and Pedro Klein as a final project for INF01202 at UFRGS.
The game is written in C using raylib and dracula theme color palette.

Installation

Make sure you already have build essentials installed.

    $ git clone https://github.com/henriqueutzig/C2048.git
    $ cd /C2048
    $ make

Linux

    $ ./C2048

Windows

    $ C2048.exe

Screenshots

Menu

Screenshot

Game

Screenshot

Leaderboard

Screenshot

Credits

Screenshot

c2048's People

Contributors

henriqueutzig avatar pedroklein avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

c2048's Issues

GameLogic

  • movement logics
    - [x] rotate90right
    - [ ] moveUp
    - [x] random card place
  • Refactor board matrix from int -> struct card pointer
  • board manipulation
  • score calculation

Load Game Button

The load game button shouldn't appear when the is no save game file

  • new Game button creates a new board
  • [ ]

Create a function to De-init everything

Now we have a de-init at the end of the main function and another in the case o the screenState being quit. We should make a single function that does all of that so we won't have duplicated code.

GameState struct

  • currentBoardState (struct BoardState)
  • oldBoardStates (struct BoardState[])
  • score (int)

Button

make a generic button so it can be reused anywhere

Credits Scene

credits scene with

  • A link to this repository
  • Ours github profile links
  • "Made for INF01202 at UFRGS"

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.