April 2018 challenge: “Two worlds”
- source.zip — source code(need kivy) (23.40 Kbytes on 2018/04/19)
Bitetris,means bi-tetris, player plays two tetris at the same time. As in a Louis Cha novel, Zhou Botong created his unique skill "Left and Right Inter-fighting". I think my game style is this, maybe a little hard, but just for fun. Don't worry, be happy :)
The game is written in kivy, I already package it for android, you can just install the .apk file(githublink). Or if you are on Windows, there is another choice, you can download the .zip file(githublink). Of course you can try the source code(githublink), be sure to follow the installation guide on kivy's official site :) All the versions I have already uploaded here is the same of the github link I mentioned :)
On windows, wsad & ↑↓←→ for control the left & right screen operation
On android, swipe up,down,left,right in left & right screen to control
ps. About the password in title screen. hint is already there :) The game has no sound, sorry about that, and no animation effect, I am quite lazy in fact :)
While the screenshots may not seem like a lot, I focused a lot more on animations and special effects this time, so you really have to see the game in action to get a good feel of what it's really like.
Contrast is a platformer about a monochrome world full of either black, grey, or white objects.
Depending on the background, these objects are either interactable or non-interactable
White is not interactable in white, black is interactable in white, and vice versa.
Your goal: Try to collect the elusive RGB Sphere! The only color in this industrial world.
This game is one I've been thinking of since I discovered Rogue a few weeks ago, I'm so glad PyWeek just happened to be around the corner and with a perfect theme! Now I'm going to work flat out all week to try and get a minimal version of this running. Despite the description, there are still many unanswered questions as to how this game will work. It'll need some experimenting to get just right.
In-keeping with Rogue, it will use ASCII graphics, but I will also use colour. It will also have no sound. I'm going to be using tcod, which is a Python interface to libtcod library. The docs are here: https://python-tdl.readthedocs.io/en/latest/
I spend my days as a PhD candidate researching in the field of ontology/knowledge graphs with applications in systems, so also conducting research into systems thinking and mereology. This means I'm looking forwards to Python 3.7's data-classes with keen-interest. I'm not going to use Python 3.7 for this because it has not been released yet, I am however going to try a programming style I've being mulling over as a result of my research into systems and ontology.
For this project I will use a class to represent a data-type, such as a "Potion of Healing" or "Snake". These classes will have no methods of their own, the only functionality I will give them will be in generating their properties, and perhaps nice __str__ methods. A class will be mutable and in Python I can access their instances in functions without passing them in explicitly, which is what I want. I will also use an ontological perspective on inheritance, so if I assert in a type hint that the arg: MovingObject, then it could also be any child class of MovingObject, such as Player. Child classes are not allowed to overwrite anything in their parent classes, they can only have additional properties and default values for existing properties.
Functions are considered to be mappings of global states, they don't belong to the thing that effects them, therefore no methods are used. Therefore, all functions will be public and able to act on any class that they are capable of acting upon. So the function "move" will be able to act on anything that has an x and y position, whether I intended it to or not. This is closer to reality, I currently have a burnt out old XBox providing the function "door-stop", I'm pretty sure if Microsoft coded the world it would not have had that function. I expect it will also offer greater flexibility and code re-use. This project will be an interesting proving ground for these ideas and a demonstration of how data-classes may be used from Python 3.7 onwards, I will be updating this project to use them at some point.
Finally, I'll be keeping a daily blog on progress at www.paulbrownmagic.com/blog
Enjoy your PyWeek, happy coding!
I'm pumped, and I feel like you would be too if you were in the room when we concocted this scheme, but you weren't, so you'll just have to wait until it all comes together.
Thank you all once again for all of the great feedback last year, I can't wait to see what you guys think this time around!
- Guardian of The Tree.zip — Guardian of The Tree Executable (37.50 Mbytes on 2018/04/20)
This game is really easy and is 5 minutes long. It's meant to be enjoyed for it's aesthetic.
I made everything used in this game(code, art, SFX, music, etc.) completely by myself. :D
Download (Source and Executable)
- updown_world.zip — game file (6.53 Mbytes on 2018/04/20)