Skip to content

Commit 4929018

Browse files
committed
CX-games update
Moved game files to directories so games can run with single cx command `cx .\.` Made few asset path changes in snake game. Updated README.md Removed duplicate issues from `issues` folder
1 parent 2a28c54 commit 4929018

26 files changed

+18
-116
lines changed

Sky-Taxi/Makefile

-2
This file was deleted.

Sky-Taxi/README.md

+5-11
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ You can find more info on:
2222
- The github repo of CX - https://github.com/skycoin/cx
2323

2424
# Installation
25-
SKY TAXI supports [CX v0.7.0](https://github.com/skycoin/cx/releases/tag/v0.7.0).
25+
SKY TAXI supports [CX v0.7.1](https://github.com/skycoin/cx/releases/tag/v0.7.1).
2626
The binaries for CX are available at:
27-
- [linux-x64](https://github.com/skycoin/cx/releases/download/v0.7.0/cx-0.7.0-bin-linux-x64.zip)
28-
- [mac-os-x64](https://github.com/skycoin/cx/releases/download/v0.7.0/cx-0.7.0-bin-macos-x64.zip)
29-
- [windows-x64](https://github.com/skycoin/cx/releases/download/v0.7.0/cx-0.7.0-bin-windows-x64.zip)
27+
- [linux-x64](https://github.com/skycoin/cx/releases/download/v0.7.1/cx-0.7.1-bin-linux-x64.zip)
28+
- [mac-os-x64](https://github.com/skycoin/cx/releases/download/v0.7.1/cx-0.7.1-bin-macos-x64.zip)
29+
- [windows-x64](https://github.com/skycoin/cx/releases/download/v0.7.1/cx-0.7.1-bin-windows-x64.zip)
3030

3131
```sh
3232
$ git clone https://github.com/skycoin/cx-games.git
@@ -41,13 +41,7 @@ $ cd cx-games/Sky-Taxi
4141
The game should be ready to run.
4242

4343
# Running the game
44-
In Windows, type the following command:
45-
46-
```sh
47-
run
48-
```
49-
50-
For other operating systems, use:
44+
In order to run the game type the following command:
5145

5246
```sh
5347
cx ..\2DFWork\. .
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Sky-Taxi/run.bat

-13
This file was deleted.

SkyBOOM/Makefile

-2
This file was deleted.

SkyBOOM/README.md

+5-11
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ You can find more info on:
2323
- The github repo of CX - https://github.com/skycoin/cx
2424

2525
# Installation
26-
SKYBOOM supports [CX v0.7.0](https://github.com/skycoin/cx/releases/tag/v0.7.0).
26+
SKYBOOM supports [CX v0.7.0](https://github.com/skycoin/cx/releases/tag/v0.7.1).
2727
The binaries for CX are available at:
28-
- [linux-x64](https://github.com/skycoin/cx/releases/download/v0.7.0/cx-0.7.0-bin-linux-x64.zip)
29-
- [mac-os-x64](https://github.com/skycoin/cx/releases/download/v0.7.0/cx-0.7.0-bin-macos-x64.zip)
30-
- [windows-x64](https://github.com/skycoin/cx/releases/download/v0.7.0/cx-0.7.0-bin-windows-x64.zip)
28+
- [linux-x64](https://github.com/skycoin/cx/releases/download/v0.7.1/cx-0.7.1-bin-linux-x64.zip)
29+
- [mac-os-x64](https://github.com/skycoin/cx/releases/download/v0.7.1/cx-0.7.1-bin-macos-x64.zip)
30+
- [windows-x64](https://github.com/skycoin/cx/releases/download/v0.7.1/cx-0.7.1-bin-windows-x64.zip)
3131

3232
```sh
3333
$ git clone https://github.com/skycoin/cx-games.git
@@ -42,13 +42,7 @@ $ cd cx-games/SkyBOOM
4242
The game should be ready to run.
4343

4444
# Running the game
45-
In Windows, type the following command:
46-
47-
```sh
48-
run
49-
```
50-
51-
For other operating systems, use:
45+
In order to run the game type the following command:
5246

5347
```sh
5448
cx ..\2DFWork\. .
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

SkyBOOM/run.bat

-13
This file was deleted.

issues/179/179.cx

-6
This file was deleted.

issues/179/pkg.cx

-5
This file was deleted.

pacman/Makefile

-23
This file was deleted.

pacman/README.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,9 @@ The game should be ready to run.
3838
# Running the game
3939

4040
In order to run the game type the following command:
41-
### MacOS
4241

43-
```sh
44-
$ make
45-
```
46-
47-
### Windows
48-
Move pacman/pkg folders to %CXPATH%/src directory first
49-
50-
Run following command from Command Prompt while in cx-games/pacman directory
5142
```
52-
cx cmd/game-loop.cx cmd/init-and-input.cx cmd/render.cx cmd/time-and-space.cx internal/board.cx internal/ghost.cx internal/pac-man.cx
43+
cx .\.
5344
```
5445

5546
Use the arrows to move the player.
File renamed without changes.

snake/Makefile

-5
This file was deleted.

snake/README.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,8 @@ The game should be ready to run.
3636
# Running the game
3737
In order to run the game type the following command:
3838

39-
### Unix/MacOS
40-
```sh
41-
$ make
42-
```
43-
44-
### Windows
45-
First, move or copy ./internal folders to %CXPATH%/src
46-
Then, in order to run game, navigate to ./cmd folder and type the following command:
4739
```
48-
cx main.cx
40+
cx ./.
4941
```
5042

5143
Use the arrows to move the player and try to eat the food, while not eating yourself.

snake/cmd/main.cx

+6-6
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ func initTextures() (){
9090
var wd str
9191
wd = os.GetWorkingDirectory()
9292

93-
snakeHeadTex = gl.NewTexture(sprintf("%s../assets/textures/snake_new-head.png", wd))
94-
snakeBodyTex = gl.NewTexture(sprintf("%s../assets/textures/snake_new-body.png", wd))
95-
snakeTailTex = gl.NewTexture(sprintf("%s../assets/textures/snake-tail.png", wd))
96-
foodTex = gl.NewTexture(sprintf("%s../assets/textures/food-white.png", wd))
97-
backgroundTex = gl.NewTexture(sprintf("%s../assets/textures/background.png", wd))
93+
snakeHeadTex = gl.NewTexture(sprintf("%s/../assets/textures/snake_new-head.png", wd))
94+
snakeBodyTex = gl.NewTexture(sprintf("%s/../assets/textures/snake_new-body.png", wd))
95+
snakeTailTex = gl.NewTexture(sprintf("%s/../assets/textures/snake-tail.png", wd))
96+
foodTex = gl.NewTexture(sprintf("%s/../assets/textures/food-white.png", wd))
97+
backgroundTex = gl.NewTexture(sprintf("%s/../assets/textures/background.png", wd))
9898
}
9999

100100
func setupCellSpecs() (){
@@ -554,7 +554,7 @@ func checkForFood() {
554554
func initFonts() {
555555
var wd str
556556
wd = os.GetWorkingDirectory()
557-
fontFile := str.concat(wd, "../assets/fonts/roboto-light.ttf")
557+
fontFile := str.concat(wd, "/../assets/fonts/roboto-light.ttf")
558558

559559
var handle i32
560560
var closeHandle bool

0 commit comments

Comments
 (0)