Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - lawless_c

#1
Hi
Thought I would share this with all of you.

https://github.com/lawlessc/starseige

This is a personal game project of mine for Android I was working on sporadically for few years.

I am kind of tired of it now so I thought I would make it public for others to see, so I've shared it here and on Reddit.

Maybe some of you can use lessons from it. My biggest lesson was to go in actual plan and an idea of what I actually wanted.
#2
Support / Re: NPOTexture from bitmap
February 26, 2019, 11:21:55 PM
Thanks for that :-)

I went getting pixels as integers in the end, as able to save them and then add them to the framebuffer again using blitting.
#3
Support / NPOTexture from bitmap
February 11, 2019, 11:23:03 PM
is it possible to create a non power of two texture from a bitmap?

I have been trying for a few days now, but NPOTexture only has one constructor, which only allows for the creation of colour textures.

And the Texture object itself replaces my NPO Bitmaps with a square black bitmap to use as a texture instead.
#4
Projects / Re: Conways Game of Life in JPCT
October 22, 2018, 12:11:26 AM
Note for anyone running this.
It starts Paused.

you have to double tap to un-pause it.
#5
Projects / Conways Game of Life in JPCT
October 21, 2018, 10:58:59 PM
Thought this might interest people here.

https://github.com/lawlessc/GameOfLife  :)

It's an implementation of Conways Game of Life that i'm working on, i've done the computation in the shaders itself using the textures to store the state of the world, it runs very fast  if i do say so myself  8)

For anyone interested:
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life


#6
Projects / Re: Ireland from space live wallpaper
October 24, 2016, 02:48:04 PM
Nothing much else really. Depending on the  time of day and glint of the sun on the water will move accross the water.
It gets dark and City lights appear at night.

You also set a static  time you want, offset it's realtime to add hours  , adjust zoom, and move it horizontally or vertically.

I'm going to have to add more options.
#7
Projects / Ireland from space live wallpaper
October 24, 2016, 01:52:57 PM
Made this live wallpaper here:


https://play.google.com/store/apps/details?id=com.lawless.satellite.ireland&hl=en_GB

If anyone here would like to try it here are some codes  :) , some feed back would be great so i can be sure it
works on devices i could only emulate.  For the moment it doesn't work on tablets.

7WWMEFMH8R75R1LQGZMJH61
EY79EDFPJTNQQ6P5HYLMBNQ
JSKSR7WYTNZSHQ3KYBKZ8CU
RE2Z9C4BPMGSF3N0L0CGXZK
781T6KTPLUR9GYH3TQW3LES
H4S168EZPCKAP01PH4RBFK1
B53NMF7NXVPFD9AR4H8N20N
3TVYACQRNNBKQ49FD9GZDTC
L7E78PDFQCQ6UGLGU7GBHC7
DR0C7ERF3N26PXC70CY9NH8
J6531LXTMYARF9EHCK0QM91
PAYEJ2PZ5MDAEX0JLEGK1A5
JHGLH14SA6R5EC3HVS8QP7K
E7N4SA6F8HGV15WSXGDV7SV
7EHMC2VT4C53HGFM7ZC2GRE
58G2HC0TTZX2LU7WK68TCW1
S52D6J9AJ4WEAZ3HZDAM42S
2LQGGLVWJ9U4J0SVRNTJ6AC
J6GVU02DQQP6RRC10SM8702
9D9B2BW5EQADR8XCEMFLDH3
H2L7XW6M2SAULEXJ64JCNKD
1K6NVXLQ8UQGJL8SVWZH4D9
L54E1XK9RMACMPVUT1Y2N7X
B86K1LAPYEBSB57U23LALJR
#8
Support / Re: Correctly killing an application
October 08, 2016, 01:29:09 AM
I found the issue: when i load the wallpaper in preview mode it creates an instance.


If i click "Set Wallpaper" android will try to carry to over the instance to the actual background , which is where it appears as just a black empty space and hangs.

what is do is in the onDestroy() method calll System.exit(0)  , which forces a new instance to be loaded.

It works for now , but i worry it is probably a hack.
#9
Support / Correctly killing an application
October 05, 2016, 01:23:48 PM
Is there anything JPCT specific that needs to be done when closing/killing an application.

I'm trying out doing a livewallpaper but i'm finding if the wallpaper activity has already been launched once for example in preview mode then the next time i try to launch preview mode or set it as a wallpaper the application seems to hang and i'm left with just a black background.

However if i reset my phone the wallpaper will then switch on correctly.
#10
Support / Re: rotations in jpct
October 05, 2016, 01:21:13 PM
Figured it out, required a few PolyLines  ;D
#11
Support / rotations in jpct
October 03, 2016, 01:07:35 AM
How do functions like rotations in JPCT work for example rotateAxis? does it use Radians or a regular angle?
and does it rotate in a clockwise or anti clockwise direction?
#12
Hmm no look yet. I used settexture to switch the object texture something that is not being rendered to but it was ineffective.

It's always which ever process is done 2nd that ends up not working and remaining unprocessed.
#13
Should texture replace be enough to do this?

If I'm using a textureinfo as a texture do i have to redo those to? As they seem to rely on a retrieved texture id.
#14
Will try that, going to have to work it out with a pen and paper.
#15
oh darn