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 - backslider

#826
Was denn?  :whip:

=D
#827
Ja, geht!  :good:
Es ging bei mir einfach nicht, weil ich noch LOCAL oder GLOBAL vor "miep" stehen hatte  :glare:
#828
GLBasic - de / Type im Type
2010-Mar-25
Hallo Leute...

Ich habe das Problem, dass ich nicht weiß, wie ich funktionsfähig ein Type in ein Type packe, damit das eine Objekt immer mit dem anderen erstellt wird und in Verbindung steht...
Ich weiß, dass es Schranzis Tutorial gab, leider aber auch die Betonung auf "gab" liegt  :(
Kann mir das noch mal jemand erklären?
Ich glaube, das wäre auch ein guter Zusatz in der Hilfe?!  :)

Als Bsp. könnte man einen Menschen erstellen und dieser soll bei der Geburt ein Handy bekommen (ich hoffe, das ist so vorstellbar xD)

Thx und Gruß
#829
Alles klar, dann freu ich mich schon, die Beschreibung zu lesen   :good:
#830
@Schranz0r: Was heißt denn Lebenswerk?  =D =D =D

Ich frage mich ja auch, was genau es denn überhaupt werden soll^^ Also was soll man in dem Spiel(?) machen können?
#831
Eine Frage... Mir ist immer noch nicht wirklich klar, was dein Spiel werden soll  :whistle: Entweder kann ich nicht lesen, oder ich bin noch nicht lange genug an Bord  =D

Falls es in deinem Blog steht, kann ichÃ,´s nicht finden... Könnte mir das nochmal jemand kurz erklären?

*Schäm*
#832
Ja genau, das ist eine gute Idee!  :good:
Mein Englisch ist auch nicht perfekt... Aber das ist ja mal eine gute Gelegenheit, das Englisch zu trainieren  :D
#833
Ah ok... Das probier ich nachher mal aus!
Ich sollte vielleicht mal ein bisschen Geometrie nachholen  :good:

Danke schonmal  ;)
#834
Ich würde mich - sofern Zeit vorhanden - zum Teil opfern  ;)

Gruß
#835
Hi Leute!

Ich habs irgendwie immernoch nicht ganz begriffen, wie ich Winkel berechne  :x
Kann mir wer helfen und mir zuersteinmal sagen, wie ich den Ausgangswinkel relativ zum Kanonenrohr berechne?

Code (glbasic) Select
// --------------------------------- //
// Project: cannon
// Start: Wednesday, March 17, 2010
// IDE Version: 7.082

TYPE Tcannon
x
y
power
phi
isAlive
shoot
ENDTYPE

TYPE Tbowl
x
y
dir_x
dir_y
ENDTYPE


SETCURRENTDIR("Media") // seperate media and binaries?

//GFX
LOADSPRITE "cannon.png", 0 //cannon-foot
LOADSPRITE "cannon1.png", 1 //cannon
LOADSPRITE "bowl.png", 2 //cannon bowl

//GLOBALS
GLOBAL scr_x, scr_y
GETSCREENSIZE scr_x, scr_y //get the screensize into scr_x and scr_y

GLOBAL cannon AS Tcannon //Create a newcannonn
GLOBAL newBowl AS Tbowl
GLOBAL bowls[] AS Tbowl

//Set the cannon properties
cannon.x = scr_x/2-64
cannon.y = scr_y-38
cannon.power = 1
cannon.phi = 0
cannon.isAlive = TRUE

//CONSTANTS
GLOBAL LEFT% = 203
GLOBAL RIGHT% = 205
GLOBAL SPACE% = 57

WHILE TRUE //main loop

DRAWRECT 0,0,scr_x,scr_y,RGB(200,200,255)

//For each shot do this
FOREACH Shot IN bowls[]
INC Shot.x, Shot.dir_x
INC Shot.y, Shot.dir_y

DRAWSPRITE 2,Shot.x,Shot.y //Draw the cannon ball
NEXT

IF cannon.isAlive = TRUE
IF KEY(LEFT%) //turn left
IF cannon.phi<180
INC cannon.phi, 2
ENDIF
ENDIF

IF KEY(RIGHT%) //turn right
IF cannon.phi>0
DEC cannon.phi, 2
ENDIF
ENDIF

IF KEY(SPACE%) //shoot
IF cannon.shoot

//create a new shot
newBowl.x = cannon.x + 80
newBowl.y = cannon.y + 16
newBowl.dir_x = SIN(cannon.phi)                  //??????????????????????????
newBowl.dir_y = COS(cannon.phi)      //??????????????????????????

DIMPUSH bowls[], newBowl

cannon.shoot = FALSE //only one shot per press
ENDIF
ELSE
cannon.shoot = TRUE //if space = unpressed then shoot = true
ENDIF

ROTOSPRITE 1, cannon.x, cannon.y, cannon.phi //Draw the cannon
DRAWSPRITE 0,scr_x/2-16,scr_y-32 //Draw the cannon-foot
ENDIF

SHOWSCREEN //Draw the screen
WEND //aaaaaand again


Danke im Voraus!   :booze:
#836
Hallo Leute,
da ich größtenteils mit C# arbeite und gerade das XNA für Windows Phone 7 rausgekommen ist (Spieleengine für .Net) wollte ich mal fragen, inwiefern GLBasic wohl Windows Phone 7 unterstützen wird?!

Gernot kann da bestimmt genauere Ansagen machen  :)

Gruß
#837
Bitte nicht!  :noggin:

Aber kann man die Einträge per Hand löschen? :)

Gruß
#838
thx :)

na dann guck ich mir das mal an *tief durchatmend*  :P
#839
Hm, das bin ich nicht... Aber angucken kann ja nicht schaden.
Das wird mir schon nicht das Interesse am programmieren kaputt machen  :good:

Allerdings könnte ich mir ja schonmal vorab ein paar Newton-samples angucken ;)
Danke für den Tipp Schranz0r!
#840
Okay, was fällt mir ein sowas zu behaupten, dass es an gl liegen könnte  =D