Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Zyangur

9
Posts
1
Topics
23
Followers
A member registered Dec 18, 2015 · View creator page →

Creator of

Recent community posts

Thanks for the feedback Vallar!

(10 edits)

I was thinking about how I wanted to go about the beginning, however I was having some trouble. I made a game for Ludum Dare 29 and I had each screen/level be it's own class. It wasn't bad, but it was pretty bad. My problem was that I didn't really know how to have different events and such occurring in each screen without having each screen have its own class to keep track of stuff. I still don't really know, but I thought of a guy I watch livestream a bunch, and thought maybe I could write a small "scripting"? (don't know if that's the right word) system in order to keep track of objectives that need to be complete and such, without having to have classes for each Screen.

I don't know if it was a good idea, but it ended up working and I'm pretty happy, and it didn't take too long to get it working basically. Even if it wasn't the best way to do it, I still learned quite a bit. This is how it works:

1. I have an Interactable class and a text file named "Interact.txt". My Interact file contains a list of Interactable names. Tabbed in under each item name are some instructions, ended with the word 'end'. What I have so far looks like this:

Interact.txt

Print does what it says, it prints it to the console. I also have it working so that it prints to a line of text above the player's head. complete(ship) means that the objective should be marked complete in the ship Task. Each Task has a name and a list of interactables that need to be interacted with before it is complete. The task file looks like this:

toilet, ship_plants, and ship_food are all interactables. As they are interacted with, they are marked off as true. Each one needs to be true for the task to be completed. Finally, I have a basic if statement built in. if done(ship) means that if the ship task is completed, then the player prints "Time to sleep" and otherwise it prints "I'm not tired yet". This ensures that the player visits each item before going back to bed.

Next, when I create my tile map I have a new layer called Interact, and I put rectangle objects in there, and give them names based off of the names in the Interact file. For example, I put a box around the toilet, and gave it a name toilet. In code, the map loader recognizes that, finds the script associated with the name toilet in the file, and sets it up.

Then the task manager loads all the tasks (right now it is just ship) and sets each interactable as a thing that needs to be completed.

While this is pretty cool (to me) it's not useful yet. I can't really do anything. What I would like to do is be able to continue the story from the script. The player is going to be kidnapped by aliens, however I would like to be able to trigger that through the script. I think I could do this by having a Scene class, and then I can have a command setscene(scene) or something like that that would change the scene, loads whatever map, etc. I could keep the scenes in a text file too, in a similar way.

Here's a gif, I'm having trouble putting it in my post: http://i.imgur.com/OYdyhI1.gifv

I decided to start working on the beginning of the game. I created the controls, made some sprites, and finally made it so I could load levels from a tile map. Right now, it just loads the player spawn and also creates walls. Here's the player in his space ship!

Player Shooting

(1 edit)

My Wifi on my laptop isn't working so I've been copying the code to my desktop then pushing it to github, however the commits are getting all messed up.

Anyways, today I did a little bit more control stuff, then started worked on entity AI, and making my code more reusable for different entities. I've never really done much AI before, so it's going to be an adventure for me! Here's a little gif, sorry for the bad quality.

Same here! Good luck with your game!

(7 edits)

I worked for a while today and refined my controls. I also added tile map rendering and also the ability to shoot and kill enemies. I didn't really do too much work on art so the guys are probably placeholders. Same with the background.

Player Shooting

(1 edit)

I didn't work over the weekend but have been doing some coding for a couple hours and I also coded for a couple more hours on Friday when the jam started. My repository for my code is here: https://github.com/ZKasica/LibGDX-Space-Game

Right now I just have my basic controls set up. The player can move around, jump, and shoot!

(3 edits)

I brainstormed for a while and sat around for a couple hours and I think I've come up with something that I'll enjoy working on. It will be about an Astronaut, Tim, stranded but happy in orbit around Earth until his life is rudely disrupted. Im thinking about making it a 2D platformer shooter.

Code: https://github.com/ZKasica/LibGDX-Space-Game

(1 edit)

Hi, I'm Zach, a senior in high school. I'll be using Eclipse, Tiled, Photoshop, Bfxr, and something for music. I'm going to be working alone. Blue is my favorite color. I've completed two Ludum dares, but I'm looking forward to having a whole month to work on this game!