Pysconian[WIP]


#1

Python + Bosconian = Pysconian

Working on graphics at the moment

image


#2

I love it!! I played a version of this on a tv plug and play for hours.


#3

I am going to try to make it as faithful as possible

EDIT: all the gfx are actually redrawn by hand, the difference in resolution forces me to do so


#4

That is so exciting :grin: oh my gosh too good.


#5

Coding with Python is so easy

pysconian


#6

OH MY GOSH!! :open_mouth: This looks SO good!


#7

Looks absolutely great!
Btw. I am currently implementing fast vertical or horizontal mirrored blit in upygame API. That will save some ROM & drawing effort


#8

Great!

Main problem is that I’m running out of RAM. 70 mines, 6 bases with 6 pods, 20 projectiles, all gameobjects with x,y,wx,wy,w,h,explosion,visibility,status and so on

I may have to de-objectify my code into global bytearrays to fit in enemies and asteroids


#9

Yeah, that is what I have also done with bullets in Pokitron. No objects, but just a list of coordinates.


#10

I am now coding “the proper way” with modules and classes (no globals), and I am enjoying Python even more.

Python is even better with OOP


#11

I still need to fully learn that for python.


#12

There are many examples of Python classes and modules in the competition entries.


#13

I’ve skimmed a few of them early on. The different styles everyone uses is so cool :smile:


#14

FYI I grabbed a lot of code from Jetpack by @bl_ackrain. Amazingly, he says its his first Python prog and made in 3 days


#15

I can believe it, python seems very familiar, it reminds me a lot of old BASIC.


#16

It would be interesting to know how many used Python the first time in competition.


#17

Not only that, how many people don’t own Pokitto’s.

But yeah, this was my first attempt an anything in python.


#18

For me too


#19

Everything is better with OOP.


#20

With no bytearrays, I was able to get up from 70 to 135 mines by optimizing the code.

The trick was simple. If you pass an object to a function, and you extend that object inside that function, the original instance expands. It is not a copy, it is a reference.

Replacing expanded attributes with local variables and the instances stayed small = twice the amount of mines.