Gravity - Simple Arcade Game


saturn

Still Fresh
Joined
Jul 28, 2010
Messages
3
Hello. I am new here, but not knew to games, or programming. I have been learning SDL, and more recently OpenGL for 2 years now, and decided to make a strong effort towards finishing a small game. It currently works on OS X and various linux distributions, and doesn't (as far as I am aware) using anything too OS specific that would make it hard to port to the Pandora. I ordered a Pandora a while back, and when it comes, I will learn exactly how to port it.

Here you can download and install it:
http://www.theoctoroks.com/gravity/downloads/

In the meantime, I would love some feedback. As I am rather a n00b, I can't do terribly complex things like enemies with AI, networked multiplayer, or other fancy things. The game so far has:

A spaceship (you)
An array of planets (possibly orbiting) on a level.
You are supposed to fly from the starting position, and land on a specific planet to beat the level.
If you run out of fuel, you lose.
The current version that you can download only lets you play one level without a destination planet (though the code for all that is in there).
Hit "m" to go back to the main menu, hit "t" to toggle the "touch controls."

There are a lot of small things that I need to fix to make everything work, but its very close, and all the necessary code to finish it is there. If there is interest, I can explain what I will be trying to add next, future plans, etc.

Thanks for the read, and I hope you find the game at least somewhat amusing for a few seconds.
 
hey, saturn.

unfortunately, i could not play it - it gives a BAD_ACCESS under osx10.4 @ppc. crash log in the spoiler.

Date/Time: 2010-07-28 20:52:51.983 -0400
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: Gravity
Path: ./Gravity
Parent: bash [3703]

Version: Gravity version 0.1 (1.0)

PID: 11350
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 SDL 0x30025f48 SDL_DisplayFormatAlpha + 224
1 com.yourcompany.Gravity 0x0000713c ImageObject::initTextureAndRectangle(char*) + 116 (ImageObject.cpp:12)
2 com.yourcompany.Gravity 0x00009284 RectangularButton::initRectangularButtonFromImage(char*, char*, char*, float, float) + 80 (RectangularButton.cpp:27)
3 com.yourcompany.Gravity 0x00008808 MainMenuObject::initMainMenu(SDL_Surface*) + 124 (MainMenuObject.cpp:11)
4 com.yourcompany.Gravity 0x00008554 initMenus() + 76 (main.cpp:46)
5 com.yourcompany.Gravity 0x000085ac SDL_main + 68 (main.cpp:55)
6 com.yourcompany.Gravity 0x00004244 -[SDLMain applicationDidFinishLaunching:] + 160 (SDLMain.m:302)
7 com.apple.Foundation 0x92bf7e1c _nsnote_callback + 180
8 com.apple.CoreFoundation 0x90805ec0 __CFXNotificationPost + 368
9 com.apple.CoreFoundation 0x907fdf20 _CFXNotificationPostNotification + 684
10 com.apple.Foundation 0x92be2224 -[NSNotificationCenter postNotificationName:eek:bject:userInfo:] + 92
11 com.apple.AppKit 0x937a6be8 -[NSApplication _postDidFinishNotification] + 112
12 com.apple.AppKit 0x937a6ad4 -[NSApplication _sendFinishLaunchingNotification] + 92
13 com.apple.AppKit 0x937a661c -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 264
14 com.apple.AppKit 0x937a61c4 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 92
15 com.apple.Foundation 0x92bf8e28 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 380
16 com.apple.Foundation 0x92bf8c88 _NSAppleEventManagerGenericHandler + 92
17 com.apple.AE 0x914ff960 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 208
18 com.apple.AE 0x914ff7fc dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
19 com.apple.AE 0x914ff654 aeProcessAppleEvent + 284
20 com.apple.HIToolbox 0x932c22e0 AEProcessAppleEvent + 60
21 com.apple.AppKit 0x937a490c _DPSNextEvent + 856
22 com.apple.AppKit 0x937a43f8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
23 com.apple.AppKit 0x937a093c -[NSApplication run] + 472
24 com.yourcompany.Gravity 0x00003f68 CustomApplicationMain + 588 (SDLMain.m:231)
25 com.yourcompany.Gravity 0x000045e4 main + 396 (SDLMain.m:382)
26 com.yourcompany.Gravity 0x000022f0 _start + 760
27 com.yourcompany.Gravity 0x00001ff4 start + 48

Thread 1:
0 libSystem.B.dylib 0x9000af48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000ae9c mach_msg + 60
2 com.apple.opengl 0x9371dd60 glcDebugListener + 252
3 libSystem.B.dylib 0x9002b908 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000030025f48 srr1: 0x000000000200f930 vrsave: 0x0000000000000000
cr: 0x22004448 xer: 0x0000000000000007 lr: 0x0000000030025f40 ctr: 0x0000000000000000
r0: 0x0000000000010000 r1: 0x00000000bfffd9f0 r2: 0x0000000000000000 r3: 0x0000000000554330
r4: 0x0000000000000018 r5: 0x0000000000000010 r6: 0x0000000000000004 r7: 0x0000000000000000
r8: 0x0000000000000000 r9: 0x0000000002815e00 r10: 0x0000000000600a86 r11: 0x0000000042004424
r12: 0x0000000090129660 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000515790 r19: 0x0000000000511500
r20: 0x00000000a37a2134 r21: 0x00000000a07b5d60 r22: 0x0000000000000001 r23: 0x0000000000000000
r24: 0x0000000000505590 r25: 0x0000000000000000 r26: 0x0000000000000000 r27: 0x000000000051df80
r28: 0x0000000000000000 r29: 0x00000000bfffe100 r30: 0x0000000030065e70 r31: 0x0000000030025e70

Binary Images Description:
0x1000 - 0xbfff com.yourcompany.Gravity Gravity version 0.1 (1.0) /Users/martinkrastev/Desktop/y/gravity_mac/Gravity.app/Contents/MacOS/Gravity
0x34000 - 0x38fff SDL_image 1.2.10 /Users/martinkrastev/Desktop/y/gravity_mac/Gravity.app/Contents/Frameworks/SDL_image.framework/Versions/A/SDL_image
0x4ba000 - 0x4d3fff GLDriver /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLDriver.bundle/GLDriver
0x4d9000 - 0x4f4fff GLRendererFloat /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x15bb000 - 0x16cafff GLEngine /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
0x2008000 - 0x225ffff com.apple.ATIRadeon8500GLDriver 1.4.18 (4.1.8) /System/Library/Extensions/ATIRadeon8500GLDriver.bundle/Contents/MacOS/ATIRadeon8500GLDriver
0x30000000 - 0x30060fff SDL 1.2.14 /Users/martinkrastev/Desktop/y/gravity_mac/Gravity.app/Contents/Frameworks/SDL.framework/Versions/A/SDL
0x8fe00000 - 0x8fe52fff dyld 46.16 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.85 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907bb000 - 0x90895fff com.apple.CoreFoundation 6.4.11 (368.35) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908de000 - 0x908defff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908e0000 - 0x909e2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3c000 - 0x90ac0fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90aea000 - 0x90b5afff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.19 (681.21) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f90000 - 0x90fd2fff com.apple.CFNetwork 129.24 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe7000 - 0x90ffffff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x9100f000 - 0x91090fff com.apple.SearchKit 1.0.8 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d6000 - 0x91100fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib
0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib
0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91443000 - 0x914befff com.apple.audio.CoreAudio 3.0.5 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914fb000 - 0x914fbfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914fd000 - 0x91535fff com.apple.AE 312.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91550000 - 0x91622fff com.apple.ColorSync 4.4.13 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91675000 - 0x91706fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9174d000 - 0x91804fff com.apple.QD 3.10.28 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91841000 - 0x9189ffff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918ce000 - 0x918f2fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91906000 - 0x9192bfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x9193e000 - 0x91980fff com.apple.LaunchServices 183.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x9199c000 - 0x919b0fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919be000 - 0x91a04fff com.apple.ImageIO.framework 1.5.9 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a1b000 - 0x91ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91b30000 - 0x91b45fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b4a000 - 0x91b68fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b6e000 - 0x91c25fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91c74000 - 0x91c78fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91c7a000 - 0x91ce4fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91ce9000 - 0x91d04fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91d09000 - 0x91d0cfff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91d0e000 - 0x91dfcfff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x91e1b000 - 0x91e59fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91e60000 - 0x91e60fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91e62000 - 0x91f47fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91f4f000 - 0x91f6efff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91fda000 - 0x92048fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92053000 - 0x920e8fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x92102000 - 0x9268afff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x926bd000 - 0x929e8fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92a18000 - 0x92b06fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92b09000 - 0x92b91fff com.apple.DesktopServices 1.3.7 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x92bd2000 - 0x92e05fff com.apple.Foundation 6.4.12 (567.42) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92f38000 - 0x92f56fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92f61000 - 0x92fbbfff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92fd9000 - 0x92fd9fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92fdb000 - 0x92feffff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x93007000 - 0x93017fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x93023000 - 0x93038fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x9304a000 - 0x930d1fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x930e5000 - 0x930f0fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x930fa000 - 0x93128fff com.apple.openscripting 1.2.7 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x93142000 - 0x93152fff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x9315e000 - 0x931c4fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x931f5000 - 0x93244fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x93272000 - 0x9328ffff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x932a1000 - 0x932aefff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x932b7000 - 0x935c5fff com.apple.HIToolbox 1.4.10 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x93715000 - 0x93721fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x9379a000 - 0x9379afff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x9379c000 - 0x93dcffff com.apple.AppKit 6.4.10 (824.48) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x9415c000 - 0x941cefff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x94207000 - 0x942ccfff com.apple.audio.toolbox.AudioToolbox 1.4.7 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9431f000 - 0x9431ffff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x94321000 - 0x944e1fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x9452b000 - 0x94568fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x94570000 - 0x945c0fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x945c9000 - 0x945e2fff com.apple.CoreVideo 1.4.2 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x9479b000 - 0x947aafff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x947b2000 - 0x947bffff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x94805000 - 0x9481efff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x94c40000 - 0x94cb1fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x9718c000 - 0x9724dfff libGLProgrammability.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x97278000 - 0x97279fff libGLSystem.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLSystem.dylib
0x972a2000 - 0x972e2fff com.apple.glut 3.3.8 (GLUT-3.3.8) /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT

Model: PowerMac10,1, BootROM 4.8.9f1, 1 processors, PowerPC G4 (1.2), 1.25 GHz, 512 MB
Graphics: ATI Radeon 9200, ATY,RV280, AGP, 32 MB
Memory Module: DIMM0/J11, 512 MB, DDR SDRAM, PC3200U-30330
Modem: Jump, V.92, Version 1.0
Network Service: Built-in Ethernet, Ethernet, en0
Parallel ATA Device: TRANSCEND, 7.59 GB
Parallel ATA Device: MATSHITACD-RW CW-8124
USB Device: Keyboard Hub, Apple, Inc., Up to 480 Mb/sec, 500 mA
USB Device: USB-PS/2 Optical Mouse, Logitech, Up to 1.5 Mb/sec, 100 mA
USB Device: Apple Keyboard, Apple, Inc, Up to 1.5 Mb/sec, 100 mA
FireWire Device: ST3160212A, Iomega, Up to 400 Mb/sec
 
darkblu said:
hey, saturn.

unfortunately, i could not play it - it gives a BAD_ACCESS under osx10.4 @ppc. crash log in the spoiler.

Date/Time: 2010-07-28 20:52:51.983 -0400
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: Gravity
Path: ./Gravity
Parent: bash [3703]

Version: Gravity version 0.1 (1.0)

PID: 11350
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 SDL 0x30025f48 SDL_DisplayFormatAlpha + 224
1 com.yourcompany.Gravity 0x0000713c ImageObject::initTextureAndRectangle(char*) + 116 (ImageObject.cpp:12)
2 com.yourcompany.Gravity 0x00009284 RectangularButton::initRectangularButtonFromImage(char*, char*, char*, float, float) + 80 (RectangularButton.cpp:27)
3 com.yourcompany.Gravity 0x00008808 MainMenuObject::initMainMenu(SDL_Surface*) + 124 (MainMenuObject.cpp:11)
4 com.yourcompany.Gravity 0x00008554 initMenus() + 76 (main.cpp:46)
5 com.yourcompany.Gravity 0x000085ac SDL_main + 68 (main.cpp:55)
6 com.yourcompany.Gravity 0x00004244 -[SDLMain applicationDidFinishLaunching:] + 160 (SDLMain.m:302)
7 com.apple.Foundation 0x92bf7e1c _nsnote_callback + 180
8 com.apple.CoreFoundation 0x90805ec0 __CFXNotificationPost + 368
9 com.apple.CoreFoundation 0x907fdf20 _CFXNotificationPostNotification + 684
10 com.apple.Foundation 0x92be2224 -[NSNotificationCenter postNotificationName:eek:bject:userInfo:] + 92
11 com.apple.AppKit 0x937a6be8 -[NSApplication _postDidFinishNotification] + 112
12 com.apple.AppKit 0x937a6ad4 -[NSApplication _sendFinishLaunchingNotification] + 92
13 com.apple.AppKit 0x937a661c -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 264
14 com.apple.AppKit 0x937a61c4 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 92
15 com.apple.Foundation 0x92bf8e28 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 380
16 com.apple.Foundation 0x92bf8c88 _NSAppleEventManagerGenericHandler + 92
17 com.apple.AE 0x914ff960 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 208
18 com.apple.AE 0x914ff7fc dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
19 com.apple.AE 0x914ff654 aeProcessAppleEvent + 284
20 com.apple.HIToolbox 0x932c22e0 AEProcessAppleEvent + 60
21 com.apple.AppKit 0x937a490c _DPSNextEvent + 856
22 com.apple.AppKit 0x937a43f8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
23 com.apple.AppKit 0x937a093c -[NSApplication run] + 472
24 com.yourcompany.Gravity 0x00003f68 CustomApplicationMain + 588 (SDLMain.m:231)
25 com.yourcompany.Gravity 0x000045e4 main + 396 (SDLMain.m:382)
26 com.yourcompany.Gravity 0x000022f0 _start + 760
27 com.yourcompany.Gravity 0x00001ff4 start + 48

Thread 1:
0 libSystem.B.dylib 0x9000af48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000ae9c mach_msg + 60
2 com.apple.opengl 0x9371dd60 glcDebugListener + 252
3 libSystem.B.dylib 0x9002b908 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000030025f48 srr1: 0x000000000200f930 vrsave: 0x0000000000000000
cr: 0x22004448 xer: 0x0000000000000007 lr: 0x0000000030025f40 ctr: 0x0000000000000000
r0: 0x0000000000010000 r1: 0x00000000bfffd9f0 r2: 0x0000000000000000 r3: 0x0000000000554330
r4: 0x0000000000000018 r5: 0x0000000000000010 r6: 0x0000000000000004 r7: 0x0000000000000000
r8: 0x0000000000000000 r9: 0x0000000002815e00 r10: 0x0000000000600a86 r11: 0x0000000042004424
r12: 0x0000000090129660 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000515790 r19: 0x0000000000511500
r20: 0x00000000a37a2134 r21: 0x00000000a07b5d60 r22: 0x0000000000000001 r23: 0x0000000000000000
r24: 0x0000000000505590 r25: 0x0000000000000000 r26: 0x0000000000000000 r27: 0x000000000051df80
r28: 0x0000000000000000 r29: 0x00000000bfffe100 r30: 0x0000000030065e70 r31: 0x0000000030025e70

Binary Images Description:
0x1000 - 0xbfff com.yourcompany.Gravity Gravity version 0.1 (1.0) /Users/martinkrastev/Desktop/y/gravity_mac/Gravity.app/Contents/MacOS/Gravity
0x34000 - 0x38fff SDL_image 1.2.10 /Users/martinkrastev/Desktop/y/gravity_mac/Gravity.app/Contents/Frameworks/SDL_image.framework/Versions/A/SDL_image
0x4ba000 - 0x4d3fff GLDriver /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLDriver.bundle/GLDriver
0x4d9000 - 0x4f4fff GLRendererFloat /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x15bb000 - 0x16cafff GLEngine /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
0x2008000 - 0x225ffff com.apple.ATIRadeon8500GLDriver 1.4.18 (4.1.8) /System/Library/Extensions/ATIRadeon8500GLDriver.bundle/Contents/MacOS/ATIRadeon8500GLDriver
0x30000000 - 0x30060fff SDL 1.2.14 /Users/martinkrastev/Desktop/y/gravity_mac/Gravity.app/Contents/Frameworks/SDL.framework/Versions/A/SDL
0x8fe00000 - 0x8fe52fff dyld 46.16 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.85 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907bb000 - 0x90895fff com.apple.CoreFoundation 6.4.11 (368.35) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908de000 - 0x908defff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908e0000 - 0x909e2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3c000 - 0x90ac0fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90aea000 - 0x90b5afff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.19 (681.21) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f90000 - 0x90fd2fff com.apple.CFNetwork 129.24 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe7000 - 0x90ffffff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x9100f000 - 0x91090fff com.apple.SearchKit 1.0.8 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d6000 - 0x91100fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib
0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib
0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91443000 - 0x914befff com.apple.audio.CoreAudio 3.0.5 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914fb000 - 0x914fbfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914fd000 - 0x91535fff com.apple.AE 312.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91550000 - 0x91622fff com.apple.ColorSync 4.4.13 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91675000 - 0x91706fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9174d000 - 0x91804fff com.apple.QD 3.10.28 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91841000 - 0x9189ffff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918ce000 - 0x918f2fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91906000 - 0x9192bfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x9193e000 - 0x91980fff com.apple.LaunchServices 183.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x9199c000 - 0x919b0fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919be000 - 0x91a04fff com.apple.ImageIO.framework 1.5.9 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a1b000 - 0x91ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91b30000 - 0x91b45fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b4a000 - 0x91b68fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b6e000 - 0x91c25fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91c74000 - 0x91c78fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91c7a000 - 0x91ce4fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91ce9000 - 0x91d04fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91d09000 - 0x91d0cfff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91d0e000 - 0x91dfcfff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x91e1b000 - 0x91e59fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91e60000 - 0x91e60fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91e62000 - 0x91f47fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91f4f000 - 0x91f6efff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91fda000 - 0x92048fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92053000 - 0x920e8fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x92102000 - 0x9268afff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x926bd000 - 0x929e8fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92a18000 - 0x92b06fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92b09000 - 0x92b91fff com.apple.DesktopServices 1.3.7 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x92bd2000 - 0x92e05fff com.apple.Foundation 6.4.12 (567.42) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92f38000 - 0x92f56fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92f61000 - 0x92fbbfff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92fd9000 - 0x92fd9fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92fdb000 - 0x92feffff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x93007000 - 0x93017fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x93023000 - 0x93038fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x9304a000 - 0x930d1fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x930e5000 - 0x930f0fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x930fa000 - 0x93128fff com.apple.openscripting 1.2.7 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x93142000 - 0x93152fff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x9315e000 - 0x931c4fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x931f5000 - 0x93244fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x93272000 - 0x9328ffff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x932a1000 - 0x932aefff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x932b7000 - 0x935c5fff com.apple.HIToolbox 1.4.10 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x93715000 - 0x93721fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x9379a000 - 0x9379afff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x9379c000 - 0x93dcffff com.apple.AppKit 6.4.10 (824.48) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x9415c000 - 0x941cefff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x94207000 - 0x942ccfff com.apple.audio.toolbox.AudioToolbox 1.4.7 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9431f000 - 0x9431ffff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x94321000 - 0x944e1fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x9452b000 - 0x94568fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x94570000 - 0x945c0fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x945c9000 - 0x945e2fff com.apple.CoreVideo 1.4.2 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x9479b000 - 0x947aafff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x947b2000 - 0x947bffff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x94805000 - 0x9481efff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x94c40000 - 0x94cb1fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x9718c000 - 0x9724dfff libGLProgrammability.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x97278000 - 0x97279fff libGLSystem.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLSystem.dylib
0x972a2000 - 0x972e2fff com.apple.glut 3.3.8 (GLUT-3.3.8) /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT

Model: PowerMac10,1, BootROM 4.8.9f1, 1 processors, PowerPC G4 (1.2), 1.25 GHz, 512 MB
Graphics: ATI Radeon 9200, ATY,RV280, AGP, 32 MB
Memory Module: DIMM0/J11, 512 MB, DDR SDRAM, PC3200U-30330
Modem: Jump, V.92, Version 1.0
Network Service: Built-in Ethernet, Ethernet, en0
Parallel ATA Device: TRANSCEND, 7.59 GB
Parallel ATA Device: MATSHITACD-RW CW-8124
USB Device: Keyboard Hub, Apple, Inc., Up to 480 Mb/sec, 500 mA
USB Device: USB-PS/2 Optical Mouse, Logitech, Up to 1.5 Mb/sec, 100 mA
USB Device: Apple Keyboard, Apple, Inc, Up to 1.5 Mb/sec, 100 mA
FireWire Device: ST3160212A, Iomega, Up to 400 Mb/sec

I just tested it on a few more Macs (10.4 G3's and G4's), and it worked fine. The long error seems to indicate that the SDL_Surface used to create my OpenGL textures was not initialized correctly. I do not know why that would be (since my tests here were ok), but in general that happens when the path to the resources isn't correct - double check if you can that there is a folder called "game_resources" under Gravity.app/Contents/Resources.

If I could reproduce the error, maybe I'd know more about the issue.
 
Last edited by a moderator:
saturn, mystery resolved: apparently you seek your resources relatively to the CWD, not relatively to the app path. the problem was that i originally launched the app from the terminal (yes, i'm a osx user who spends most of his machine time in terminals ; ), which passed an unexpected CWD to your app.

cool gravity effect, btw : )
 
Disregard that, I didn't know to run setup first.

I guess there's only the one level currently?
I bounced off the left side of the screen and became embedded in the planet.
Looks fun.
 
There is a tad bit of bad logic in the way I deal with collisions that makes some small strange things happen sometimes, but I already have it fixed in the current code, and the next time I compile and upload it, those things will be taken care of. But before I do that, I'd like to add more features, or at least make some decent levels.

Here is a new level:
http://www.theoctoroks.com/gravity/downloads/custum_levels/level1.dat

Replace the current level1.dat located in game_resources/levels/ (on Mac, it is in Gravity.app/Contents/Resources/game_resources/, on linux, the ./setup should have made ~/.gravity/game_resources/).

This new level is simply a giant planet, with a smaller one orbiting it. The smaller planet (or "moon") is the destination, and if you can land on it while it moves (ship must be at the right angle), you win, and it jumps back to the main menu.

Other than planets, gravity, and fuel, I was wondering what a novice like me could add to the game to make it more fun, or what sort of level design there should be for a simple arcade game like this. Not-difficult-to-program gameplay ideas is what I'm going for.

Thanks for trying it out, much appreciated,
saturn
 
Back
Top