Giter VIP home page Giter VIP logo

projet_l2_hornbeck_levy's Introduction

Projet_L2_Hornbeck_Levy

This is a game project for L2 info at Fac de Science de Vandoeuvre-lès-Nancy.

Help the Yellow stickman to punch all those Green stickmen. It's an arena/platform game.


-Menu: You can either use the mouse or the Up and Down arrowkey to choose buttons.
Press enter or click to press the button.
press escape to quit the game
-Control:
To run to the right --> press "Right" arrow key.
To run to the left <-- press "Left" arrow key.
To Jump press 'Up' arrow key
To Punch press "backspace"
To quit the arena and come back to menu press "Q"
To quit the game press escape or the quit button.


-Levels:
As you can see there is 8 files named "level#number.txt"
You can change them if you want.
But there is some important rules :
-All line begin with a "/"
no "/" in the file mean no level and the game end. A wall is a "1"
The hero is a "3"
An ennemy is a "7"
The ROOM_WIDTH is 135
The ROOM_HEIGHT is 90
if there is no wall you will end up to lose because you will fall after the bottom If there is no ennemy the level is won.
If you don't put a hero the hero is automatically placed at the middle
Dont fall under the bottom line or you die (this mean disappear from the bottom of the screen)


This game can't work on windows or mac yet.
If you need to compilate it, use the command "make" in the shell (on the right folder).

projet_l2_hornbeck_levy's People

Contributors

tameii avatar brandonhornbeck avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

projet_l2_hornbeck_levy's Issues

Memory Leak and Valgrind

The use of valgrind reveal some memory leaks:

==19423== HEAP SUMMARY:
==19423== in use at exit: 192,871 bytes in 1,241 blocks
==19423== total heap usage: 2,667 allocs, 1,426 frees, 5,958,287 bytes allocated
==19423==
==19423== LEAK SUMMARY:
==19423== definitely lost: 16 bytes in 1 blocks
==19423== indirectly lost: 176 bytes in 4 blocks
==19423== possibly lost: 0 bytes in 0 blocks
==19423== still reachable: 192,679 bytes in 1,236 blocks
==19423== suppressed: 0 bytes in 0 blocks
==19423== Rerun with --leak-check=full to see details of leaked memory
==19423==
==19423== For counts of detected and suppressed errors, rerun with: -v
==19423== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

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.