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

#16
GLBasic - de / Re: Fragen
2011-Jan-13
Danke für die Antworten

Quote1.Hinzufügen -> fügt Dateien zum Setup dazu.

Welche Dateien genau ? Ich habe meines Erachtens alle relevanten Dateien hinzugefügt
(alles was sich im Ordner befand) die Ausgabedatei hat aber trotzdem nicht funktioniert.
#17
GLBasic - de / Fragen
2011-Jan-03
1. Gibt es einen nennenswerten Geschwindigkeitsunterschied zwischen 4 und 8 byte Zahlen ?

2. Kann ich CONST sicher nutzen (in der Hilfedatei gibt es keinen Eintrag dazu) ?

3. Kann jemand eine Schritt-für-Schritt Anleitung posten, die genau beschreibt,
   wie man das "Setup: Pack&Go"-tool richtig nutzt ?
#18
Off Topic / free music
2010-Dec-15
I´ve found a nice website where you can get free music for your projects (even commercial ones).

http://incompetech.com/m/c/royalty-free/
#19


Ich bemerke da eine gewisse Analogie...
#20
The problem with high speed rates is the collision detection. If the ship is too fast it could "slip" through an obstacle.
I think I solve the problem by moving it, check for collision, then move it again and check once more within the same frame.
The ship would then be twice as fast.
#21
QuoteFor the mouse implementation, I'd add a transparent, virtual cursor, and the ship will move to this point in the speed that you have if you were moving it with the cursor keys.

This should be the best solution. I used the x/y speed (MOUSEAXIS) so far.

QuoteBoth methods feel a tad on the slow side to me -  the ship just doesn't seem to move as fast as I'd like it to.

The ship´s maximum speed is the same for both methods. The mouse allows more precise movement but it seems to be slower. The speed is constant with key-control and very imprecise at high speed. I could add acceleration but that would be a problem if you have to react fast (avoid collision, aim ...).

QuoteWhat are your plans for this game?

I just plan a simple shooter with a few air and ground units, mainly to practice (I don´t coded anything for over a year now).

QuoteHow do you scroll the background? It´s flickering on my computer.

The y coordinate for the background is changed every frame, then the graphic is drawn two times. I don´t know why it flickers.
#22
I am unsure about which control method to use. I would prefer the
mouse, but it seems to behave odd sometimes. What is your opinion ?

Left mouse button: fire
Right mouse button: switch control mode
   mouse-mode: just move the ship with the mouse
   key-mode: use WASD-keys

Eradicator.app.zip - 1.10MB
#23
Dann hab ich das Konzept v?llig missverstanden. Ich dachte Gensprite benutzt seperate Indizes.
#24
Wenn ich Grabsprite benutze, ?ndert sich die Grafik (GENSPRITE) des Mauspointers.
(linke Maustaste dr?cken um Grabsprite zu benutzen)

Code (glbasic) Select
// declare gImgTest as GENSPRITE
gImgTest = GENSPRITE()

// draw mouse-cursor GFX
DRAWRECT 0, 0, 16, 16, RGB(255,255,255)

// grab mouse-cursor GFX and store it in gImgTest
GRABSPRITE gImgTest, 0, 0, 16, 16

// mouse state variables
GLOBAL mx, my, mb1, mb2

WHILE TRUE

   // read mouse state
   MOUSESTATE mx, my, mb1, mb2
   
   // draw mouse cursor at mouse x/y coordinates
   DRAWSPRITE gImgTest, mx, my

   // when left mouse button is pressed, grab screen GFX
   IF mb1; GRABSPRITE 0, 0, 0, 640, 480; ENDIF
   
   SHOWSCREEN
   
WEND
#25
Thanks for the help !
#26
Current version: 1.05

Field: fixed

IconCircle and List can be used with any mouse button now.
#27
This program takes a string and transforms it into a colored, waved graphic.
In the final version it should also read information out of a *.txt file and
let it scroll right to left over the screen.

Obviously, it is far too slow with the grabsprite-solution (FPS on my computer: 10/30).
Can anyone think up a faster approach ?

TextWave.zip - 0.46MB
#28
QuoteAre you still working on expanding this, or are you going to wait until people start coming up with suggestions before you work out where to take it next?

If I get interesting suggestions, I will implement them.

QuoteVery interesting concept. I fear you might have to explain the GUI to new users.

I thought the example and comments in the code would be suffice. If something is not clear, just tell me.

QuoteThe circle-buttons: Make them with left MB

The updated version of this function will let the user choose which button to use (left, middle, right)

Quotegive them a different look (like a ball with a set of small balls around, maybe).

The middle icon is the standard-option. Since you just have to click without moving the mouse
on it, this icon could even be smaller than the others. The bigger the outer icons are, the
easier they are to select without looking at them (the user just have to remember direction
and quantity of mouse movement). When it comes to aesthetics: what do you think about hexagons ?

QuoteThe number fields are very nice. However, tying with keys is strange, since it adds. You should check if you already typed something in the currently highlit number box, and if so, append. If not, reset contents and assign the typed key.

I tried that, but something didn?t worked. I will look at that again soon.
#29
Here you can get free music for your (non-commercial) projects:

http://starfrosch.ch/
#30
Userlibs [ *.gbal] / GUIde
2009-Jul-27
GUIde is a small interface library + template (avaiable in the Showroom). With it, you
can concentrate on the main code with several GUI-functions available and without delay.

http://www.glbasic.com/showroom.php?site=games&game=guide

Start the _template.exe to see an example for the functions.

Here you can post:

- Bug reports
- Questions
- Interface philosophy