Advertisement

Latest Python Activity

Advertisement

Thanks for all of the elaboration y’all.

3,554 views
gaurav99
April 22, 2023 01:42 PM

Yes, it works.

Thanks a lot for your kind response and suggestions.

Thanks again. 

2,923 views
Citypy

Hello,

The newest version of Citypy is now online!

DOWNLOAD: https://citypy.neocities.org/download.html

regards,
citarr

2,649 views

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…

6,959 views
Nyghter 1.1.7

Hey,
Now Version 1.1.7 is up:

https://nyghter.neocities.org/

best regards,
Thrium

4,796 views

jdtec01 said:
A slightly late reply

Three months necro. Thread locked.

11,938 views

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.

11,808 views
glDrawElements slowing down with increasing index value

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…

12,157 views

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

13,447 views

a light breeze said:

@SuperVGA

SuperVGA said:

Where in the linked source is there any indication of running ON²?

arr.count(i) returns the number of occurrences of element i in arr. 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. …

11,114 views
Transporting a float16 Image (OpenEXR Float (Half)) to HLSL Shader

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…

3,512 views
FishEye Lens distortion (bug?)

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…
5,105 views
Rayterex
February 28, 2021 10:45 AM

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…

6,031 views
8Observer8
February 20, 2021 11:48 PM
[Example] Falling Textured Cubes. Panda3D Bullet Physics Wrapper. PyQt5 (PySide2) + Bullet + OpenGL

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…

7,771 views

@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 :>

5,079 views

@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…

6,843 views
8Observer8
November 06, 2020 03:20 AM
Minimal OpenGL Example in C++ Qt5, PyQt5 and TypeScript WebGL 1.0

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.…

44,740 views
renedudfield
October 29, 2020 02:16 PM
pygame 2 released on 20th birthday

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…

8,040 views
phylyp
September 28, 2020 02:29 PM
Discover Python and Patterns (11): Class

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 Python

In this post, I introduce…

5,269 views
alex.coaton
August 23, 2020 08:17 PM
Arkanoid and PyGame Collision Detection
Background

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 …

7,167 views
phylyp
July 14, 2020 09:34 AM
Discover Python and Patterns (10): Keyboard

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…
3,187 views

@Prototype thank you, I got it working now!

7,278 views
How Can I create light spin around my text (2D)
this is my code but I don't know how to create a light to spin around text that I've created by using glVertex3f 
2,996 views
phylyp
May 02, 2020 03:17 PM
Discover Python and Patterns (9): Pygame

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 Pygame

Pygame is a popular library for creating 2D games. Like the random library we used before, the i…

4,990 views
phylyp
March 11, 2020 05:46 PM
Discover Python and Patterns (8): Game Loop pattern

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 pattern

There is several version of the Game Loop pattern. Here I …

6,076 views
phylyp
February 26, 2020 09:16 AM
Discover Python and Patterns (7): Functions

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 function

In the…

3,379 views
phylyp
January 03, 2020 09:29 AM
Discover Python and Patterns (6): Random

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 import

In the previous progra…

2,764 views
phylyp
November 14, 2019 07:11 PM
Discover Python and Patterns (2): Basic interaction

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 key

Create a new python program and type the following line:

input("Press Enter to continue...")

If you run the program, you get the follo…

3,327 views
renedudfield
October 31, 2019 10:27 AM
pygame book

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…
5,827 views
cpfr
October 01, 2019 08:26 PM
The Fire of Ardor - A Puzzle and an End Boss
What do we do inside a dungeon?

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…

4,352 views
8Observer8
February 18, 2019 02:42 PM
Set up OpenGL 3 for Python

You need to type commands in the console terminal (you need to run the console terminal as administrator):

pip install GLFW pip install PyOpenGL pip install Pyrr pip install NumPy

Pyrr - for trigonometry and linear algebra

NumPy - for special arrays for OpenGL functions

You will see how to us…

6,775 views
WinterDragon
June 14, 2018 01:49 PM
first time coding in python on ios: Guess My Number (rated M: language)

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") …
2,928 views
WinterDragon
February 21, 2018 12:46 AM
my first program in python
I wrote my first program (not including the false start last time I attempted programming) in Python... and it works! after a few bug fixes it's actually quite small and some would think insignificant. But I'm getting used to the syntax and form of the language.   print ("hello") …
2,802 views
WinterDragon
February 21, 2018 12:45 AM
my 2nd program in python

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…

3,207 views
WinterDragon
February 21, 2018 12:43 AM
an early coding exercise 1

carPrice = input ("what is the base price of the car?")

tax = int (carPrice) * .125
insurance = 250
totalcarPrice = int (carPrice) + int (insurance) + int (tax)

print ("total cost of your car including: insurance $",insurance,",")
print ("and tax: $",tax," comes to $",totalcarPri…

3,414 views
WinterDragon
February 21, 2018 12:26 AM
a fortune cookie program

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…

3,011 views
Advertisement
Advertisement