Latest Python Activity
interesting….
Thanks for all of the elaboration y’all.
Yes, it works.
Thanks a lot for your kind response and suggestions.
Thanks again.
Hello,
The newest version of Citypy is now online!
DOWNLOAD: https://citypy.neocities.org/download.html
regards,
citarr
Yeah, it builds on the Panda3D engine. And, yep, it's made to be easy to use and get working (just don't expect CryEngine-level results). One guy made a sweet replica of Minecraft with it though.
Entity is a subclass of NodePath. So, an entity's parent is set via NodePath (I forget…
DOWNLOAD: https://nyghter.neocities.org/download.html
Hi, i have very good news. I did it! Thanks for your help. I finally have the dialog box i wanted. It's able to print multiple lines and it can render text char by char. Again thank you.
Edit: Your code is works btw. I just add blit to your code and it works very well.
Hi, everyone I did some trials and this is my final solution:
Height, texture, UV, and normals are now stored inside heightmap. I'm using R channel for height, G channel for texture, and UV position with normal are sharing B channel.
Sharing is done through bitwise operations. First two bytes of uint…
Hello, everyone!
A new Forward Only release happened, with an episode-crossover with SCP Foundation!
Trailer:
The game performance was improved, some errors fixed. Playable build, as usually, available in the game repo:
https://github.com/IlyaFaer/ForwardOnlyGame/releases
a light breeze said:
SuperVGA said:
Where in the linked source is there any indication of running ON²?
arr.count(i)
returns the number of occurrences of elementi
inarr
. The only way to do this is to iterate over the entire array in order to count the occurences, which is an O(n) operation. …
Hi there,
I am a newbie, so please excuse if I dont know the right words for things…
For my Project I rendered an image in OpenEXR Half (Float) (16bit Float) Format (described here).
The black and white image is part of an animation sequence and is one of two parts of a composition step which i want t…
Two suggestions:
- The Wikipedia page on fisheye distortion lists several principled distortion types, actually adopted in real lenses, that have a realistic appearance and interesting properties. You'll need further sources for a good treatment of how they work.
- You could start from a reference pictur…
Hi guys. I've been developing this App for years now. It is node-based images, textures and 3D objects generator. It is currently Maya plug-in but 3Vial Engine is also in development. It will contain all the features 3Gen has but it will be standalone engine. ImaGen, part of the 3Gen of manipulatio…
I tried to use PyBullet but it is very complicated and I cannot understand haw to use it with OpenGL. The Panda3D Bullet wrapper is only one way that I found. And there is a very great manual: https://docs.panda3d.org/1.10/python/programming/physics/bullet/index I hope I will not have unresolved pr…
@Alberth Thanks! I'll consider changing it up a bit. This is somewhat of a bullet hell so it does get difficult quick and relies on the player maintaining health throughout the stage, and bosses are the main attraction.
Maybe I'll make the enemies harder :>
Run demo in Sandbox:
- JSFiddle: https://jsfiddle.net/8Observer8/1gqfLar7
- Plunker: https://plnkr.co/edit/Y85fpZRur7vqaAl7?preview
Source Code:
- JavaScript, WebGL 1.0: https://jsfiddle.net/8Observer8/1gqfLar7
- Python, PyQt5, OpenGL 3.3: https://rextester.com/UZOJ14435
- Python, PySide2, OpenGL 3.3: https://rex…
- JavaScript, Canvas2D: https://plnkr.co/edit/zjYT0KTfj50MejT9?preview
- Python, PyQt5, QPainter: https://rextester.com/FDPMLU35222
- Python, PySide2, QPainter: https://rextester.com/YLSNG7380
- C++, Qt5, QPainter: https://rextester.com/XEUPHQ83360
@taby Thank you for your reply, Taby. I am building a game where the players drive along with “self-driving” cars. However, the purpose is not to mimic the behavior of real-life self driving cars, instead, I would like to mimic the behavior of human drivers. So the AI Cars need to learn how to driv…
- Added an example in WebGL 1.0 and TypeScript. Run in browser by one click: https://plnkr.co/edit/GRn9ADgJAJXnEoTF?open=main.ts&preview
If you want to start to learn Python I sagest to use PyQt5 and QtOpenGL together. OpenGL allows to create 2D/3D graphics and PyQt5 allows to create GUI elements.…
pygame 2.0, the most popular game library for python has been released on its 20th birthday.
What's the best feature of pygame 2? Maybe it's "backwards compatibility". For many, many apps pygame 2 is backwards compatible. Have an pygame app from the year 2000? It will probably work. We still have so…
I propose to introduce Python classes to implement the Game Loop pattern. Using these tools, I show how to refactor the code in the previous post to get a more robust and readable program.
This post is part of the Discover Python and Patterns series
Create a class with PythonIn this post, I introduce…
I chose to write an Arkanoid-like clone (see the original below), assuming this would be a relatively simple place to start with PyGame.
Arkanoid. Fresh outta the 80s.So I coded away and felt joy and satisfaction as I quickly implemented a sprite sheet loader, platform movement, block and …
Thanks to the Pygame library we installed in the previous post, we can draw 2D graphics. In this post, I propose to introduce controls with the keyboard as well as some improvements like window centering and frame rate handling.
This post is part of the Discover Python and Patterns series
Keyboard ev…@Prototype thank you, I got it working now!
In the previous posts, I introduced enough of Python and patterns to start creating games with graphics using the Pygame library.
This post is part of the Discover Python and Patterns series
Install PygamePygame is a popular library for creating 2D games. Like the random library we used before, the i…
The time has come to see our first design pattern: the Game Loop Pattern! This pattern can give us many good ideas to refactor our game in a very effective way.
This post is part of the Discover Python and Patterns series
The Game Loop patternThere is several version of the Game Loop pattern. Here I …
It is now time to organize/refactor our code! When you begin, this is a strange process since the final code does the same as before. However, refactoring is the only way to create a code easy to maintain and expand.
This post is part of the Discover Python and Patterns series
Define a functionIn the…
In the previous post, the magic number is always the same. I propose now to introduce random numbers to change the magic number every time we launch the game. I also present imports and more on integers.
This post is part of the Discover Python and Patterns series
Library importIn the previous progra…
In the first post, we saw how to install an IDE and how to display a message; it is time to add some interaction with the player.
Wait for a keyCreate a new python program and type the following line:
input("Press Enter to continue...")
If you run the program, you get the follo…
The pygame book project has begun. It's called "pygame 4000" and is a book project by one of the main contributors of the pygame project.
Not only does the book aim to cover Python programming, but also aims to cover C, and the GLSL shading language.
- [ Pixel Perfect Collision Detec…
Hi everybody. Again, it's been a long time, but now the summer is finally over and I can show you some updates to the game.
After completing the collision-handling code overhaul and while filling the lower dungeon section with life, I literally wondered wh…
So I used python 3 for ios on my ipad to do part one of this assignment.
Part One: create a guess my number game:
numSpecial = 0 time = 0 guesses = 0 g = 0 i = 0 import random numSpecial= random.randint(1,9) print ("guess my nmber, biatch! between 1 and 10") …
tip15 = 0
tip20 = 0
price = input ("how much did your meal cost?")
tip15 = int (price) * .15
tip20 = int (price) * .2
print ("A 20% tip would be ",tip20," and a 15% tip would be",tip15)
input ()
I wrote a tipper program for an exercise.
It's a simple program and it took 20mins to writ…
So it took one day to write and bug fix.
Then another day to go through guesswork and figuring it out - to get the program to work.
I haven't got up to while loops in the book, so it took a while - a few errors before I got it working.
And I certainly haven't got as far as def method…