The game was built using only
stackoverflow.com and
processing.org as a code reference. Any problems I encountered were usually resolvable with the help of the processing forums or stackoverflow tags.
Why?
I originally intended the game to be a joke to put online over christmas where long cat collected christmas treats with his christmas hat on. But I thought I would turn it in to a full blown shooter for fun.
I am basically trying to create an array of rectangles that updates its position continuously to form a snake like effect. The problem I am having is that by updating the position of each rectangle 1 by 1 is updating the position too slowly or updating the position of all of them using a for loop updates them to the same position.
A few months ago I made a game called Jump 'n' tilt for android using processing. I want to go back to it and develop it some more. I have been away from processing for a couple of months as I have been looking into oF
BUT after the alpha release of 2 and watching the Eyeo festival 2011 video with Ben Fry and Casey Reas I have had a spark to come back to developing one of the games I put together!
I feel like there is alot more I can add to it now... I just want to get some feedback on what is wrong with it and how it can be improved.
The game runs quite slow on bad devices which I think actually... it probably should run alot faster... Im just not entirely sure on what techniques I can use to increase the load times.... (hence why im asking here for feedback and not android game enthusiast forums!).
Please could some of you guys give it a go and tell me what you think is wrong with.... what could improve loading times... what looks bad.... what looks good...
It has a scoreboard system built into it too so you can actually view your scores against other people in the world. Im sure that could also be improved but really... I dont think that is the main concern for me right now.
There is still a nullPointer when you try and check for the global scores but apart from that I havent received any other errors on the market so I think it is safe to post it here on the exhibition forums... here it is:
I rate this mild as it contains questionable items to collect. if you play it with your wifi turned off you will be able to read the full text without the adverts popping up.
please let me know if you get any problems and more importantly... let me know what is not fun about it!
got a few errors here from people on the android market:
v1.3.1
Jun 29, 2011 10:14:37 PM
1 reports/week
1 reports
java.lang.OutOfMemoryError
at processing.core.PImage.loadPixels(Unknown Source)
at processing.core.PImage.resize(Unknown Source)
at processing.android.test.e1.E1.setup(E1.java:237)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PGraphicsAndroid3D$A3DRenderer.onDrawFrame(Unknown Source)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1332)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
Platforms
OTHER
2 reports/week
9 reports
Droid
0 reports/week
1 reports
Stack traces
v1.3.1
Jun 29, 2011 9:58:16 PM
1 reports/week
1 reports
java.lang.OutOfMemoryError: (Heap Size=19991KB, Allocated=14801KB, Bitmap Size=69KB)
at processing.core.PTexture.createTexture(Unknown Source)
at processing.core.PTexture.<init>(Unknown Source)
at processing.core.PFontTexture.addTexture(Unknown Source)
at processing.core.PFontTexture.initTexture(Unknown Source)
at processing.core.PFontTexture.<init>(Unknown Source)
at processing.core.PGraphicsAndroid3D.textLineImpl(Unknown Source)
at processing.core.PGraphics.textLineAlignImpl(Unknown Source)
at processing.core.PGraphics.text(Unknown Source)
at processing.core.PApplet.text(Unknown Source)
at processing.android.test.e1.E1$Startup.start(E1.java:2730)
at processing.android.test.e1.E1$Events.animate(E1.java:1084)
at processing.android.test.e1.E1.draw(E1.java:339)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PGraphicsAndroid3D$A3DRenderer.onDrawFrame(Unknown Source)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1341)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
v1.3.1
Jun 29, 2011 9:40:22 PM
1 reports/week
1 reports
java.lang.OutOfMemoryError
at processing.core.PTexture.createTexture(Unknown Source)
at processing.core.PTexture.<init>(Unknown Source)
at processing.core.PFontTexture.addTexture(Unknown Source)
at processing.core.PFontTexture.initTexture(Unknown Source)
at processing.core.PFontTexture.<init>(Unknown Source)
at processing.core.PGraphicsAndroid3D.textLineImpl(Unknown Source)
at processing.core.PGraphics.textLineAlignImpl(Unknown Source)
at processing.core.PGraphics.text(Unknown Source)
at processing.core.PApplet.text(Unknown Source)
at processing.android.test.e1.E1$Startup.start(E1.java:2730)
at processing.android.test.e1.E1$Events.animate(E1.java:1084)
at processing.android.test.e1.E1.draw(E1.java:339)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PGraphicsAndroid3D$A3DRenderer.onDrawFrame(Unknown Source)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1339)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1123)
All with revision 0198. I couldnt run ant with 0199 because of the classes.dex (it said something like that).
i can share the games source if that helps (its a monstrously big game and youll probably put your palm over your face when you see the code).
edit: i have taken off the nullPointer that was originally here as I have figured that one out ;P.
going on a family trip today as well so I will bring my code with me and see if there is anything noticeably erroneous in the code that could be causing it whilst I am out. It is the same game from the original post i made ;).
I understand that video files can only be loaded from the SD card to be played back... I just wanted to put a game intro video in and small demonstrations throughout the game. how would I go about loading mp4 files that should 'come with the game when its installed'. as opposed to loading them from the card... (or copying them to the SDCARD on install and playing them if they are detected; just incase the user deletes them).
The game SHOULD play fine but... I cant open it because it doesnt add it to the icons on my installed apps list. when using an app to view all apps installed it doesnt detect it... but it is installed...
Looking for a nice memory efficient way to generate a mix of static electricity and rain effect to be randomly generated on any sized processing sketch in front of a background.
I cant really think of a very efficient way... anyone got any good ideas for this problem? :)
I nearly have embedding working so after my exam tommorow morning (GMT) I will post (hopefully) an embedded version of the game to try out. We havent finished putting in the scoreboard and menu system yet but when we've done that i'm sure itd be fun to play!
It uses openGL and Matthew Yee-King and Martin Roth's AudioThread classes for the sound interaction.
The basic concept is generated cubes. I am playing with the camera angle here to generate the walls.
The walls are generated by drawing an array of squares (imagine you are looking from birds eye view) and then changing the camera angle so it looks like a floor, walls, or ceiling.... then rotating the camera by 90 degrees to generate the next wall.
A quick understandable way to show u what i mean is this code:
rotate(90);
drawWall();
rotate(90);
drawWall();
rotate(90);
drawWall();
The size of the rectangles and position is determined by the music. The Color also switches at different intervals and a threshold is in place for sudden flashes of light (aswell as the rectangles size changing).
This was another first year project at my University which is actually a group Project devised by: Callum Pywell, Joseph Boston (me), Ondrej Kruzica, Jack Wooster and Michael Gray.
Im just wondering if anyone has figured out a way to do all of this within processing? or if anyone has came up with a couple of simple audio classes? Or peoples experience with playing with sound. I tried the method mentioned here: