PacMan CX is a simple 2D game powered by the CX programming language. This game is being developed with the following objectives:
- Demostrate the capabilities of CX
- Obtain feedback on the language
- Increase awareness for the Skycoin Project (developers of CX)
CX is a general purpose, interpreted and compiled programming language, with a very strict type system and a syntax similar to Golang's. CX provides a new programming paradigm based on the concept of affordances, where the user can ask the programming language at runtime what can be done with a CX object (functions, expressions, packages, etc.), and interactively or automatically choose one of the affordances to be applied.
You can find more info on:
- The github page on CX - https://github.com/skycoin/cx
- The official website of Skycoin - https://www.skycoin.net/
PacMan CX requires the latest version of CX to run.
Install the dependencies and devDependencies and start the server. After installing CX and all its dependencies clone this repository by running:
$ git clone https://github.com/galah4d/pacman-cx.git
Wait for the cloning process to finish and navigate to the cloned directory...
$ cd pacman-cx/
The game should be ready to run.
In order to run the game type the following command:
$ cx graphical2d.cx pac-man.cx
Use the arrows to move the player.
The code is currently very disorganized due to the fact that this was my first experience with CX and I had to play around some bugs. I will make sure to clean things up as soon as possible.
- Currently under development:
- Add teleport blocks (causes a game freezing bug when a ghost steps in there).
- Implement differnt ghost movement patterns. (Done)
- Add the support for multiple levels.
- Polish movement mechanics.
If you want to show your appreciation for my work fell free to send a contribution in Skycoin to the address below and/or dm me some kind words on telegram.
- Skycoin Address: vQxgd4Mq2eReLj3fhigSBGWmfNSMqQMoL3
Thank you Skycoin community!
I am not part of the team responsible for the development of the CX programming language neither do I claim some sort of affiliation with the Skycoin Project.