xboxscene.org forums

Pages: 1 2 3 [4]

Author Topic: Tetris  (Read 1921 times)

ub312g0d

  • Archived User
  • Full Member
  • *
  • Posts: 195
Tetris
« Reply #45 on: January 07, 2004, 08:54:00 PM »

wink.gif How is it that nobody has made a tetris homebrew for xbox yet though? Like damn, I want one.  Looking good though.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Tetris
« Reply #46 on: December 29, 2003, 04:38:00 PM »

More hype  biggrin.gif

I'm working on a tetris actionscript, for a little game while transferring files  cool.gif

How far along are the negotiations for boost mode?  Heard UX is getting it.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Tetris
« Reply #47 on: December 29, 2003, 06:12:00 PM »

Is there a modulus operation?  Or any other way to get random numbers?
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Tetris
« Reply #48 on: December 29, 2003, 06:36:00 PM »

Hmmmm... no, I don't have it at the moment, but I'll add some bit-wise operations, as well as MOD and a RANDOM function.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Tetris
« Reply #49 on: December 29, 2003, 08:46:00 PM »

EDIT: Got around it, so its on low priority now

I'm having problems with input (yet again)

I don't want the script to halt while it waits for input, but stay in a loop while it waits.
The problem is that MSG_ID becomes numeric when using IQPeekMsgID

Here's a sample test script:

CODE
BeginDraw UseCurrent
Messagebox "Press Any Key Now"
Enddraw

:TOP
SETFUNC MSG_ID1 IQPeekMsgID
IF %MSG_ID1% GOTO BLAH
GOTO TOP

:BLAH
SETFUNC MSG_ID2 IQGetMsgID ANY
BeginDraw UseCurrent
Messagebox "Func IQGetMsgID gives ... %MSG_ID2%"
Enddraw
Delay 4

BeginDraw UseCurrent
Messagebox "Just MSG_ID ... %MSG_ID% ... this is blank"
Enddraw
Delay 4

QUIT


Edit: MXM returns a number for functions IQGetMsgID/IQPeekMsgID, while I want it to return "UI_BLAH"

Solution:  Just put in a "IQWaitMsg ANY" before checking %MSG_ID%.  It doesn't wait, but assigns a value to %MSG_ID%

This post has been edited by geniusalz: Dec 30 2003, 05:22 AM
Logged
Pages: 1 2 3 [4]