Skip to content

Commit 9cb6521

Browse files
committed
Updating ballz and AOE
1 parent 4bf82a2 commit 9cb6521

File tree

7 files changed

+44
-6
lines changed

7 files changed

+44
-6
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ img_cdn:
7676
avatar: assets/img/PP.png
7777

7878
# boolean type, the global switch for TOC in posts.
79-
toc: false
79+
toc: true
8080

8181
comments:
8282
active: # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable

_posts/2020-05-07-Balls.markdown

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,38 @@
22
Title: Ballz
33
date: 2020-05-07 03:05:43
44
categories: [Portfolio, C#]
5+
6+
image:
7+
path: /assets/img/Ballz.png
8+
alt: Ballz
59
---
10+
My attempt at making popular mobile game [Ballz](https://play.google.com/store/apps/details?id=com.ketchapp.ballz&hl=en&gl=US&pli=1). I have got the game to a state that I am happy with. It has a game loop with some cool visuals and audio. <br>
11+
![Ballz](/assets/img/Ballz.png){: width="300" height="800" .centre}
12+
13+
### Things that I am proud of in this project are:
14+
1. Creating the 'aiming' effect, the large red triangular thing, without any outside help. By that I mean I was able to do the math and the effect all by myself!
15+
2. Setting up the grid for the boxes and triangles, I went through a lot of iterations for this. It began with a list of all the objects and iterating through them to update their position. Then it moved to a much more intelligent grid system where each object is aware of its own position and where it will be moving in the next round.
16+
3. The cool bloom effects and the materials used by all the objects in the game I made. Which you can probably tell by how janky it looks haha. But it was a good first attempt using [Gimp](https://www.gimp.org/) as I have never called myself an artist:<br>
17+
![Box Emission](/assets/img/BoxEmissionMap.png){: width="246" height="200" .normal}
18+
![Triangle Emission](/assets/img/TriangleEmissionMap.png){: width="246" height="200" .normal}<br>
19+
I kind of like the effect of the triangle not being perfect.
20+
3. Used some simple inheritance for the spawnable objects. This made it easy to add the triangle which increased the total amount of balls.
21+
22+
### Some things I still want to improve upon:
23+
1. How the balls move once the hit the base.
24+
2. Displaying the 'balls to shoot' and 'returned balls'. It is very spammy and massively inaccurate.
25+
3. Add some background images to give the idea of progressing levels.
26+
4. Do more with the audio as the levels get higher.
27+
5. There is one issue I need to resolve: [Public Reviews #1](https://github.com/ConnorY97/Ballz/issues/1)
28+
29+
## You can play the game right now!
30+
<details><summary>Ballz</summary>
31+
<iframe frameborder="0" src="https://itch.io/embed-upload/10128126?color=333333" allowfullscreen="" width="800" height="740"><a href="https://connory97.itch.io/ballz">Play Ballz on itch.io</a></iframe>
32+
</details>
633

7-
My attempt at making popular mobile game [Ballz](https://play.google.com/store/apps/details?id=com.ketchapp.ballz&hl=en&gl=US&pli=1). I am also using it as my guinea pig for getting my GitHub build actions working. Which means the master branch is getting flooded with commits which have little to do with the actual game development.
34+
## GitHub Actions
35+
The cool thing that I was able to set up with this project was a GitHub action (following [game.ci](https://game.ci/)) to build the Unity project for me, then using another action to upload the build to to my Itch page (following [Creating a free build pipeline for Unity games using GitHub Actions](https://jaidengerig.medium.com/create-a-cd-pipeline-to-auto-publish-unity-games-from-github-to-itch-io-in-30-minutes-for-free-bae3b254283c))!
836

9-
The hope is to have a branch dedicated to build and development but that is still to come.
37+
The major advantage of this would be the ability to distribute test builds QA, testers or your audience without having to do much yourself. Although there is a lot in the set up. Once everything it done, it should continue to work without much up keep!
1038

11-
You should also be able to play the game here, recommended to play on Mobile: [Ballz](https://connory97.itch.io/ballz)
39+
Hopefully, I will be able to use this knowledge for a larger scale project in the future.

_posts/2024-03-10-Age-Of-Empires.markdown

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Title: Age Of Empires
33
date: 2024-03-09 09:00:00
44
categories: [Portfolio, C#]
5+
image:
6+
path: /assets/img/AOE.png
7+
alt: AOE
58
---
69
Working on creating a simple AOE clone!
710

@@ -14,9 +17,9 @@ Currently, I have two collectable resources that `Upgrade` the `Humans`. Wood al
1417
UI is a still a work in progress: <br>
1518
![AOE UI](/assets/img/AoeUI.png){: width="486" height="294" }
1619

17-
Things I am practicing:
20+
### Things I am practicing:
1821
1. Inheritance: I have the base [Resources](https://github.com/ConnorY97/AOE/blob/main/Assets/Scripts/Resource.cs) class which all interactable resources will inherit from. This is useful as I can put all the boilerplate code in the base class which all children will require. I have used this a few times, but never anything in depth.
19-
2. Object Orientated programming: I can confirm I am not doing this well. There is a bit of spaghetti code going on, but things are slightly modular. I am trying to look forward when implementing solutions. The best examples of this is the `ResourceUI`
22+
2. Object Orientated programming: I can confirm I am not doing this well. There is a bit of spaghetti code going on, but things are slightly modular. I am trying to look forward when implementing solutions. The best examples of this is the `ResourceUI`
2023
```c#
2124
public void IncrementResource(Dictionary<ResourceType, float> returnResources)
2225
{
@@ -60,6 +63,7 @@ public Resource Target
6063
```
6164
Here I can do error checking on the passed in value `if (value != null)` then followed by some code. This is very cool, I have never used this before and it has so far been super helpful.
6265

66+
### Issues
6367
I found an issue! Can you figure it out?
6468
```c#
6569
// Check again all the current existing resource positions
@@ -126,11 +130,17 @@ IEnumerator PlaceObjects()
126130
}
127131
```
128132

133+
### Fun Stuff
129134
The fun stuff that I did do today was create a `Tree` and `Rock` in Blender! It is a good first attempt, I can put a lot more detail into the trees and add some actual ore lumps in the rocks but they are good for now!
130135
<br>
131136
![Tree](/assets/img/tree.png){: width="243" height="147" .normal}
132137
![rock](/assets/img/rock.png){: width="246" height="200" .normal}
133138

139+
## GitHub Actions
140+
I set up a GitHub actions like I did for [Balls](/_posts/2020-05-07-Balls.markdown#github-actions). Which means that the game is being updated on the build branch and posted to itch IO here: [AOE](https://connory97.itch.io/aoe) or below!
141+
<details><summary>Age Of Empires</summary>
142+
<iframe frameborder="0" src="https://itch.io/embed-upload/10128116?color=333333" allowfullscreen="" width="1000" height="720"><a href="https://connory97.itch.io/aoe">Play AOE on itch.io</a></iframe>
143+
</details>
134144
<br>
135145
[Github](https://github.com/ConnorY97/AOE)
136146

assets/img/AOE.png

263 KB
Loading

assets/img/Ballz.png

222 KB
Loading

assets/img/BoxEmissionMap.png

14 KB
Loading

assets/img/TriangleEmissionMap.png

95.4 KB
Loading

0 commit comments

Comments
 (0)