GithubHelp home page GithubHelp logo

ribana-b / so_long Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 594 KB

2D game where a player gathers collectibles to exit

Makefile 7.82% C 90.31% Shell 1.85% Berry 0.02%
2d-game 42 42cursus mlx42 so-long 42malaga c

so_long's Introduction

so_long

Description

So_long is a program that creates a 2D game. It is made from scratch with the help of MLX42.

It must have:

  • A player.
  • An exit.
  • At least one collectible.
  • Walls.

The goal is to gather every collectible to open the exit, which is initially closed.

Bonus

  • Add enemies, and the player loses when it touches any of them.
  • Add sprite animations.
  • Display the movement count on the screen.

Allowed Functions

Progress

If you want to check my progress as a student in 42 Málaga check out my main repository!

so_long's People

Contributors

srvariable avatar

Stargazers

 avatar

Watchers

 avatar

so_long's Issues

Bug when executing the program inside maps directory

The sprite path searching fails when the program is executed in the maps directory, leading to the error:

[ERROR] Invalid texture, I can't open it

It should be easy to fix, just use the same algorithm, but for argv[0] (program) instead of argv[1] (map) in this scenario.

Do bonus

  • Implement enemies that kills the player on collision. The character that represents the enemy could be N, for NPC, B for Boss or something else.
  • When the player "dies" implement a reset game, or just finish the game indicating that the player lost.
  • Implement the step counter on the left top corner.

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.